rtmp_auto_push on;
rtmp {
server {
listen 1921;
application live {
live on;
}
application history {
live on;
}
application hls {
live on;
hls on;
hls_path temp/hls;
hls_fragment 8s;
}
}
}
#这样推流的rtmp服务器地址是 rtmp://your_ip:1935/live/test1使用 ffmpeg 推流测试
ffmpeg -re -stream_loop -1 -i 123test.mp4 -c:av copy -f flv rtmp://127.0.0.1:1921/live