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 ~/srcyasmcd ~/srcgit clone git://github.com/yasm/yasm.gitcd yasm./autogen.shmake# make installliboggcd ~srcwget http://downloads.xiph.org/releases/ogg/libogg-1.3.0.tar.gztar xzvf libogg-1.3.0.tar.gzcd libogg-1.3.0./configure --disable-sharedmake# make installlibvorbiscd ~/srcwget http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.3.tar.gztar xzvf libvorbis-1.3.3.tar.gzcd libvorbis-1.3.3./configure --disable-sharedmake# make installcd ~/srcgit clone https://chromium.googlesource.com/webm/libvpxcd libvpx./configuremake# make installlibsdl (optional)cd ~/srcwget http://www.libsdl.org/release/SDL-1.2.15.tar.gztar xzvf SDL-1.2.15.tar.gzcd SDL-1.2.15./configuremake# make installffmpegcd ~/srcgit clone git://source.ffmpeg.org/ffmpeg.gitcd ffmpeg./configure --enable-libvpx --enable-libvorbis make# make installMS 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 ~/srcgit clone git://github.com/yasm/yasm.gitcd yasm./autogen.sh --prefix=/mingw --target=x86_64-win64-gccmakemake installliboggcd ~/srcwget http://downloads.xiph.org/releases/ogg/libogg-1.3.0.tar.gztar xzvf libogg-1.3.0.tar.gzcd libogg-1.3.0./configure --prefix=/mingw --target=x86_64-win64-gccmakemake installlibvorbiscd ~/srcwget http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.3.tar.gztar xzvf libvorbis-1.3.3.tar.gzcd libvorbis-1.3.3./configure --prefix=/mingw --target=x86_64-win64-gccmakemake installlibvpxcd ~/srcgit clone https://chromium.googlesource.com/webm/libvpxcd libvpx./configure --prefix=/mingw --target=x86_64-win64-gccmakemake installlibsdl (optional)cd ~/srcwget http://www.libsdl.org/release/SDL-1.2.15.tar.gztar xzvf SDL-1.2.15.tar.gzcd SDL-1.2.15./configure --prefix=/mingw --target=x86_64-win64-gccmakemake installffmpegcd ~/srcgit clone git://source.ffmpeg.org/ffmpeg.gitcd ffmpeg./configure --prefix=/mingw --target=x86_64-win64-gcc --enable-libvpx --enable-libvorbismakemake install |
FFmpeg >
