Skip to content

Instantly share code, notes, and snippets.

@wallabyway
Last active November 4, 2019 23:28
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 wallabyway/24ec3042a8f09dfbc7fb4fbe503b2982 to your computer and use it in GitHub Desktop.
Save wallabyway/24ec3042a8f09dfbc7fb4fbe503b2982 to your computer and use it in GitHub Desktop.
ffmpeg -ss 2.6 -t 1.3 -i input.mov -vf fps=15,scale=320:-1:flags=lanczos,palettegen palette.png
ffmpeg -ss 2.6 -t 1.3 -i input.mov -i palette.png -filter_complex "fps=15,scale=400:-1:flags=lanczos[x];[x][1:v]paletteuse" output.gif
# 775x340 banner
# ffmpeg -ss 2.6 -t 0.8 -i input.mov -i palette.png -filter_complex "fps=12,scale=775:-1:flags=lanczos[x];[x][1:v]paletteuse,crop=775:340:0:0" output-banner.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment