Skip to content

Instantly share code, notes, and snippets.

@bradland
Created April 22, 2016 14:34
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 bradland/2d562f39f51d1b7b0498748e8578095e to your computer and use it in GitHub Desktop.
Save bradland/2d562f39f51d1b7b0498748e8578095e to your computer and use it in GitHub Desktop.
#!/bin/bash
# argument one is the input base file name
#ffmpeg -i $1.flv -vcodec png -vframes 1 -ss 00:00:$2 -an -f rawvideo -s 640x480 $1-640x480.png
ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=15 > out.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment