Animated gif to avi on linux

前端 未结 5 1761
情歌与酒
情歌与酒 2020-12-24 12:35

Is there any way to convert an animated gif to a video format (e.g. .avi) on Linux?

I have already tried

ffmpeg -i thegif.gif thevideo.a         


        
5条回答
  •  自闭症患者
    2020-12-24 13:19

    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

    http://electron.mit.edu/~gsteele/ffmpeg/

提交回复
热议问题