FFmpeg build under mingw
Use mingw to compile FFMPEG. The latest FFMPEG version is used here. Version 0.6.1 (Oct 18,201 0)
Steps:
1. Build the mingw compilation environment
Download mingw-get-inst-20101030.exe, click here to download http://sourceforge.net/projects/mingw/files.
Select
Network connection is required during installation. InstallProgramWill download the corresponding program online. This process takes a long time. Please wait.
After the installation is successful, execute (C: \ mingw \ msys \ 1.0 \ msys. BAT), the program will create a working directory under the directory (C: \ mingw \ msys \ 1.0 \ home) according to your current user name. The directory name is the same as your user name. If your system username is administer, your working directory is (C: \ mingw \ msys \ 1.0 \ home \ administer)
Note::If the network is disconnected or some components cannot be downloaded during the installation process, do not worry. After the installation program is completed, run the installation program again, the installer continues to download software that has failed. (I have installed it three times before it is completely successful.) If some cannot be downloaded, you can try "over the wall ". For detailed wall flip operations, see Google.
I have an environment set up here. The size of the rarfile is 127 mb. Unzip it to the C drive and directory for use. If you need a friend, leave an email and I will send it to you.
2. Compile FFMPEG
Download the latest FFMPEGCodeI am using version 0.6.1, which is the latest version that has been withdrawn from the official website. : Http://ffmpeg.org/releases/ffmpeg-0.6.1.tar.bz2
After the download is successful, extract the ffmpeg-0.6.1.tar.bz2 to the mingw working directory. For example (C: \ mingw \ msys \ 1.0 \ home \ administer)
Run c: \ mingw \ msys \ 1.0 \ msys. BAT to enter the mingw working directory.
Enter the command "ls", which is equivalent to "dir ". List Files in the current directory.
Enter the CD ffmpeg-0.6.1 to enter the ffmpeg-0.6.1 directory.
The following actions come from the http://ffmpeg.org/general.html#SEC20
Enter the following command in the command line:
./ Configure -- enable-memalign-hack -- enable-shared
Make
Make install
After successful compilation, the generated files are saved in (c: \ mingw \ msys \ 1.0 \ Local \ bin), and the header files are saved in (C: \ mingw \ msys \ 1.0 \ Local \ include ).
At this time, you will find that the *. Lib file is not in the bin directory. To generate a successful lib file. Add a command in the header of the (C: \ mingw \ msys \ 1.0 \ msys. BAT) file:
(Lib.exe of vs2008 used here)
Call " C: \ Program Files \ Microsoft Visual Studio 9.0 \ Vc \ bin \ vcvars32.bat "
The purpose of this statement is to set up a development environment of 2008x86. We mainly use its lib.exe to generate the *. Lib file.
I have compiled DLL, Lib, and header files. If you have any need, leave an email and I will send it to you. The RAR size is 15 MB.