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

recorder manual ignored

Open janiel14 opened this issue 7 years ago • 3 comments

I am programmer analyst and I have been using nginx-rtmp for some time and recently implementing recording feature I encountered a problem when using the configuration below:

application myapp { live on;

 recorder rec1 {
       record all manual;
 }

}

Above is just an example, the question is that the manual flag is no longer being respected, in other words, if there is a RECORDER setting it will always record. I am modifying the ngx_rtmp_record_module.c file in an attempt to fix the problem but I have little experience with c. The part which I imagine the problem is this:

for (n = 0; n < ctx->rec.nelts; ++n, ++rctx) {
    if (rctx->conf->flags & (NGX_RTMP_RECORD_OFF|NGX_RTMP_RECORD_MANUAL)) {
        continue;
    }
    ngx_rtmp_record_node_open(s, rctx);
}

line 681

I thank you for your attention

janiel14 avatar Jul 12 '17 12:07 janiel14

@janiel14 where did you get that configuration from? I believe looking at the directives and the source code you're using the wrong config. Directives are here

It should look like this

application myapp {
   live on;
   record all manual;
}

In saying that, I think the recording functionality is broken at the moment anyway, but give that a go

chriswiggins avatar Jul 15 '17 05:07 chriswiggins

This is already an open issue, see #214

Fenrirthviti avatar Jul 20 '17 20:07 Fenrirthviti

any updates? how to fix this?

olablt avatar Oct 11 '17 17:10 olablt