FFMpeg is a complete, cross-platform solution to record, convert and stream audio and video. It is a very popular video processing platform that is available on Linux. This is evident from the fact that its libavcodec library is used by VLC player.
In this blog post, I will be discussing the steps to build FFMpeg on windows.
- Download and install MinGW from the following link
- Download MSys from the following link
- Once the installation is complete, proceed with the post install and configure MinGW with MSys.
- Once the installation is complete, ensure that MSys is working. This you can verify by launching the MSys shortcut from the desktop.
- The next step is to check out ffmpeg source. In order to do this, you would require a SVN client like, SlikSVN
- Once the SVN client is installed, launch the command prompt. Create a directory FFMpeg under C: drive
- The next step is to check out the source of FFMpeg.
- Run the command svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
- Once the source is downloaded, launch the MSys command prompt using the shortcut in the desktop. If you are not able to find the short cut, browse to the <MSys Install DIR>\ and launch the Msys.bat file
- Once the MSys prompt is launched, navigate to the folder where the source is checked out.
- Run the command ./configure –enable-memalign-hack
- Once this is complete, run the make command and ensure that there are no errors.
- Finally run make install
- If everything goes fine, you would find an ffmpeg.exe in the root folder of the FFMpeg source.
Now there could a common error encountered by most of us while running the configure command, i.e., pr command not found. In order to fix this and continue with the build, download the coreutils library for MSys from the following location. Extract the downloaded library using a Zip utility and navigate to the bin folder. Copy the pr.exe file from there to the <MSys Install Dir>\bin folder and restart the MSys command prompt