Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save juanpprieto/083f6d9a91ba21707e2f11355fadb72f to your computer and use it in GitHub Desktop.
Save juanpprieto/083f6d9a91ba21707e2f11355fadb72f to your computer and use it in GitHub Desktop.
1. Install ffmpeg:
brew install ffmpeg --with-vpx --with-vorbis --with-libvorbis --with-vpx --with-vorbis --with-theora --with-libogg --with-libvorbis --with-gpl --with-version3 --with-nonfree --with-postproc --with-libaacplus --with-libass --with-libcelt --with-libfaac --with-libfdk-aac --with-libfreetype --with-libmp3lame --with-libopencore-amrnb --with-libopencore-amrwb --with-libopenjpeg --with-openssl --with-libopus --with-libschroedinger --with-libspeex --with-libtheora --with-libvo-aacenc --with-libvorbis --with-libvpx --with-libx264 --with-libxvid
2. Convert:
ffmpeg -i input-file.mp4 -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis output-file.webm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment