Ffmpeg 寻找类似ffprobe的程序来查询图像?

Ffmpeg 寻找类似ffprobe的程序来查询图像?,ffmpeg,ffprobe,Ffmpeg,Ffprobe,我需要从命令行探测大量图像,看看它们是否会打开 ffprobe在多媒体方面非常出色,但有人能引导我朝着类似的方向发展吗?我可以用它来制作图像,如果宇宙正在回应我对PDF和文档的祈祷 非常感谢对于“ffprobe for images”,我能想到的最贴切的东西是ImageMagick: 与ffprobe一样,除了使用identify。它告诉你像大小、格式、编码等一样思考。我能想到的最接近“ffprobe for images”的东西是ImageMagick: 与ffprobe一样,除了使用iden

我需要从命令行探测大量图像,看看它们是否会打开

ffprobe在多媒体方面非常出色,但有人能引导我朝着类似的方向发展吗?我可以用它来制作图像,如果宇宙正在回应我对PDF和文档的祈祷


非常感谢

对于“ffprobe for images”,我能想到的最贴切的东西是ImageMagick:


与ffprobe一样,除了使用
identify
。它告诉你像大小、格式、编码等一样思考。

我能想到的最接近“ffprobe for images”的东西是ImageMagick:


与ffprobe一样,除了使用
identify
。它告诉你你的想法,比如大小、格式、编码等等。

你可能会使用
文件

$ file rooster.jpg 
rooster.jpg: JPEG image data, EXIF standard 2.21

$ file -b testsrc.png
PNG image data, 320 x 240, 8-bit/color RGB, non-interlaced

$ file insulated_concrete_forms.pdf 
insulated_concrete_forms.pdf : PDF document, version 1.4

您可以使用
文件

$ file rooster.jpg 
rooster.jpg: JPEG image data, EXIF standard 2.21

$ file -b testsrc.png
PNG image data, 320 x 240, 8-bit/color RGB, non-interlaced

$ file insulated_concrete_forms.pdf 
insulated_concrete_forms.pdf : PDF document, version 1.4
还有,它在检测媒体文件格式方面做得很好

图像

$ mediainfo --Output=JSON --Full some.jpg
{
"media": {
"@ref": "/path/to/some.jpg",
"track": [
{
"@type": "General",
"ImageCount": "1",
"FileExtension": "jpg",
"Format": "JPEG",
"FileSize": "816218",
"StreamSize": "0",
"File_Modified_Date": "UTC 2019-01-06 20:25:24",
"File_Modified_Date_Local": "2019-01-06 21:25:24"
},
{
"@type": "Image",
"Format": "JPEG",
"Width": "4050",
"Height": "1350",
"ColorSpace": "YUV",
"ChromaSubsampling": "4:4:4",
"BitDepth": "8",
"Compression_Mode": "Lossy",
"StreamSize": "816218",
"extra": {
"ColorSpace_ICC": "RGB"
}
}
]
}
}
PDF:

$ mediainfo --Output=JSON --Full some.pdf
{
"media": {
"@ref": "/path/to/some.pdf",
"track": [
{
"@type": "General",
"TextCount": "1",
"FileExtension": "pdf",
"Format": "PDF",
"Format_Version": "1.3",
"FileSize": "141415",
"StreamSize": "141415",
"File_Modified_Date": "UTC 2019-01-24 08:50:21",
"File_Modified_Date_Local": "2019-01-24 09:50:21"
},
{
"@type": "Text",
"Format": "PDF"
}
]
}
}

$ mediainfo --Output=JSON --Full i-am-a-jpeg.pdf
{
"media": {
"@ref": "/path/to/i-am-a-jpeg.pdf",
"track": [
{
"@type": "General",
"ImageCount": "1",
"FileExtension": "pdf",
"Format": "JPEG",
"FileSize": "816218",
"StreamSize": "0",
"File_Modified_Date": "UTC 2019-01-06 20:25:24",
"File_Modified_Date_Local": "2019-01-06 21:25:24",
"extra": {
"FileExtension_Invalid": "h3d jpeg jpg jpe jps mpo"
}
},
{
"@type": "Image",
"Format": "JPEG",
"Width": "4050",
"Height": "1350",
"ColorSpace": "YUV",
"ChromaSubsampling": "4:4:4",
"BitDepth": "8",
"Compression_Mode": "Lossy",
"StreamSize": "816218",
"extra": {
"ColorSpace_ICC": "RGB"
}
}
]
}
}

后缀错误的图像文件:

$ mediainfo --Output=JSON --Full some.pdf
{
"media": {
"@ref": "/path/to/some.pdf",
"track": [
{
"@type": "General",
"TextCount": "1",
"FileExtension": "pdf",
"Format": "PDF",
"Format_Version": "1.3",
"FileSize": "141415",
"StreamSize": "141415",
"File_Modified_Date": "UTC 2019-01-24 08:50:21",
"File_Modified_Date_Local": "2019-01-24 09:50:21"
},
{
"@type": "Text",
"Format": "PDF"
}
]
}
}

