

In this example, the video is scaled to a 320 pixel width and a dynamic height (keeping the same aspect ~ $ ffmpeg -i /tmp/VID_20200921_083738.mp4 -vf scale=320:-1 /tmp/Video.mp4 The source video should first be resized (scaled) to a more common GIF size. What aĬome-back the GIFs have made since the flashy websites in the 90s! Resize the original videoĪs mentioned, GIFs (should be) are small in size but a recorded video with a high resolution (such as Full HD) are way too big. (Animated) GIFs are by nature rather small in size - these days they'veīecome a way to express emotions or reactions in social media.

It allows to do all kinds of manipulations to a video, such as changing the video or audio codecs, resize (scale) the video, change bitrate or frames per second rate and many many more.īut ffmpeg can also be used to export the video into an animated GIF. Published on September 21st 2020 - Listed in Multimedia Linuxįfmpeg is the Swiss Army Knife when it comes to video manipulation on the command line. Create an animated gif from a video source using ffmpeg, imagemagick and gifsicle
