Skip to content

Instantly share code, notes, and snippets.

@ethagnawl
Created August 21, 2018 05:31
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 ethagnawl/4fea9016fee7300211a986d9fb68ee46 to your computer and use it in GitHub Desktop.
Save ethagnawl/4fea9016fee7300211a986d9fb68ee46 to your computer and use it in GitHub Desktop.
create gif using ffmpeg
ffmpeg -y -t 10 -i tmuxinator-edited-4.mov -vf fps=10,scale=900:-1:flags=lanczos,palettegen palette.png;
ffmpeg -t 10 -i tmuxinator-edited-4.mov -i palette.png -filter_complex "fps=10,scale=900:-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