Use mingw + msys + GCC to compile FFMPEG in Windows

Source: Internet
Author: User

Be sure to operate in sequence. Otherwise, you may encounter many strange problems (FFMPEG has high requirements on compiling system versions ).

 

1. www.mingw.org:

 

Download and install mingw 5.1.4 (http://jaist.dl.sourceforge.net/sourceforge/mingw/MinGW-5.1.4.exe), select g ++, mingw make when installing. We recommend that you install it on D:/mingw.

Download and install the msys Base System (MSYS-1.0.11, MSYS-1.0.11-rc-1.exe, http://jaist.dl.sourceforge.net/sourceforge/mingw/MSYS-1.0.11-rc-1.exe), and the installation path for mingw is prompted at the end of installation. We recommend that you install it in D:/msys.

Download GCC version 4 (gcc-4.3.0-20080502-mingw32-alpha) and unzip it to overwrite the mingw installation directory

Download mingw API for MS-Windows (w32api-3.13), unzip and overwrite the mingw installation directory

Because mingw automatically downloads the installation mingw32-make-3.81-20080326, no additional updates are required

2. www.ffmpeg.org:

 

Download MySQL 0.5Source code(Or extract the latest source code from SVN), decompress the package, and copy it to the msys user directory (home/XXX ).

Open the configure file in the source code directory in a text editor and replace all the PR files in the search box with print.

Open msys, go to the FFMPEG source code directory, create the release and debug directories, and compile the release or debug version as needed:
Go to the release directory and execute :.. /configure -- enable-memalign-hack -- extra-cflags =-fno-common -- extra-cflags =-fomit-frame-pointer -- disable-shared -- enable-static -- CPU = i586 -- enable-GPL -- enable-ffplay -- disable-Debug -- disable-logging
Go to the DEBUG directory and execute :.. /configure -- enable-memalign-hack -- extra-cflags =-fno-common -- extra-cflags =-fomit-frame-pointer -- disable-shared -- enable-static -- CPU = i586 -- enable-GPL -- enable-ffplay -- enable-DEBUG = 3 -- disable-optimizations -- disable-Stripping
See http://blog.csdn.net/hfw_1987/archive/2009/05/14/4183178.aspx
Then make, and then make install

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.