【发布时间】:2020-06-19 14:12:56
【问题描述】:
我无法让 NGINX RTMP 模块手动录制直播流,即仅在我调用时 https://mydomain:8080/control/record/start?app=live&name=name&rec=rec 或 https://mydomain:8080/control/record/stop?app=live&name=name&rec=rec。
问题是 NGINX 总是记录流,我不知道什么时候开始。
这是我的 NGINX 配置文件:
rtmp {
server {
listen 1935;
chunk_size 4000;
notify_method get;
application live {
live on;
hls on;
hls_path /hls/;
hls_fragment 20s;
hls_playlist_length 60;
recorder rec {
record all manual;
record_path /mp4/;
record_suffix .flv;
record_notify on;
}
}
}
帮忙,有人吗?
谢谢, 佩德罗
【问题讨论】: