Skip to content

Instantly share code, notes, and snippets.

@shaneshifflett
Created July 24, 2017 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shaneshifflett/a4f73a08de9032fee018b466657a45c8 to your computer and use it in GitHub Desktop.
Save shaneshifflett/a4f73a08de9032fee018b466657a45c8 to your computer and use it in GitHub Desktop.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
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
#codecs i've used to get web mp4s working on safari/chrome
ffmpeg -i YOURFILE.mov -vcodec libx264 -vprofile high -preset veryslow -b:v 1m -maxrate 300k -bufsize 1000k -vf scale=-1:-1 -threads 2 -pass 1 -an -f mp4 YOURFILE.mp4
#for firefox
ffmpeg -i iqos.mp4 -c:v libvpx -b:v 1M -c:a libvorbis iqos.webm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment