brew install ffmpeg
I like to put the converted gif into my screenshots folder, change how you see fit
makegif() {
print "Making a $1 gif in ~/Screenshots"
ffmpeg -i $1.mov -vf scale=640:-1 -r 10 -f image2pipe -vcodec ppm - | convert -delay 5 -loop 0 - ~/Screenshots/$1.gif
}
makegif my-screencapture-video