[FFmpeg-user] ffprobe with inputs without extensions
cnt at mikrosimage.eu
Thu May 28 12:03:30 CEST 2015
I try to use ffprobe to get information of several inputs.
Before my process, all inputs are renamed with a generated name without
When I try ffprobe on a video (named 123), it works :
*Input #0, avi, from '123':*
* Duration: 00:00:04.04, start: 0.000000, bitrate: 30596 kb/s*
* Stream #0:0: Video: dvvideo (dvsd / 0x64737664), yuv420p, 720x576 [SAR
16:15 DAR 4:3], 29088 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc*
But ffprobe raised an error when I try the same operation on an image
*456: Invalid data found when processing input*
But if I add the right extension (456.jpg), it works:
*Input #0, image2, from '456.jpg':*
* Duration: 00:00:00.04, start: 0.000000, bitrate: 3804 kb/s*
* Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg), 560x320, 25 tbr, 25
tbn, 25 tbc*
What am I doing wrong? I know that ffmpeg can guess the format of the
input. But does it can guess "image2" format when there is no extension?
How can I anticipate this problem ?
Note: I use a compiled version of ffmpeg, from master branch.
Many thanks for any answer,
More information about the ffmpeg-user