源码编译安装FFmpeg
- 首先下载源码ffmpeg源码
wget https://www.ffmpeg.org/releases/ffmpeg-4.3.1.tar.xz
xz -d ffmpeg-4.3.1.tar.xz
tar xvf ffmpeg-4.3.1.tar
- 配置
./configure --enable-shared
make -j12
安装nginx相关需要的依赖
pcre
wget https://ftp.pcre.org/pub/pcre/pcre-8.44.zip
unzip *.zip
./configure
make -j12
zlib
wget http://zlib.net//zlib-1.2.11.tar.gz
tar -zxvf zlib-1.2.11.tar.gz
cd zlib-1.2.11
./configure
make -j12
openssl
wget https://www.openssl.org/source/old/1.1.1/openssl-1.1.1.tar.gz
./configure
make -j12
nginx-rtmp-module
git clone https://github.com/arut/nginx-rtmp-module.git
wget http://nginx.org/download/nginx-1.18.0.tar.gz
./configure --with-pcre=../pcre-8.40 --with-zlib=zlib-1.2.11 --with-openssl=openssl-1.1.0 --with-http_ssl_module --add-module=nginx-rtmp-module
make -j12