Animated gif to avi on linux

前端 未结 5 1762
情歌与酒
情歌与酒 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:29

    ffmpeg's gif input doesn't work too well. It's usually easier to unpack the gif frames with convert (from ImageMagick) and process these with ffmpeg:

    convert some.gif some%05d.png  
    ffmpeg -i some%05d.png some.avi  
    rm some*.png
    

提交回复
热议问题