Skip to content

Instantly share code, notes, and snippets.

@mefellows
Created July 22, 2022 05:49
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 mefellows/c746008be0184c71f558115c9cc56012 to your computer and use it in GitHub Desktop.
Save mefellows/c746008be0184c71f558115c9cc56012 to your computer and use it in GitHub Desktop.
MOV to GIF recordings
# Create a full colour palette from a source
ffmpeg -y -i <input> -vf fps=15,scale=1024:-1:flags=lanczos,palettegen palette.png

# Export a GIF from the source, using the palette
ffmpeg -y -i <input> -i palette.png -filter_complex "fps=15,scale=800:-1:flags=lanczos[x];[x][1:v]paletteuse" output.gif

See other useful combinations here: https://gist.github.com/dergachev/4627207

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment