FFmpeg x265安装
下载并安装x265
下载地址:
https://bitbucket.org/multicoreware/x265/downloads/
https://www.videolan.org/developers/x265.html
[root@binair zyl-tool]# cd x265_3.0/build/linux
[root@binair linux]# make -j20
[root@binair linux]# make install
[ 66%] Built target common
[ 88%] Built target encoder
[ 88%] Built target x265-shared
[100%] Built target cli
[100%] Built target x265-static
Install the project…
– Install configuration: “Release”
– Installing: /usr/local/lib/libx265.a
– Installing: /usr/local/include/x265.h
– Installing: /usr/local/include/x265_config.h
– Installing: /usr/local/lib/libx265.so.169
– Installing: /usr/local/lib/libx265.so
– Installing: /usr/local/lib/pkgconfig/x265.pc
– Installing: /usr/local/bin/x265
– Removed runtime path from “/usr/local/bin/x265”
[root@binair linux]# ldconfig
观察到x265的pkg目录在/usr/local/lib/pkgconfig/
库目录在/usr/local/lib
配置x265 ffmpeg
[root@binair ffmpeg-4.2.2]# PKG_CONFIG_PATH="/usr/local/lib/pkgconfig/" --prefix=/home/binair/zyl/ffmpeg-project/linux-ff/ffmpeg-4.2.2/build --disable-static --enable-gpl --enable-version3 --enable-nonfree --enable-shared --enable-libx265 --extra-ldflags="-L/usr/local/lib/"
[root@binair ffmpeg-4.2.2]# make;make install