[ffmpeg]在windows环境下编译和使用ffmpeg与x264方法
时间:2016-10-30 来源:酷播 点击:
在http://www.bairuitech.com/html/ruanjianxiazai/20071006/61.html下载ffmpeg_x264_src_20071007.rar,然后在已经配置好mingw和msys的环境下,先编译x264,然后安装到默认的/usr/local路径下,再编译ffmpeg,把x264的支持编进去,发现configure时出错,提示x264 not found.
网上都说:将ffmpeg/configure的2946行的x264_encoder_open改为
./configure --enable-shared --disable-pthread
再到ffmpeg目录下configure,命令如下:
./configure --enable-shared --disable-static --enable-memalign-hack --enable-
gpl --enable-libx264 --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr
/local/lib
成功打出config的信息。
疑惑的是在x264下用./configure --help时没有打出--disable-pthread选项,我试着用了--disable-pthread选项还起了作用。