1--> Download Install Mingw,mingw-get-inst-20120426.exe http://sourceforge.net/projects/mingw/
Installation path default C:\MinGW. Checked <1> c Compiler <2> C + + Compiler <3>msys Basic System <4>mingw Developer ToolKit
Msys is installed in <3>. This installation requires networking and automatically downloads some tool files under the MinGW project.
After the installation is complete, in order to facilitate vs200x and VS2010 call FFmpeg Dynamic Library, can be configured to let FFmpeg compile when the Windows downgrade DLL corresponding to the LIB. According to my VS2010 installation directory, with Noteplus notepad++ UE support Uinux Line-wrapping Text tool to open C:\MinGW\msys\1.0\msys.bat
Add the following line in front of the most
Call "C:\Program Files\Microsoft Visual Studio 10.0\vc\bin\vcvars32.bat"
Sending Msys.bat to a desktop shortcut makes it easy to open a command window, a simple Linux shell.
So cd/e/ffmpeg/switch to the e:/ffmpeg/directory.
2---> Download install yasm, because compiling ffmpeg inside the assembly code needs Yasm.exe, without this, can also compile through, may use, the efficiency is not so high. Http://yasm.tortall.net
Win32 VS2010. zip (for use with VS2010 on 32-bit Windows) Version 1.2.0 release:october 31, 2011
In order to reduce the trouble of configuring environment variables, unzip the Vsyasm.exe file name to: Yasm.exe, and put in the system directory: C:windows\system32\.
3---> Download install ffmpeg. http://www.ffmpeg.org Version 1.1 release:january 7,
4---> Compile X264 (Project requirements)
http://www.videolan.org/developers/x264.html Download Extract x264-snapshot-20130114-2245
Open Msys.bat, command line
1.$ CD e/ffmpeg/x264-snapshot-20130114-2245/
2.$./configure--enable-shared--disable-asm
3.$ make
4.$ make Install
This copies the results of the compilation to the three folders under bin include Lib under C:\MinGW\msys\1.0\local.
The input command has a trick, you can copy, in the Msys.bat Command Line window title bar right click, to choose--"edit-paste (P)". Like DOS, the tag is duplicated.
If the compilation fails or is recompiled, run make Distclean or make clean before performing the above 1--2--3--4
5---> Download sdl. No SDL compiled Ffplay.exe cannot play the video.
Http://www.libsdl.org/download-1.2.php finally has a Win32 sdl-devel-1.2.15-mingw32.tar.gz (MINGW32)
Unzip the bin include Lib folder contents corresponding to the C:\MinGW\msys\1.0\local under bin include Lib three folders.
Use UltraEdit to open the Sdl-config file under the C:\MinGW\msys\1.0\local\bin you just copied
Put the prefix=/usr/******* into: Prefix=c:/mingw
Where: C:/mingw is the installation path for MinGW, please modify it according to your installation. For compile-time Msys can identify SDL and turn on SDL support Yes to compile.
Windows 7 under Mingw+msys compilation FFmpeg