Skip to content

Instantly share code, notes, and snippets.

@shaneshifflett
Last active October 13, 2016 16:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save shaneshifflett/94680c43c4de3d45bc04 to your computer and use it in GitHub Desktop.
Save shaneshifflett/94680c43c4de3d45bc04 to your computer and use it in GitHub Desktop.
Convert a GIF to MP4
brew install ffmpeg --with-libvorbis, --with-libvpx, --with-theora, --with-opus, --with-x265, --with-fdk-aac --with-ffplay, --with-freetype, --with-libass, --with-libquvi
ffmpeg -f gif -i YOURGIF.gif -vcodec libx264 -pix_fmt yuv420p YOURMP4.mp4
ffmpeg -i YOURMP4.mp4 -c:v libvpx -b:v 1M -c:a libvorbis YOURWEBM.webm
#bonus cool js library
#http://gka.github.io/canvid/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment