Skip to content

Instantly share code, notes, and snippets.

@mistic100
Last active August 31, 2022 21:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mistic100/7fae4a92ce60a8934bfe10b955f8550b to your computer and use it in GitHub Desktop.
Save mistic100/7fae4a92ce60a8934bfe10b955f8550b to your computer and use it in GitHub Desktop.
  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