参考文章:https://zhuanlan.zhihu.com/p/114436399
相关 githup 开源项目 srt srs srt_encoder
安装srt,并根据srt_encoder提供得文件修改并编译ffmpeg4.1
安装 srt
[root@JJFA-FTP ~]# yum update
[root@JJFA-FTP ~]# yum install git tcl pkgconfig openssl-devel cmake gcc gcc-c++ make automake wget -y
[root@JJFA-FTP ~]# cd /opt/
[root@JJFA-FTP opt]# git clone https://github.com/Haivision/srt.git
[root@JJFA-FTP opt]# cd srt
[root@JJFA-FTP srt]# ./configure --prefix=/usr/local
[root@JJFA-FTP srt]# make && make install
安装 yasm插件
[root@JJFA-FTP opt]# wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
[root@JJFA-FTP opt]# tar zxvf yasm-1.3.0.tar.gz
[root@JJFA-FTP opt]# cd yasm-1.3.0
[root@JJFA-FTP yasm-1.3.0]# ./configure
[root@JJFA-FTP yasm-1.3.0]# make && make install
安装 x264视频编码器
[root@JJFA-FTP opt]# git clone https://code.videolan.org/videolan/x264.git
[root@JJFA-FTP opt]# cd x264/
[root@JJFA-FTP libx264-git]# ./configu