4

I am trying to build ffmpeg for windows (Xp - SP2) as given 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 placed in a 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 was not able to succeed.

My environment is Win XP with:

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

EDIT:

After certain changes in the above command by referring howto i was able to successfully run the make command and i found the following DLL's in their respective directory

  • ffmpeg\libavcodec\avcodec-51.dll
  • ffmpeg\libavformat\avformat-51.dll
  • ffmpeg\libavutil\avutil-49.dll

But i didn't see any ffmpeg\ffmpeg.exe file :(

What could have gone wrong?

Zombo
  • 1
  • 62
  • 391
  • 407
Gopi
  • 5,656
  • 22
  • 80
  • 146

3 Answers3

4

Possibly off topic, but I wrote a script for Cygwin to do this.

Zombo
  • 1
  • 62
  • 391
  • 407
  • Thanks! I downloaded the latest version from there but to use libfdk_aac they as to configure ffmpeg, I tried c:\FFMPEG\bin>ffmpeg --enable-libfdk_aac --enable-nonfree but it throws "Unrecognized option '-enable-libfdk_aac'. Error splitting the argument list: Option not found" . Thoughts? – Gopi Jun 05 '13 at 09:12
  • So, I cannot directly add a codec to existing FFMPEG exe? I am sorry I don't get your point here on how to use your script :( – Gopi Jun 06 '13 at 10:24
2

Ramiro's FFmpeg for Windows site gives much better step by step instructions, and has a community forum that you can ask questions on if the Wiki doesn't answer your question already.

Art Clarke
  • 2,495
  • 18
  • 15
  • 1
    The link is broken. Do you have working solution for 64 bit windows? – kheya Jul 22 '13 at 23:03
  • for cross compiling (for 64-bit windows) see https://github.com/rdp/ffmpeg-windows-build-helpers also here is a forum for windows: http://ffmpeg.zeranoe.com/forum/ which may be helpful – rogerdpack Jan 21 '14 at 17:38
1

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

You may also want to add lame and x264 to your build.

  1. Extract the tar to /ffmpeg/libraries
  2. ./configure --prefix=/ffmpeg/olibs --enable-static --disable-shared
  3. make
  4. make install

Additionals libraries:

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

Meir Gerenstadt
  • 3,573
  • 1
  • 23
  • 22