Building ffmpeg for Windows with MSYS and MinGW

I am trying to build ffmpeg for windows (Xp - SP2) as indicated here .

./configure -–extra-cflags="-mno-cygwin -mms-bitfields" -–extra-ldflags="-Wl, -add-stdcall-alias" -–enable-memalign-hack -–enable-shared -–disable-static -–target-os=mingw32 

The above command is put into the myconfig file as instructed, and when I run ./myconfig , the following error is displayed:

 Broken Shell detected. Trying alternatives. Trying Shell bash Unknown option "-–extra-cflags=-mno-cygwin". 

As suggested in the link, I tried various options, but still I could not succeed.

My environment is Win XP with:

  • MinGW-5.1.6,
  • bash -2.05b-MSYS,
  • MSYS-1.0.10,
  • Ffmpeg-0.5

EDIT:

After some changes to the above command, contacting howto , I was able to successfully execute the make command, and I found the following DLL in the corresponding directory

  • FFmpeg \ codec \ avcodec-51.dll
  • Ffmpeg \ libavformat \ avformat-51.dll
  • Ffmpeg \ libavutil \ avutil-49.dll

But I did not see the ffmpeg \ ffmpeg.exe file: (

What could have gone wrong?

+4
source share
3 answers

Ramiro FFmpeg for Windows provides much better step-by-step instructions and has a community forum where you can ask questions if the Wiki no longer answers your question.

+2
source

Perhaps off topic, but I wrote a script for Cygwin for this.

+4
source

Finally I managed to build ffmpeg on windows with this blog http://www.finalmediaplayer.com/source.html

You can also add lame and x264 to your assembly.

  • Extract tar to / ffmpeg / libraries
  • ./configure --prefix=/ffmpeg/olibs --enable-static --disable-shared
  • make
  • make install

Add-on Libraries:

Reconfigure ffmpeg with the following options: --enable-libx264 --enable-libmp3lame --enable-libfaac --enable-libfdk-aac

+1
source

All Articles