Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Do you know how to convert an animated GIF (only two pics in loop) to FLV or AVI?
I didn't search for a Microsoft alternative that maybe could run with WINE, because I really prefer a native one; also a java version will be fine.
ffmpeg should be able to do this all by itself:
ffmpeg -f gif -i infile.gif outfile.flv
If you prefer a GUI tool, Format Factory can do this, and will run under WINE.
No need to worry, it's available in English!
Try doing this in console:
convert image.gif 'frame%02d.png'
ffmpeg -r RATE -i 'frame%02d.png' movie.flv
Replace RATE with needed framerate, e.g. 2 for 2 frames per second.
You'll need two packages: imagemagick and ffmpeg.
mencoder "mf://frame*.png" -mf fps=RATE -o output.flv -ovc lavc -lavcopts vcodec=flv
Try this with ImageMagick and ffmpeg :
convert original.gif -coalesce out.gif
ffmpeg -f gif -i out.gif result.flv
Optimizing the gif with ImageMagick before converting to flv is done to resolve transparency problems.
8 years, 9 months ago
7 years, 2 months ago