Cygwin compiled FFmpeg library under Windows

Source: Internet
Author: User

FFmpeg in Linux is quite simple to compile, only need to configure, and then make a bit on it.

If you need a dynamic library, add a--enable-shared to the back of the Configure to be OK.


But under Windows is not very easy, in the online search for a variety of Windows compiled under the method, mostly stereotyped, and cumbersome, and some need to rely on a lot of libraries. And I just imagine Linux under that simple easy to compile a few libraries in the ffmpeg, is there a simple way? The answer is yes.


Download cygwin,:https://cygwin.com/

I downloaded the setup-x86_64.exe.

Then install, installation procedures can refer to this, write more detailed: http://jingyan.baidu.com/article/6b97984d83dfe51ca2b0bf0e.html

Remember to choose to install GCC and make related packages, otherwise you may not run the GCC command and do command;

If you really do not know how to install the Make command, wait for the Cygwin to install, manually install the Make tool, the method is as follows:

Download make-3.8.1.tar.bz2:http://gnu-make.soft32.com/on the official website.


Open Cygwin, similar to a Linux terminal, cd/cygdriver you can see the various disks on your computer, to the place where you download make-3.8.1.tar.bz2, unzip the installation make

Tar xvf make-3.8.1.tar.bz2

CD make-3.8.1

./configure

./build.sh

Generated a Make.exe

CP make.exe/bin/

You can use the make command at this point.


All ready, back on the road to compiling ffmpeg. The compilation steps in Cygwin and Linux are almost the same.

I am here to compile ffmpeg-2.1.8 for example, decompression;

./configure--enable-shared--disable-static

I'll tip you here:


So I'll try again:

$./configure--enable-shared--disable-static--disable-yasm

Then make

It's OK! As simple as this, you can find the library file you need in the ffmpeg-2.1.8/directory.


Cygwin compiled FFmpeg library under Windows

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.