Skip to content

Instantly share code, notes, and snippets.

@HeikoWolf
Created March 22, 2015 18:54
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 HeikoWolf/45b382cbf859acad85da to your computer and use it in GitHub Desktop.
Save HeikoWolf/45b382cbf859acad85da to your computer and use it in GitHub Desktop.
Convert a small part of an input video to a gif via ffmpeg and convert
ffmpeg -i $input -ss $startindex -vf scale=320:180 -r 10 -t $runtimeInSeconds -f image2pipe -vcodec ppm - | convert -delay 10 -loop 0 - gif:- | convert -layers Optimize - $output.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment