Topics: Windows compilation x264, SDL, FAAC, ffmpeg process

Source: Internet
Author: User

The complete process of compiling ffmpeg on Windows, including compiling x264, SDL, FAAC. Compile ffmpeg on Windows need to use Mingw+msys, this topic is used to record the compilation process encountered various problems and solutions, reproduced please specify the source:

First, download preparation

Prepare the necessary tools and source code for the compilation process.

(1). MinGW Http://sourceforge.net/projects/mingw/files/MSYS Http://downloads.sourceforge.net/mingw/MSYS-1.0.11.exe

(2). Yasm http://yasm.tortall.net/Download.html

(3). SDL http://www.libsdl.org/download-1.2.php

(4). X264 http://www.videolan.org/developers/x264.html

(5). FFmpeg http://www.ffmpeg.org/download.html

Second, Mingw+msys installation

The latest version of the MinGW installation tool Mingw-get-setup.exe has integrated msys tools inside:

Configuration Msys supports GCC compilation:

To start the installation:

Install Msys-1.0.11.exe (we found in the following installation process that the Msys gcc version of the above installation is relatively low, when compiling the SDL error), the installation process will allow the configuration of the installed MinGW path, such as: C:/mingw:

Third, YASM support

From the step one will download the yasm executable file, renamed to Yasm.exe, placed in Windows\System32.

Iv. compiling the SDL

Unzip the downloaded SDL source package, for example, into the D:\ffmpeg1.2\SDL-1.12.15 directory, msys into the SDL directory and execute it in turn:

./configure-–prefix=/usr/local/sdlmakemake Install

Five, compile x264

Unzip the downloaded x264 source package, for example, into the D:\ffmpeg1.2\x264 directory, msys into the x264 directory, followed by:

./configure  --enable-shared–-disable-asm-–prefix=/usr/local/x264makemake Install

Vi. re-deployment of the environment

1. Download

The address is: http://sourceforge.net/projects/mingwbundle/files/, click on this page download Download the zip file. Once the download is complete, install it directly and I am using the default path. (This file is larger, is Mingw+msys's merged installation package, downloaded and installed, the C:\msys\1.0\bin folder copied out, backup save);

The default path is: C:\mingw and C:\msys\1.0

2. Configure Environment variables
Right-click on "My Computer"-"Properties-" advanced-"environment variable
By operation, add C:\MinGW\bin at the end of the edit box in path

use ";" to separate from the front

Third, download Msys

Address: http://download.csdn.net/detail/harvic880925/4602268

After downloading, or the default installation, do not uninstall before the installation of the first step in the previous version, that is, the first step of the version to cover out;

The DOS prompt window will be presented at the end of the installation:

The last sentence is:
Does the wish to continue with the post install? [Yn]
Enter N to end the installation.

Four, the bin folder will be extracted in the first step of the contents, copied to the C:\msys\1.0\bin folder to overwrite the current file;

Vii. Compilation of FAAC

Unzip the downloaded FAAC source package, for example, into the D:\FFMPEG1.2\FAAC directory, msys into the FAAC directory, followed by:

./bootstrap
 
  
 
  
./configure--enable-shared–-disable-static-–prefix=/usr/local/faacmakemake Install

Viii. Deployment of MINGW-W64

From http://jaist.dl.sourceforge.net/project/mingw-w64/Toolchains%20targetting%20Win32/Personal%20Builds/ Mingw-builds/installer/mingw-w64-install.exe Download mingw-w64, install the c:/mingw-w64/, and then modify the path in the C:\msys\etc\fstab file, Configure the MinGW path to: C:/mingw-w64/mingw32.

Nine, compiling ffmpeg

Unzip the downloaded ffmpeg0.9.0 source package, for example, into the D:\ffmpeg1.2\ffmpeg0.9.0 directory, msys into the FFmpeg directory, followed by:

./configure--enable-shared--disable-static--enable-memalign-hack--enable-libx264--ENABLE-GPL--enable-nonfree-- ENABLE-LIBFAAC--prefix=/usr/local/ffmpeg9.0
Makemake Install

Topics: Windows compilation x264, SDL, FAAC, ffmpeg process

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.