网上搜到很多地址都是被墙,下载不下来。下面下载方式,亲测成功
h264:
git clone https://code.videolan.org/videolan/x264.git
// 编译安装
cd x264
mkdir build && cd build
./../configure --prefix=/usr/local/ --enable-shared
make
sudo make install
h265:
hg clone http://hg.videolan.org/x265
// 编译安装
cd x265/build
cmake ../source
make
sudo make install
参考:(55条消息) [FFmpeg] Ubuntu 安装 x264 和 x265_hanjialeOK的博客-CSDN博客_ubuntu安装x265