This ffmpeg build script provides an easy way for building ffmpeg on OSX with non-free codecs included.