开发者

Building ffmpeg for Windows with MSYS and MinGW

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?


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


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.


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:

  • FAAC http://downloads.sourceforge.net/faac/faac-1.28.tar.gz
  • FDK-AAC http://sourceforge.net/projects/opencore-amr/files/fdk-aac/fdk-aac-0.1.1.tar.gz/download

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