Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question
    
So guys, I wish I could give the bounty to all of you! I found the right way to achieve what I was trying to do by mixing your commands. The result is "convert input.gif -coalesce 'frame%02d.png'" and "ffmpeg -r 1 -i 'frame%02d.png' output.flv". (I gave a +1 to all of you, but for the bounty...I really don't know!) Thanks again to everyone that helped me so far, you are really great! –  dag729 Feb 12 '10 at 2:23
    
You should pick one randomly. :) –  Iain Feb 14 '10 at 14:00
    
Maybe I should answer to myself with the right code, and then give to me the bounty! :D But I suppose that will go to the guy with more votes, instead. –  dag729 Feb 14 '10 at 22:25
    
From the FAQ: "The highest voted answer created after the bounty started with at least 2 upvotes will be automatically accepted. Half the bounty will be awarded to the owner of that answer." --- Why the bounty went to JohnT and not to WhiteQuark, since I didn't decided myself? –  dag729 Feb 15 '10 at 20:43
add comment

3 Answers 3

up vote 5 down vote accepted
+50

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.

alt text

No need to worry, it's available in English!

share|improve this answer
    
No luck even with that command...I've tried with different gifs –  dag729 Feb 9 '10 at 17:12
    
@dag729 What about FormatFactory? –  John T Feb 11 '10 at 0:46
add comment

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.

share|improve this answer
1  
+1, but can't ffmpeg do this in one shot? –  DaveParillo Jan 31 '10 at 20:09
    
It only translates one frame of gif, and I wasn't able to find any options regarding. –  whitequark Jan 31 '10 at 20:21
    
It doesn't did the trick...all I get is a kind 0f 19:6 (yes, not 16:9) video where you cannot see anything! :D I'm still searching. Thank you for the "convert" advice: I have it but I didn't remember that ImageMagick was that featured! –  dag729 Feb 2 '10 at 16:20
    
Try doing mencoder "mf://frame*.png" -mf fps=RATE -o output.flv -ovc lavc -lavcopts vcodec=flv instead. –  whitequark Feb 2 '10 at 19:20
    
same output... :( –  dag729 Feb 4 '10 at 13:31
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.