My Profile Photo

Stefan Acin


Engineer - Always learning, always making.


Screencaps to Gif

1
2
3
4
5
6
7
8
# brew install ffmpeg gifsicle
mkdir pngs 
ffmpeg -i src.mov -r 10 pngs/out%04d.png  
mkdir gifs
sips -s format gif pngs/*.png --out gifs
gifsicle --optimize=3 --delay=5 --loopcount gifs/*.gif > animation.gif
gifsicle gifs/*.gif --optimize=3 --delay=3 --loopcount --resize 350x667 > animation-small.gif
rm -rf pngs gifs