1
I am generating gifs using ffmpeg, in its latest version (to date of this issue), using the following lines of code:
ffmpeg -y 10 -i in.mp4 -vf fps=10,scale=-1:340:flags=lanczos,palettegen palette.png
to generate a pallet, and
ffmpeg -y 10 -i palette.png -fs 8000000 -filter_complex 'fps=10,scale=-1:340:flags=lanczos[x];[x][1:v]paletteuse=dither=bayer:bayer_scale=5' out.gif
to generate the gif. Everything works fine, only I wanted to decrease the size (it’s 640px wide) because the gif is always displayed at the maximum 120px wide. How do I specify the size? I tried putting -s alturaXlargura
but makes a mistake.