FFmpeg x265安裝

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章