Skip to content

Instantly share code, notes, and snippets.

@jakkaj
Created February 27, 2017 09:40
Show Gist options
  • Save jakkaj/d7f912a369f1122f70b27712652fbdfc to your computer and use it in GitHub Desktop.
Save jakkaj/d7f912a369f1122f70b27712652fbdfc to your computer and use it in GitHub Desktop.
FFMPEG commands to make nice screen capture demo GIFS of code and things
ffmpeg -y -i "dotnetrun ks.mp4" -vf fps=10,scale=320:-1:flags=lanczos,palettegen palette.png
ffmpeg -i "dotnetrun ks.mp4" -i palette.png -filter_complex "fps=10,scale=1024:-1:flags=lanczos[x];[x][1:v]paletteuse" output.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment