Install and Build FFmpeg on Yosemite

Installation guide

Required external tools:

brew install automake fdk-aac git lame libass libtool libvorbis libvpx opus sdl shtool texi2html theora wget x264 xvid yasm pkg-config glib

Ready … lets begin!

Compiling FFmpeg yourself

Additional libraries

These are just some examples. Run ./configure - -help for all available options:

  • ​x264 encodes H.264 video. Use - -enable-gpl - -enable-libx264.
  • ​fdk-aac encodes AAC audio. Use - -enable-libfdk-aac.
  • ​libvpx is a VP8 and VP9 encoder. Use - -enable-libvpx.
  • ​libvorbis encodes Vorbis audio . Requires ​libogg. Use - -enable-libvorbis.
  • ​libopus encodes Opus audio.
  • ​LAME encodes MP3 audio. Use - -enable-libmp3lame.
  • ​libass is a subtitle renderer. Use - -enable-libass.


Once you have compiled all of the codecs/libraries you want, you can now download the FFmpeg source either with Git or the from release tarball links on the website. Study the output of ./configure - -help and make sure you've enabled all the features you want, remembering that - -enable-nonfree and - -enable-gpl will be necessary for some of the dependencies above. A sample command is:

git clone git://source.ffmpeg.org/ffmpeg.git ffmpegcd ffmpeg
./configure - -enable-gpl - -enable-libx264
sudo make install