我无法让NGINX模块手动记录活动流,也就是说,只有当我调用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;
}
}
}有人帮忙吗?
谢谢,佩德罗
发布于 2021-04-11 06:54:10
我在引用源代码时发现了这个。该模块始终记录的时间为:
audio、video或all我还没有使用这个模块,但我认为提供record manual应该能做到这一点。如果这不起作用,我也会尝试设置record_interval。
https://stackoverflow.com/questions/62472152
复制相似问题