ObjectiveBuild ffmpeg with libvpx support, on Linux, OSX and Windows7 DependenciesLinux and OSXUpdated 2013-05-14 Systems Tested
Tools Needed
BeginNote: Commands preceded by Create a workspace in mkdir ~/src yasmcd ~/src git clone git://github.com/yasm/yasm.git cd yasm ./autogen.sh make # make install liboggcd ~src wget http://downloads.xiph.org/releases/ogg/libogg-1.3.0.tar.gz tar xzvf libogg-1.3.0.tar.gz cd libogg-1.3.0 ./configure --disable-shared make # make install libvorbiscd ~/src wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.3.tar.gz tar xzvf libvorbis-1.3.3.tar.gz cd libvorbis-1.3.3 ./configure --disable-shared make # make install cd ~/src git clone https://chromium.googlesource.com/webm/libvpx cd libvpx ./configure make # make install libsdl (optional)cd ~/src wget http://www.libsdl.org/release/SDL-1.2.15.tar.gz tar xzvf SDL-1.2.15.tar.gz cd SDL-1.2.15 ./configure make # make install ffmpegcd ~/src git clone git://source.ffmpeg.org/ffmpeg.git cd ffmpeg ./configure --enable-libvpx --enable-libvorbis make # make install MS Windows 7Updated 2013-05-16 PythonPython doesn't ship with Windows 7, and configure scripts below will require it. Download and run a current Python 2.x installer: Install Python for all users. Choose the default components. Install to Add the Python executable to your Computer > Properties > Advanced system settings > Environment Variables ... Locate and edit the System variable "Path". Append a semicolon ( gitDownload and run a current Git installer: Choose the default components. Choose "Run Git from the Windows Command Prompt". Choose "Checkout as-is, commit Unix-style endings". Last choice is important. FFmpeg won't build if git changes line endings to crlf. MinGW/MSYSDownload and run the MinGW+MSYS installer mingw-get-inst: http://sourceforge.net/projects/mingw/files/Installer/mingw-get-inst/ Install to Begin Launch a MinGW shell (Start > MinGW > MinGW Shell). Create a workspace in $HOME: mkdir ~/src (This directory corresponds to C:\MinGW\msys\1.0\home\[username]\src) wgetInstall wget with the following command:
yasmcd ~/src git clone git://github.com/yasm/yasm.git cd yasm ./autogen.sh --prefix=/mingw --target=x86_64-win64-gcc make make install liboggcd ~/src wget http://downloads.xiph.org/releases/ogg/libogg-1.3.0.tar.gz tar xzvf libogg-1.3.0.tar.gz cd libogg-1.3.0 ./configure --prefix=/mingw --target=x86_64-win64-gcc make make install libvorbiscd ~/src wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.3.tar.gz tar xzvf libvorbis-1.3.3.tar.gz cd libvorbis-1.3.3 ./configure --prefix=/mingw --target=x86_64-win64-gcc make make install libvpxcd ~/src git clone https://chromium.googlesource.com/webm/libvpx cd libvpx ./configure --prefix=/mingw --target=x86_64-win64-gcc make make install libsdl (optional)cd ~/src wget http://www.libsdl.org/release/SDL-1.2.15.tar.gz tar xzvf SDL-1.2.15.tar.gz cd SDL-1.2.15 ./configure --prefix=/mingw --target=x86_64-win64-gcc make make install ffmpegcd ~/src git clone git://source.ffmpeg.org/ffmpeg.git cd ffmpeg ./configure --prefix=/mingw --target=x86_64-win64-gcc --enable-libvpx --enable-libvorbis make make install |
FFmpeg >