Skip to content

Instantly share code, notes, and snippets.

@HeikoWolf
HeikoWolf / gist:45b382cbf859acad85da
Created March 22, 2015 18:54
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