Skip to content

Instantly share code, notes, and snippets.

Last active August 31, 2022 21:25
What would you like to do?
  1. generate palette
ffmpeg -y -i video.webm -vf palettegen=max_colors=64 palette.png
  1. convert
ffmpeg -y -i video.webm -i palette.png -filter_complex paletteuse=dither=bayer:bayer_scale=1 -r 15 output.gif
  1. resize
gifsicle.exe --scale 0.5 output.gif -o resized.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment