Animated GIF to video with ffmpeg - wrong timing -


i'm trying convert animated gif video ffmpeg, there's strange problem: time delays of each frame seem off 1 frame.
example, if frame #1 supposed shown 2000 ms , frames #2 #10 supposed shown 100 ms each, in resulting video skips frame #2 shown 2000 ms instead :p

is kind of bug? or doing wrong?

here's command line:

ffmpeg –i mnozenie_anim_deop.gif mnozenie_anim.mp4 

(aside: why doesn't "-" show in code blocks unless replace "–"?)

so nothing extraordinary, defaults. (unless root of problem? maybe defaults bad, , need specify magic options?)

this problem seems appear video formats except mkv, , when play these files in mplayer, behave way except mkv.

but when open them in kdenlive (a non-linear video editing program), problem appears in of them, including mkv (which strange, because plays fine in mplayer :q ).

i tried converting same exact file online converter here:
https://ezgif.com/gif-to-mp4 , there no problem output – plays fine both in mplayer , when imported kdenlive, guess must have been using magic command line options i'm missing.

any ideas can wrong , how track down culprit?

edit: here's sample animated gif file i'm trying convert:
http://nauka.mistu.info/matematyka/algebra/szeregi/mnozenie_anim.gif
, mp4 file generated demonstrates problem:
http://sasq.comyr.com/stuff/mnozenie_anim.mp4
can see, fade in starts prematurely stops couple of seconds instead of waiting couple of seconds before fade in begins.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -