you're reading...

Building FFMpeg on Windows

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.

  1. Download and install MinGW from the following link
  2. Download MSys from the following link
  3. Once the installation is complete, proceed with the post install and configure MinGW with MSys.
  4. Once the installation is complete, ensure that MSys is working. This you can verify by launching the MSys shortcut from the desktop.
  5. The next step is to check out ffmpeg source. In order to do this, you would require a SVN client like, SlikSVN
  6. Once the SVN client is installed, launch the command prompt. Create a directory FFMpeg under C: drive
  7. The next step is to check out the source of FFMpeg.
  8. Run the command svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
  9. 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
  10. Once the MSys prompt is launched, navigate to the folder where the source is checked out.
  11. Run the command ./configure –enable-memalign-hack
  12. Once this is complete, run the make command and ensure that there are no errors.
  13. Finally run make install
  14. 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



One thought on “Building FFMpeg on Windows

  1. My brother suggested I would possibly like this blog. He used
    to be entirely right. This post truly made my day.
    You can not consider just how much time I had spent for this info!
    Thank you!

    Posted by bentley repair in newport beach | April 15, 2013, 5:54 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: