Building FFmpeg with libvpx support on Windows 7

Posted By : Oodles Admin | 26-May-2015

Compiling FFmpeg with libvpx support on “Windows 7”

 

While building FFmpeg, we need the below mentioned libvpx support :

 

Ffmpeg depends on yasm

Libvpx depends on libvorbis

Libvorbis depends on libogg

Ffplay, if needed, depends on libsdl

 

 

MS Windows 7

 

64-bit Windows 7 Home Premium

 

 

Tools In Need-

 

Python

         Install Python -  http://www.python.org/getit/.

         Choose the default components and Install to c:\python27 or similar.

         Add the Python executable to $PATH:

         Computer > Properties > Advanced system settings > Environment Variables …

Locate and edit the System variable "Path". Append a semicolon (;) followed by the                                     path to your python executable (perhaps c:\python27).

 

Git -

         Download and run a current Git installer: http://git-scm.com/downloads

         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/MSYS

Download and run the MinGW+MSYS installer mingw-get-inst:

http://sourceforge.net/projects/mingw/files/Installer/mingw-get-inst/

Install to c:\mingw. Choose the default C compiler, MSYS Basic System, and MinGW Developer Toolkit.

 

Begin -

Start > MinGW > MinGW Shell  

Create a workspace in $HOME : mkdir “~\src”

 

wget

Install wget - mingw-get install msys-wget

yasm

 

cd ~/src

git clone git://github.com/yasm/yasm.git

cd yasm

./autogen.sh --prefix=/mingw --target=x86_64-win64-gcc

make

make install

 

libogg

 

cd ~/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

 

libvorbis

 

cd ~/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

 

 

libvpx

 

cd ~/src

git clone http://git.chromium.org/webm/libvpx.git

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

 

ffmpeg

 

cd ~/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

 

 

About Author

Author Image
Oodles Admin

Divya has more than 6 years of industrial experience in different domains – SAP EP, Search Quality Operations and Content Writing. She loves travelling across the world and also enjoys watching movies.

Request for Proposal

Name is required

Comment is required

Sending message..