Is there any way to convert an animated gif to a video format (e.g. .avi
) on Linux?
I have already tried
ffmpeg -i thegif.gif thevideo.avi
but all I get is the first image of the video.
Open the Animated gif in Photoshop. Go to the Window tab and select timeline(if the timeline is not already open). At the bottom of the timeline panel, you will find an option, which says "Forever". Change that to "Once".
ffmpeg's gif input doesn't work too well. It's usually easier to unpack the gif frames with convert (from ImageMagick) and process these with ffmpeg:
convert some.gif some%05d.png ffmpeg -i some%05d.png some.avi rm some*.png
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With