Skip to content

Instantly share code, notes, and snippets.

@DevinThompson
Created February 19, 2019 18:46
Show Gist options
  • Save DevinThompson/3e75df0c144922646838c34a2d1a1145 to your computer and use it in GitHub Desktop.
Save DevinThompson/3e75df0c144922646838c34a2d1a1145 to your computer and use it in GitHub Desktop.
An easy way to create gif palettes from video for higher quality gifs
//Create a gif with these params
ffmpeg -ss 2.6 -t 1.3 -i ARBBall.mp4 -i palette.png -filter_complex “fps=15,scale=400:-1:flags=lanczos[x];[x][1:v]paletteuse” sixthtry.gif
//create a palette from the same location in the video
ffmpeg -ss 2.6 -t 1.3 -i ARBBall.mp4 -vf fps=15,scale=320:-1:flags=lanczos,palettegen palette.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment