Build FFmpeg on Mac OS X

brew install yasm  
brew install pkg-config  
brew install faac

wget ftp://ftp.videolan.org/pub/x264/snapshots/last_x264.tar.bz2  
tar -zxvf last_x264.tar.bz2  
cd /path/to/x264  
./configure --enable-static
make  
sudo make install

cd /path/to/ffmpeg  
./configure --enable-gpl --enable-version3 --enable-nonfree --enable-pthreads --enable-libfaac --enable-libx264