Compile FFMPEG in Windows

Source: Internet
Author: User

FFmpeg is an open-source and free cross-platform video and audio stream solution that uses lgpl or GPL licenses. FFmpeg is easier to compile in Linux. In Windows, it is relatively troublesome.

The following software is required to compile FFMPEG:

Msys:Minimal GNU (POSIX) System on Windows is a small GNU environment, including basic bash and make. Is the best GNU environment in windows.

FFmpeg 0.6: the latest release version is 0.6. Of course, you can also download the latest version through SVN, but there are certainly many bugs.

SDL:Simple DirectMedia Layer is a free cross-platform multimedia development kit, applicable to games, game sdks, demo software, simulators, MPEG players, and other application software.

 

    1. Download msys

Msys China project has detailed documentation on msys development environment and development tools. Download the msys Basic System (updated, 2010.07.23 ):Http://msys-cn.googlecode.com/files/MSYS-Update.7z

After downloading the msysbasic package, first download ming1_7zand decompress ming1_7z to any path (no Chinese characters or spaces are allowed in any folder in the path), and drag the mingw directory to the decompressed bin, etc directory at the same level to complete installation. Then run msys. The system will perform some initialization and then automatically create the home directory under the msys directory to complete msys installation.

For more information about msys environment configuration and tools, see the msys China project (http://code.google.com/p/msys-cn/) tutorial.

Quick tutorialBytes ¶

  1. Introduction, download and Installation
  2. Operating system history review
  3. Msys development environment and development tools
  4. Short C language tutorial Based on msys Environment
  5. Windows Programming Tutorial Based on msys and mingw
  6. Msys-based Flex & Bison (compiler Development Tool) Tutorial
  7. Development of Win32 dynamic link library DLL Based on msys
  8. Msys-based Windows DriverProgramDevelopment
    1. download FFMPEG 0.6

      download the latest FFMPEG version to the official homepage of FFMPEG. Http://www.ffmpeg.org/download.html

      : http://www.ffmpeg.org/releases/ffmpeg-0.6.tar.gz

      SVN address: SVN: // svn.ffmpeg.org/ffmpeg/trunk

      after downloading, decompress ffmpeg to the msys/home/your_name directory

    2. Add SDL

      http://www.libsdl.org/release/SDL-devel-1.2.11-mingw32.tar.gz

Decompress the package;

Copy all files under lib to msys/lib;

Copy all files under include to msys/include;

Copy the i386-mingw32msvc-sdl-config under bin to msys/bin and rename it SDL-config;

Copy SDL. dll in BIN to C :/ Msys/bin

    1. Compile FFMPEG

      Run msys. BAT to enter the FFMPEG directory (cd ffmpeg ).

      Enter

      ./Configure -- enable-memalign-hack

 

 

Reference:

Msys China Projects home: http://code.google.com/p/msys-cn/

Msys introduction, download and Installation Method: http://code.google.com/p/msys-cn/wiki/ChapterInstallation

Msys development environment and development tools: http://code.google.com/p/msys-cn/wiki/ChapterTwo

Compile FFMPEG in mingw:Http://jeremiah.blog.51cto.com/539865/126804

FFmpeg home: http://www.ffmpeg.org

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.