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.