[FFmpeg-user] FFprobe should not return a duration if the file is a JPEG picture

August Johansson augustperson25 at gmail.com
Sun Aug 18 13:49:22 EEST 2019


Hi,

> 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
> GIF?)?
>


> It would useful to tell us more about what you're trying to accomplish and
> exactly which version(s) of ffmpeg you're using.
>
Because I think it would be correct to not display a duration for something
that isnt playable. And yes, I am trying to determine a file is a audio or
video or if  it is a non playable file. I totally didnt think of the GIF
case. I am using FFmpeg version 4.1.4 on FreeBSD.

Den sön 18 aug. 2019 kl 06:10 skrev Carl Zwanzig <cpz at tuunq.com>:

> 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
> GIF?)?
>
> 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.
>
> Later,
>
> z!
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list