Compiling BebopDroneDecodeStream on Mac


Starting with OS X 10.10 Yosemite, Xcode is available for free from the Mac App Store and is required to compile anything on your Mac. Make sure you install the Command Line Tools from Preferences > Downloads > Components.


To get ffmpeg for OS X, you first have to install ​Homebrew . If you don't want to use Homebrew, see the section below.

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

brew install autoconf automake faac faad2 fdk-aac ffmpeg fribidi git lame libass libogg libtool libvorbis libvpx nasm ncurses mplayer opus sdl shtool texi2html theora wget x264 xvid yasm
brew install homebrew/science/opencv3

brew list:
autoconf fdk-aac fribidi isl libogg libvorbis nasm openexr pkg-config texi2html xz
automake ffmpeg gcc jpeg libpng libvpx ncurses openjpeg rtmpdump theora yasm
eigen fontconfig git lame libtiff little-cms2 numpy openssl schroedinger wget
faac freetype gmp libass libtool mpfr opencore-amr opus sdl x264
faad2 frei0r ilmbase libmpc libvo-aacenc mplayer opencv3 orc speex xvid


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 -prefix=/usr/local -enable-shared
 make && sudo make install