Skip to content

Instantly share code, notes, and snippets.

@sadikay
Last active February 14, 2019 21:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sadikay/5324efc7774c476d7d20b1fcace33ddf to your computer and use it in GitHub Desktop.
Save sadikay/5324efc7774c476d7d20b1fcace33ddf to your computer and use it in GitHub Desktop.
.mov to .gif - Convert quick time player videos to gif format on macOs command line.
brew install ffmpeg
brew cask install x-quartz #dependency for gifsicle, only required for mountain-lion and above
open /usr/local/Cellar/x-quartz/2.7.4/XQuartz.pkg # runs the XQuartz installer
brew install gifsicle
ffmpeg -i ~/Desktop/in1080.mov -s 920x540 -pix_fmt rgb24 -r 18 -f gif - | gifsicle --optimize=3 --delay=3 > ~/Desktop/out.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment