FFmpeg understanding (3. How to compile FFMPEG in Windows ?)

Source: Internet
Author: User

3. How to compile FFMPEG in windows?

Here, I only introduce howto
The environment of msys + mingw + VC. Others will be investigated later.

 

3.1 how to download and install msys/mingw?

1. Enter http://sourceforge.net/project/showfiles.php? Group_id = 2435
Page

A. Click msys
Base System and download bash-3.1-MSYS-1.0.11-1.tar.bz2,
Coreutils-5.97-MSYS-1.0.11-snapshot.tar.bz2
And msysCORE-1.0.11-20080826.tar.gz.

B. Extract msysCORE-1.0.11-20080826.tar.gz
Into xxx/msys folder.

C. extrace coreutils-5.97-MSYS-1.0.11-snapshot.tar.bz2's
Bin folder into xxx/msys folder.

D. extrace bash-3.1-MSYS-1.0.11-1.tar.bz2's
Bin folder into xxx/msys folder.

The B, c, d must be ordered
Strictly, and override any same files when Prompting information.

2. Enter http://sourceforge.net/project/showfiles.php? Group_id = 2435
Page

A. Click gcc
Version 3 and download gcc-core-3.4.5-20060117-3.tar.gz,
And gcc-g00000000-3.4.5-20060117-3.tar.gz.

B. Click GNU
Binutils, then click current
Release: binutils-2.17.50 and download binutils-2.17.50-20060824-1.tar.gz.

C. Click mingw
API for MS-windows, and download w32api-3.12-mingw32-dev.tar.gz.

D. Click mingw
Runtime, and download mingwrt-3.15.1-mingw32.tar.gz.

Extract all files(gcc-core-3.4.5-20060117-3.tar.gz,
Gcc-g00000000-3.4.5-20060117-3.tar.gz,
Binutils-2.17.50-20060824-1.tar.gz,
W32api-3.12-mingw32-dev.tar.gz,
Mingwrt-3.15.1-mingw32.tar.gz)
Into xxx/msys/mingw.

 

3.2 How ot download and install
ActivePerl?

To download, I list
Download addressj.

Download
ActivePerl 5.10.0.1004 for Windows (x86)

Download
ActivePerl 5.10.0.1004 for Windows 64-bit (x64)

 

3.3 How ot configure msys/mingw for VC?

1. Edit xxx/msys. BAT and insertCall
"C:/program files/Microsoft Visual Studio 8/VC/bin/vcvars32.bat"

Into the first line. The path can be changed in the light of respective
Environment.

2. Copy xxx/msys/etc/fstab. Sample
Xxx/msys/etc/fstab.

3. Edit xxx/msys/etc/fstab, and remap

Xxx/msys/mingw

YYY/perl

Notice:

A. XXX and YYY denote the proper
Path for msys and Perl respectively.

B. Please use editor supporting
UNIX format, for example, gvim.

 

3.4 how to compile FFMPEG?

1. Click xxx/msys. BAT to run it.

2. cd zzz/FFMPEG, and C, D ,... Disk is
Folder in the root directory. It is symbolled/C,/d ,... Respectively.

3../configure -- enable-memalign-hack
-- Enable-shared-Disable-static

4. Make

When reconfiguring these options, pleaseMake
Distclean
Before in any case.

 

3.5 what are libs generated?

1. xxx/FFMPEG/libavcoc/avcodec-52.lib

2. xxx/FFMPEG/libavdevice/avdevice-52.lib

3. xxx/ffmpeg/ libavformat/avformat-52.lib

4. xxx/FFMPEG/libavutil/avutil-49.lib

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.