下载地址
1、Nginx:https://github.com/nginx/nginx
2、OpenSSL:https://github.com/openssl/openssl https://www.openssl.org/source/
3、rtmp:https://github.com/arut/nginx-rtmp-module
下载之后解压
OpenSSL:进入openssl 生成MakeFile
./config --prefix=`pwd`/libs
make make install
zlib安装
wget http://www.zlib.net/zlib-1.2.11.tar.gz
解压 cd到该目录 ./configure make make install
PCRE安装
wget https://netix.dl.sourceforge.net/project/pcre/pcre/8.40/pcre-8.40.tar.gz
解压 cd到该目录./configure make sudo make install
获取nginx-rtmp-module-1.2.1的路径
获取openssl-1.1.1h的路径
在 nginx-release-1.19.5 路径下
./auto/configure --add-module=/home/godv/godv/RTMP/nginx-rtmp-module-1.2.1 --with-openssl=/home/godv/godv/RTMP/openssl-1.1.1h
make make install
Nginx生成目录:/usr/local/nginx
用:nginx-rtmp-module-1.2.1/test/nginx.conf 替换 /usr/local/nginx/conf/nginx.conf
1、启动:/usr/local/nginx/sbin
./nginx
2、停止
./nginx -s stop
https://www.cnblogs.com/lin1/p/6742125.html
https://www.cnblogs.com/achengmu/p/9093814.html
https://www.videolan.org/developers/x264.html
https://blog.csdn.net/yuxielea/article/details/103146362
http://www.xitongzhijia.net/xtjc/20150410/44895.html?_t_t_t=0.2001951080772757
https://blog.csdn.net/qq_39759656/article/details/80776550
https://www.cnblogs.com/blackhumour2018/p/9400415.html
推流
ffmpeg -re -i TWICE\ -\ What\ is\ Love?.mp4 -vcodec libx264 -acodec aac -f flv rtmp://本机ip/myapp/mystream
拉流
ffplay rtmp://目标ip/myapp/mystream