x264编译到ffmpeg的方法

1 下载x264并编译

git clone git://git.videolan.org/x264.git
./configure --enable-shared --enable-static --prefix=/usr
make -j8
make install
解释一下,指定/usr的话,安装好,不用配置路径。

j8的目的是编译起来,用8路进行make,节省编译时间


2 把libx264编译到ffmpeg

./configure --enable-gpl --enable-libx264 --prefix=/root/extest/webMP4/ffmpeg
make -j8
make instal

就可以了

你可能感兴趣的:(ffmpeg,c++)