brew install ffmpeg gifsicle imagemagick
.recording.mov
. ffmpeg -i recording.mov -r 24 recording-%03d.png &&
convert recording-001.png palette.gif &&
convert -dither none -remap palette.gif recording-*.png recording-uncompressed.gif &&
gifsicle --optimize=3 --delay=4 < recording-uncompressed.gif > recording.gif
To resize:
gifsicle recording.gif --resize 375x375 > 375.gif
licecap is also nice, but you don’t have control over the framerate. mov
files can now be directly uploaded to twitter, but can get downsampled pretty aggressively. asdf