1.编译x264:
1)git clone http://git.videolan.org/git/x264.git 2)./configure --enable-shared --disable-asm 3)make && make install2.编译x265:
1)wget http://ftp.videolan.org/pub/videolan/x265/x265-2.7.tar.bz2 2) tar xvf x265-2.7.tar.bz2 3)cd multicoreware-x265-e41a9bf2bac4/build/linux 4)./make-Makefiles.bash 5)make && make install3.安装pkg-config
1)apt-get install pkg-config 2)pkg-config --list-all4.编译ffmpeg
1)wget http://ffmpeg.org/releases/ffmpeg-4.3.2.tar.gz 2)修改ffmpeg源码。支持hevc。参考:https://blog.csdn.net/weixin_45581597/article/details/127727870 3)./configure --enable-shared --enable-libx264 --enable-gpl --enable-libx265 4)make && make install 5)ffmpeg -version标签:enable,ffmpeg,tar,--,H265,make,FLV,x265 From: https://www.cnblogs.com/feixiang-energy/p/17700008.html