ubuntu编译ffmpeg扩展支持FLV-H265
1.编译x264:
1)git clone http://git.videolan.org/git/x264.git
2)./configure --enable-shared
3)make && make install
2.编译x265:
2) tar xvf x265-2.7.tar.bz2
3)cd multicoreware-x265-e41a9bf2bac4/build/linux
4)./make-Makefiles.bash
5)make && make install
3.安装pkg-config
1)apt-get install pkg-config
2)pkg-config --list-all
4.编译ffmpeg
2)修改ffmpeg源码。支持hevc。参考:https://blog.csdn.net/weixin_45581597/article/details/127727870
3)修改三个文件:libavformat/flv.h,libavformat/flvdec.c,libavformat/flvenc.c。添加对hevc的支持。
4)./configure --enable-shared --enable-libx264 --enable-gpl --enable-libx265
5)make && make install
6)ffmpeg -version