Skip to content

Instantly share code, notes, and snippets.

@aslamdoctor
Created November 9, 2017 10:16
Show Gist options
  • Save aslamdoctor/0e77fefed83639387840158a8718794c to your computer and use it in GitHub Desktop.
Save aslamdoctor/0e77fefed83639387840158a8718794c to your computer and use it in GitHub Desktop.
Convert mp4 to ogv and/or WebM
# Convert mp4 video to ogv and/or WebM
# Browser support:
# http://caniuse.com/#search=mp4
# http://caniuse.com/#search=ogv
# http://caniuse.com/#search=webm
# Installation:
brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-frei0r --with-libass --with-libvo-aacenc --with-libvorbis --with-libvpx --with-opencore-amr --with-openjpeg --with- --with-rtmpdump --with-schroedinger --with-speex --with-theora --with-tools
# Usage: mp4 to ogv
ffmpeg -i input.mp4 -q:v 10 -c:v libtheora -c:a libvorbis output.ogv
# Usage: mp4 to WebM
ffmpeg -i input.mp4 -q:v 10 -c:v libvpx -c:a libvorbis output.webm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment