linux ffmpeg h.265
2018-05-20 本文已影响0人
Persistently
ffmpeg 安装 参考 https://blog.csdn.net/yangdiao127/article/details/64134508
如果报错了可以参考 https://blog.csdn.net/yzhang6_10/article/details/75635734
1.下载包
hg clone https://bitbucket.org/multicoreware/x265cd x265/build/linux./make-Makefiles.bash
make
make install
- 再到ffmpeg目录下
./configure --prefix=/usr/local --enable-gpl --enable-libx265b
PKG_CONFIG_PATH环境变量定义
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
makec
make install
发现提示libx265.so.41打不开。这是因为找不到x265动态链接库,动态链接库目录中找不到该路径。
ldd /usr/local/bin/ffmpeg 查看动态链接库,看libx265.so.41 有无
vi /etc/ld.so.conf 添加
/usr/local/lib保存退出。
执行ldconfig就可以了。
或者看直接查找到libx265.so安装的位置建立软连接。