27

My son has made some animations with Pivot Stickfigure Animator which we'd like to upload to YouTube. The problem is Pivot saves as animated GIFs which I can't upload to YouTube.

The Wikipedia article recommends using Windows Movie Maker to convert GIF to WMV, but unfortunately I'm using Windows 7 for which you can get the new Windows Live Movie Maker which doesn't seem to support GIFs.

I Googled and found an article which said to use Beneton Movie GIF to convert animated GIF to AVI, but this seemed to rely on a 3rd Party application which wasn't installed and so failed. Installing the missing application - pjBmp2Avi - by hand and adding it to the path still didn't allow Beneton to do the conversion.

I hoped FFmpeg might do the trick but this only outputs to animated GIFs, it won't read from then.

Further Googling found lots of applications with 30 day trials and so on but I was hoping for something free.

So any suggestions on how I can convert an animated GIF to a movie file on Windows using free (as in beer) software?

studiohack
  • 13,477
David Webb
  • 12,294

11 Answers11

26

The ImageMagick convert program can split up animated GIFs. e.g. given the existence of a file 'foo.gif', I can run:

convert foo.gif foo.png

and it will create files foo-0.png, foo-1.png, etc, one for each frame. If you have more digits, then use the following syntax, for example with 4 digits:

convert foo.gif foo%04d.png

You could then use FFmpeg to build those into a movie.

ffmpeg -f image2 -r framerate -i foo-%d.png -c:v libx264 -pix_fmt yuv420p output.mp4

To change the quality of the resulting video, add the -crf option, e.g. -crf 23, where lower means better quality. Sane values are between 18 and 28, but since the GIF quality shouldn't be too good in the first place, you probably won't need this option.

As of 2013, recent versions of ffmpeg can accept animated gifs as input directly.

ffmpeg -r framerate -i input.gif -c:v libx264 -pix_fmt yuv420p output.mp4
evilsoup
  • 14,056
John Fouhy
  • 3,225
22

Try this Open Source software http://www.virtualdub.org

Open your .gif as a video file... then save as .avi

logan2
  • 522
4

Just

ffmpeg -i input.gif output.mp4

(taken from @framp's comment on @John Fouhy's answer above)

Don't know about YouTube, but the codec can be specified with the -c:v options (see ffmpeg -codecs for the list of codecs).

This codec for example imports well into Final Cut:

ffmpeg -i input.gif -c:v qtrle output.mov
yairchu
  • 1,955
1

MediaCoder is free and can do this for you.

MediaCoder is a free universal media transcoder since 2005. It integrates most popular audio/video codecs and tools in an elegant and transparent manner into an all-in-one transcoding solution. With a flexible and extendable architecture, latest codecs and tools are updated added in constantly. MediaCoder intends to be the swiss army knife for media transcoding in all time.

Gareth
  • 19,080
arathorn
  • 8,769
1

If you have the older Windows Movie Maker for XP, etc., you can easily load your animated GIF and convert it to a movie file. So, if you have an older computer, you can set it up this way.

For some reasons, animated GIFs show up as still shots in windows Movie Maker Live. Don't know why.

Here is a FREE way to change this. Download CAMSTUDIO (The free open source version) (or go to CNET and find a download).

  • Once you've set it up, you can open Pivot in the project pivot mode (not the animated gif).
  • Set Camstudio so you can just grab around the screen of the pivot picture itself.
  • Play your pivot and it will record it like a movie in AVI format.
  • Then you can use Zamzar (or other online video converter sites) to convert for YouTube.

I teach Pivot in my class and sometimes students projects won't convert to animated gifs so that's how I fix the problem.

slhck
  • 235,242
Dee
  • 11
1

You can try AviSynth. It has several encoding options for images. You may also want to ask this on VideoHelp.com.

moshen
  • 1,810
0

There is a quite exhaustive list of tools here.

Total video converter supports animated GIFs and has a trial version.

Online tools for editing animated GIFs.

Yet another software tool.

I really think that the best solution would be online file converters, but I could't find anyone that supports animated GIFs, so I guess you'll have to download a tool.

Adam Matan
  • 8,740
0

If you upload your pivot animation on Pivot Stickfigure Animator the save it in a Gif. Format. Then go to a microsoft web and download windows Movie Maker(you should be able to do that). In WMV(windows movie maker) click upload video. The click on All Files instead of Video Files then save. You should be able to upload the video to youtube from then on.

0

Just go find and download windows movie maker as opposed to movie maker live they are distinct and the windows movie maker for windows 7 (6.1) converts them quite well. just did a bunch of these creepy gifs:

http://www.wired.com/underwire/2012/04/antique-photos-animated-gifs/?pid=6573

bob
  • 1
0

CamStudio (http://camstudio.org/).

Not a true "conversion", in that you use your current player (a webbrowser?) to play the animated gif and then use CamStudio to do a screen capture.

I have done something similar with Camtasia, for which our department purchased a license. I have used CamStudio, and it does 90% of what I needed Camtasia for.

pcapademic
  • 3,821
0

I'm sure you've found this product already, but it appears that http://www.gamani.com/ will do exactly what you are looking for, converting a gif to a avi.

It does have a 30 day trial, and is $30 after that. A price of $30 seems like a very good deal to me considering the time it will save you and your son. I'm sure you've invested way more than $30 into this already by spending the time finding and trying other products out there.

Cut your losses by picking up the tool you need to accomplish the task at hand vs spending more time searching for it.