Skip to content

Instantly share code, notes, and snippets.

@Fire-
Created June 20, 2017 04:28
Show Gist options
  • Save Fire-/68a9798819180825fe92402758108f05 to your computer and use it in GitHub Desktop.
Save Fire-/68a9798819180825fe92402758108f05 to your computer and use it in GitHub Desktop.
video to gif
## change seek (-ss) and length (-t) values as appropriate.
## Preview with ffplay first.
ffmpeg -ss 00:00:13.80 -t 00:00:11.90 -i input.file -vf "crop=in_w:720,fps=50" -an -r 50 -f image2pipe -c:v ppm - | magick convert -set delay 2 - -delay 2 -layers Optimize output.file.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment