images - Convert video to apng/png?

09
2013-08
  • acidzombie24

    I tried to do this with ffmpeg but failed (I also failed making animated GIFs). Is there a simple to use free program (command line is okay) to convert videos to animated PNGs?

    As long as it doesn't dump the video frame by frame into PNG files and create a monster size PNG then I should like it. (I didnt see an option to make ffmpeg not dump every frame)

    alt text

    From the wiki http://en.wikipedia.org/wiki/APNG

  • Answers
  • Moshe

    Dunno if this'll work, but try: Format Factory (formatoz.org) It's a good free all-around converter for Windows.


  • Related Question

    windows - How do I convert an animated GIF to a YouTube friendly video format?
  • Dave Webb

    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?


  • Related Answers
  • logan2

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

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

  • evilsoup

    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
    
  • moshen

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

  • slhck

    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.

  • 8088

    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.

  • levi rosol

    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.

  • pcapademic

    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.

  • pavsaund

    Dave, have you tried running the built-in XPmode in windows 7? It is quite possibile this would allow you to use both Beneton Movie to GIF AND Windows Movie maker, and thus solve your problem?

  • Adam Matan

    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.

  • bob

    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.