Windows + cygwin + FFMPEG + x264

Source: Internet
Author: User

In fact, the title has already been clearly stated. Here we talk about using cygwin on windws to compile FFMPEG + libx264. The key is + libx264. Because we used to compile FFMPEG without using -- enable-libx264. View my article on this part:

Http://blog.csdn.net/huangxiansheng1980/article/details/5712003

Here we will talk about how to make FFMPEG support x264.

Download x264 and compile it. For more information, see:

Http://blog.csdn.net/huangxiansheng1980/article/details/6880162

In fact, the file yasm.exe is used to compile XSS. Compile the ffmpeg yasmexe.exe file. In fact, these two files are one thing, but they must be changed to different names when compiling these two files. You also need to copy two copies of the file and name them as the two texts respectively. In my opinion, there is no question when compiling the XSS, But compiling ffmpegis not enough. Although you still cannot find yasm in the file yasmexe.exe.

After compiling x264, remember to use make install to install x246.

Okay, let's see what happens when we use -- enable-libx264.

It indicates that libx264 cannot be found.

Error: libx264 not found

It's hard to understand. We have already installed it using make install.

In the installation directory of cygwin, search. It does exist. It is in/usr/lib.

Look back at the config. log file under the FFMPEG directory and find that the path is incorrect. In this case, let him query our directory.

Therefore, we compile the command:

. /Configure -- enable-memalign-hack -- enable-shared -- disable-static -- disable-Debug -- enable-GPL -- enable-libx264 -- extra-cflags =-I/usr/local/include -- extra-ldflags =-L/usr/local/lib

Press enter.

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.