$ mediainfo --Output=JSON --Full i-am-a-jpeg.pdf
{
"media": {
"@ref": "/path/to/i-am-a-jpeg.pdf",
"track": [
{
"@type": "General",
"ImageCount": "1",
"FileExtension": "pdf",
"Format": "JPEG",
"FileSize": "816218",
"StreamSize": "0",
"File_Modified_Date": "UTC 2019-01-06 20:25:24",
"File_Modified_Date_Local": "2019-01-06 21:25:24",
"extra": {
"FileExtension_Invalid": "h3d jpeg jpg jpe jps mpo"
}
},
{
"@type": "Image",
"Format": "JPEG",
"Width": "4050",
"Height": "1350",
"ColorSpace": "YUV",
"ChromaSubsampling": "4:4:4",
"BitDepth": "8",
"Compression_Mode": "Lossy",
"StreamSize": "816218",
"extra": {
"ColorSpace_ICC": "RGB"
}
}
]
}
}

还有,它在检测媒体文件格式方面做得很好

图像

$ mediainfo --Output=JSON --Full some.jpg
{
"media": {
"@ref": "/path/to/some.jpg",
"track": [
{
"@type": "General",
"ImageCount": "1",
"FileExtension": "jpg",
"Format": "JPEG",
"FileSize": "816218",
"StreamSize": "0",
"File_Modified_Date": "UTC 2019-01-06 20:25:24",
"File_Modified_Date_Local": "2019-01-06 21:25:24"
},
{
"@type": "Image",
"Format": "JPEG",
"Width": "4050",
"Height": "1350",
"ColorSpace": "YUV",
"ChromaSubsampling": "4:4:4",
"BitDepth": "8",
"Compression_Mode": "Lossy",
"StreamSize": "816218",
"extra": {
"ColorSpace_ICC": "RGB"
}
}
]
}
}
PDF:

$ mediainfo --Output=JSON --Full some.pdf
{
"media": {
"@ref": "/path/to/some.pdf",
"track": [
{
"@type": "General",
"TextCount": "1",
"FileExtension": "pdf",
"Format": "PDF",
"Format_Version": "1.3",
"FileSize": "141415",
"StreamSize": "141415",
"File_Modified_Date": "UTC 2019-01-24 08:50:21",
"File_Modified_Date_Local": "2019-01-24 09:50:21"
},
{
"@type": "Text",
"Format": "PDF"
}
]
}
}

$ mediainfo --Output=JSON --Full i-am-a-jpeg.pdf
{
"media": {
"@ref": "/path/to/i-am-a-jpeg.pdf",
"track": [
{
"@type": "General",
"ImageCount": "1",
"FileExtension": "pdf",
"Format": "JPEG",
"FileSize": "816218",
"StreamSize": "0",
"File_Modified_Date": "UTC 2019-01-06 20:25:24",
"File_Modified_Date_Local": "2019-01-06 21:25:24",
"extra": {
"FileExtension_Invalid": "h3d jpeg jpg jpe jps mpo"
}
},
{
"@type": "Image",
"Format": "JPEG",
"Width": "4050",
"Height": "1350",
"ColorSpace": "YUV",
"ChromaSubsampling": "4:4:4",
"BitDepth": "8",
"Compression_Mode": "Lossy",
"StreamSize": "816218",
"extra": {
"ColorSpace_ICC": "RGB"
}
}
]
}
}

后缀错误的图像文件:

$ mediainfo --Output=JSON --Full some.pdf
{
"media": {
"@ref": "/path/to/some.pdf",
"track": [
{
"@type": "General",
"TextCount": "1",
"FileExtension": "pdf",
"Format": "PDF",
"Format_Version": "1.3",
"FileSize": "141415",
"StreamSize": "141415",
"File_Modified_Date": "UTC 2019-01-24 08:50:21",
"File_Modified_Date_Local": "2019-01-24 09:50:21"
},
{
"@type": "Text",
"Format": "PDF"
}
]
}
}

$ mediainfo --Output=JSON --Full i-am-a-jpeg.pdf
{
"media": {
"@ref": "/path/to/i-am-a-jpeg.pdf",
"track": [
{
"@type": "General",
"ImageCount": "1",
"FileExtension": "pdf",
"Format": "JPEG",
"FileSize": "816218",
"StreamSize": "0",
"File_Modified_Date": "UTC 2019-01-06 20:25:24",
"File_Modified_Date_Local": "2019-01-06 21:25:24",
"extra": {
"FileExtension_Invalid": "h3d jpeg jpg jpe jps mpo"
}
},
{
"@type": "Image",
"Format": "JPEG",
"Width": "4050",
"Height": "1350",
"ColorSpace": "YUV",
"ChromaSubsampling": "4:4:4",
"BitDepth": "8",
"Compression_Mode": "Lossy",
"StreamSize": "816218",
"extra": {
"ColorSpace_ICC": "RGB"
}
}
]
}
}


您也可以对图像使用
ffprobe
。如果文件已损坏或损坏。完全意识到ffprobe可以处理我喜欢的图像,特别是PDFSJHOVE?您也可以在这个新的测试版堆栈交换站点上询问:您也可以对图像使用
ffprobe
。如果文件已损坏或损坏。完全意识到ffprobe可以处理我喜欢的图像,特别是PDFSJHOVE?您也可以在这个新的beta stack exchange站点上询问: