In this video tutorial I show how to convert a render (mp4) that I created with Blender 2.8 Eevee to an animated Gif file using the free tool FFmpeg.

The rendered movie is in an mp4 container, created as FFmpeg in Blender 2.90 – but you can use Blender 2.8x as well.

To convert the file the free tools FFmpeg is used that can be downloaded from here:

Here are the lines to convert to different formats, for the animated Gif I use create a color palette first:

FFmpeg to animated gif, the source is called 0001-0200.mp4 and the size of the move is 512×512 pixels.

ffmpeg -i 0001-0200.mp4 -vf fps=24,scale=512:-1:flags=lanczos,palettegen palette.png

ffmpeg -i 0001-0200.mp4 -i palette.png -filter_complex "fps=24,scale=512:-1:flags=lanczos[x];[x][1:v]paletteuse" output.gif

FFmpeg to webp

ffmpeg -i 0001-0200.mp4 -vcodec libwebp -lossless 1 -q 80 -loop 1 -s 512×512 output.webp

FFmpeg to apng

ffmpeg -i 0001-0200.mp4 -f apng output.png

(Visited 24 times, 1 visits today)