Created
March 22, 2015 18:54
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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