Is there any way to convert an animated gif to a video format (e.g. .avi), on linux?
p.s. i have already tried ffmpeg's
ffmpeg -i thegif.gif thevideo.avi
but all i get is the first image of the video.
views:
127answers:
2
+3
A:
I can suggest combination of imagemagick and ffmpeg
do this to extract each frame as png/jpeg
$magick> convert 'images.gif[0]' image.png
Do this to convert images to movie sequence
ffmpeg -f image2 -i image%d.jpg video.mpg
More help on commands
http://www.imagemagick.org/script/command-line-processing.php
http://www.catswhocode.com/blog/19-ffmpeg-commands-for-all-needs
Arsheep
2010-07-09 13:24:24
+2
A:
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
Luther Blissett
2010-07-09 13:26:33