nginx-rtmp-module icon indicating copy to clipboard operation
nginx-rtmp-module copied to clipboard

Recorder starts automatically despite manual config

Open sheldonbaker opened this issue 7 years ago • 10 comments

Starting a stream (from OBS, e.g.) always starts a new .flv file, even though I have manual configuration on the recorder.curling http://localhost:8080/control/record/stop?app=live&name=test2&rec=default multiple times also generates new recordings.

worker_processes 1;
events {
    worker_connections 1024;
}

rtmp {
    server {
        listen 1935;

        application live {
            live on;
            
            recorder default {
                record all manual;
                record_unique on;
                record_path /tmp/rec;
            }     
        }
    }
}

http {
    server {
        listen 8080;
        server_name localhost;

        location /control {
            rtmp_control all;
        }

        location /stats {
            rtmp_stat all;
        }
    }
}

sheldonbaker avatar Feb 05 '18 19:02 sheldonbaker

yes seems a bug. i tried all the combination of recorders. no luck

vigikaran avatar Jun 18 '18 21:06 vigikaran

please fix it. cant stop recording. that auto start after stopped with curl

gdomod avatar Jun 25 '18 08:06 gdomod

Any update about this issue? I have the same case

tnakhleh avatar Apr 22 '19 14:04 tnakhleh

Same issue.

dogenius01 avatar Aug 12 '19 00:08 dogenius01

Any update on this issue.?

sriharshapr avatar Dec 11 '20 10:12 sriharshapr

I confirm the issue. I installed the https://github.com/sergey-dryabzhinsky/nginx-rtmp-module/ branch and the recording starts automatically if it is set to manual.

kanaldro avatar Jun 15 '21 11:06 kanaldro

Any updates?

rishpandey avatar Jul 02 '21 11:07 rishpandey

I'm also having this issue!!! Any updates on this?

Alzy avatar Jan 10 '22 02:01 Alzy

UPDATE! I have confirmed that this does in fact work!!! The https://github.com/sergey-dryabzhinsky/nginx-rtmp-module/ branch that @kanaldro did not work in my tests but I tested with the latest nginx version 1.21.4 and rtmp module version 1.2.2 and it works perfectly. Set worker_processes 1; at the top of the conf and set record manual all; for your application.

Alzy avatar Jan 13 '22 05:01 Alzy

UPDATE! I have confirmed that this does in fact work!!! The https://github.com/sergey-dryabzhinsky/nginx-rtmp-module/ branch that @kanaldro did not work in my tests but I tested with the latest nginx version 1.21.4 and rtmp module version 1.2.2 and it works perfectly. Set worker_processes 1; at the top of the conf and set record manual all; for your application.

Could you share your conf file because with everything up to date, worker_process 1 and record manual all, recordings still start automatically when stream is on... Thanks

nicoasi avatar Sep 23 '22 07:09 nicoasi