I can't make NGINX RTMP module to record the live stream manually, ie, ONLY when I call https://mydomain:8080/control/record/start?app=live&name=name&rec=rec or https://mydomain:8080/control/record/stop?app=live&name=name&rec=rec .
The problem is that NGINX always records the stream and I wan't to be able to tell it when to start.
Here's my NGINX config file:
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;
}
}
}
Help, anyone?
Thanks, Pedro
I found this when I refered the source code . The module always records as long as:
audio
, video
or all
I haven't used this module yet, but I think providing record manual
should do the trick. If that doesn't work I would also try setting the record_interval
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.