Installation:
brew install ffmpeg
brew cask install xquartz
brew install gifsicle
usage for file with the name in.mov
and output of out.gif:
ffmpeg -i in.mov -s 1400x900 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=1 > out.gif