----- Original Message -----
From: "Gonzalo Garramuno" <[email protected]>
To: "This list is about using libavcodec, libavformat, libavutil,libavdevice and
libavfilter." <[email protected]>
Sent: Saturday, October 25, 2014 4:37 PM
Subject: [Libav-user] Animated GIF duration
I want to know how can I retrieve an animated GIF duration (length in frames or seconds). I tried context->duration and
stream->duration and both return AV_NOPTS_VALUE. Can somebody help?
You have to walk thru the gif blocks / tags to get the duration. ffmpeg is not going to do this for you at this time. If you look at
the gif code in ffmpeg you should be able to figure out how to do this or you can look somewhere else for the file spec of a gif and
sum the delays.
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user