[FFmpeg-user] FFprobe should not return a duration if the file is a JPEG picture
cpz at tuunq.com
Sun Aug 18 07:09:56 EEST 2019
On 8/17/2019 3:40 PM, August Johansson wrote:
> My software expects that FFprobe returns N/A as a duration for picture
> files and the duration if the file actually is video or audio file.
Why do you expect this behavior? A file containing single frame will display
once (as the other Carl observed). Or are you trying to determine whether a
file is a single still image or motion of some kind (what about an animated
It would useful to tell us more about what you're trying to accomplish and
exactly which version(s) of ffmpeg you're using.
Note also that a video file may have different durations in the various
metadata and it's possible that none of those correspond with the duration
if played from beginning to end.
More information about the ffmpeg-user