首页 / 操作系统 / Linux / LINUX下编译ffmpeg-x264出现的错误及解决
1 版本:X264.r663,ffmpeg.r94532 yasm2.1 下载yasm新版本要安裝x264,就需要用yasm來編譯。那就先裝個yasm吧。yasm下載網址: http://www.tortall.net/projects/yasm/releases/yasm-0.6.0.tar.gz2.2 编译安装#tar xzvf yasm-0.6.0.tar.gz#cd yasm-0.6.0#./configure --prefix=/usr/local/yasm#make#make instal3 x2643.1 编译3.1.1 编译静态库svn co svn://svn.videolan.org/x264/trunk x264cd x264./configure --prefix=/staticmakemake install//可不执行,手工来3.1.2 编译动态库svn co svn://svn.videolan.org/x264/trunk x264cd x264patch -p0 ./configure --prefix=/shared --enable-sharedmakemake install//可不执行,手工来3.2 安装由于一般ffmpeg采用静态连接x264,所以只需要编译安装x264静态库#cp libx264.a /usr/lib#cp x264.h /usr/include4 ffmpeg4.1 下载到FFmpeg官方下载最新的FFmpeg版本。CVS服务器地址如下:cvs -z9 -d:pserver:anonymous@mplayerhq.hu:/cvsroot/ffmpeg co ffmpeg。现在已改成SVN下载:svn://svn.mplayerhq.hu/ffmpeg4.2 编译安装#./configure --enable-shared --disable-static --enable-memalign-hack --enable-libx264 --enable-gpl --enable-pthreads #make#make install