How to Convert gif to Video

By Xah Lee. Date: . Last updated: .

You need to have ffmpeg installed. It's usually installed on linux.

If you don't have ffmpeg, try avconv. For some years around 2015, avconv is rename of ffmpeg.

Convert Gif to Webm

# convert from gif to webm video. ubuntu 16.04
ffmpeg -f gif -i cat.gif cat.webm

Convert Gif to MP4

# convert from gif to mp4 video. ubuntu 16.04
ffmpeg -f gif -i cat.gif cat.mp4

Image/Video Tutorial