install homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
install ffmpeg
brew install ffmpeg
add function to your environment file (.bashrc, .zshrc)
# make gif file out of .mov file
# Notes on the arguments:
# -r 10 tells ffmpeg to reduce the frame rate from 25 fps to 10
# -s 600x400 tells ffmpeg the max-width and max-height
# -vf scale=640:-1 scales image at defined sizes; setting -1 to either size preserves ratio based on other max-width definition
# --delay=3 tells gifsicle to delay 30ms between each gif
# --optimize=3 requests that gifsicle use the slowest/most file-size optimization
# usage: gifme filename.mov
# this should generate `filename.gif`
gifme () {
ffmpeg -i $1 -vf scale=640:-1 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=10 > "$1.gif"
}
- Use QuickTime to do a screen capture
- Save screen capture
- Open Terminal application
cd
to saved screen caputure- Run
gifme screencapturefile.mov
gifme
should generate a new compressed screencapturefile.mov.gif
file in the same location as the saved .mov
file.