Created
March 2, 2014 03:52
-
-
Save vlandham/9301642 to your computer and use it in GitHub Desktop.
create gif from movie file. from https://gist.github.com/dergachev/4627207#os-x-screencast-to-animated-gif
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
#!/bin/bash | |
MOVIE=$1 | |
ffmpeg -i $MOVIE -r 10 -vcodec png out-static-%05d.png | |
convert -verbose +dither -layers Optimize -resize 600x600\> out-static*.png GIF:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile - > $MOVIE.gif | |
rm out-static*.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment