[FFmpeg-user] ffmpeg: gif to video conversion does not keep gif time delay between frames.

Email Me emailme12121212 at gmail.com
Sun May 7 19:16:22 EEST 2017


Hi,


I am using ffmpeg to convert the attached gif to a video file.


My command is:

ffmpeg -f gif -i test.gif -pix_fmt yuv420p -c:v libx264 -f mp4 out1.mp4


to simplify the command:

ffmpeg -f gif -i test.gif -f mp4 out2.mp4


The input gif has variable frame delays:

Frame 1 - no delay

Frame 2 - 1 sec

Frame 3 - 2 sec

Frame 4 - 4 sec


The generated video file does not maintain these time delay between the
frames.


I found a similar ticket from past

https://trac.ffmpeg.org/ticket/4235


Appreciate your help.


Thanks,

E
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.gif
Type: image/gif
Size: 12078 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20170507/7b10e654/attachment.gif>


More information about the ffmpeg-user mailing list