标签:target 保存 alt sse das 修改文件 tran ast 压缩包
ffmpeg -rtsp_transport tcp -i "rtsp://root:pass@10.1.30.11/axis-media/media.amp" -vcodec copy -acodec copy -f flv "rtmp://127.0.0.1:1935/live/"
rtmp {
server {
listen 1935;
application live {
live on;
}
application hls {
live on;
hls on;
hls_path temp/hls;
hls_fragment 8s;
}
}
}
cd nginx-1.15.5
./configure --prefix=/usr/local/nginx --add-module=../nginx-rtmp-module-master --with-http_ssl_module --with-pcre=../pcre-8.42 --with-openssl=../openssl-1.0.2l --with-zlib=../zlib-1.2.11
rtmp {
server {
listen 1935;
chunk_size 4000;
application live{
live on;
}
application hls {
live on;
hls on;
hls_path html/hls;
hls_fragment 3s;
}
}
}
修改http server端口为8001 修改servername 为本机ip,保存退出
开放1935端口和8001端口
firewall-cmd --zone=public --add-port=1935/tcp –permanent
firewall-cmd --reload
启动 ./sbin/nginx -c ./conf/nginx.conf
查看是否启动成功:ps aux|grep nginx
ffmpeg+nginx 实现rtsp转rtmp并通过nginx转发
标签:target 保存 alt sse das 修改文件 tran ast 压缩包
原文地址:https://www.cnblogs.com/xxjs/p/12069364.html