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

onCuePoint / what next

Open ut0mt8 opened this issue 8 years ago • 3 comments
trafficstars

So I patched ngx_live_module.c and I correctly decode the scte35 event sent from my Elemental Live server. Great. But I m missing what to do next. I have to pass the information to Dash registered module. But by what way ? Am I missing the big picture of the module in fact.

Should I pass the info to ngx_rtmp_publish functions/handlers ? any help from persons who know well the module will be appreciated.

(the first goal is to insert the scte event in the dash manifest).

diff_live.txt

ut0mt8 avatar Apr 02 '17 10:04 ut0mt8

Do you have a branch we can look at that has this event implemented? I believe DASH has a hook that gets called on every packet but I'll have to double check exactly how this works

Sent from my iPhone

On 2/04/2017, at 10:16 PM, Raphael Mazelier <[email protected]mailto:[email protected]> wrote:

So I patched ngx_live_module.c and I correctly decode the scte35 event sent from my Elemental Live server. Great. But I m missing what to do next. I have to pass the information to Dash registered module. But by what way ? Am I missing the big picture of the module in fact.

Should I pass the info to ngx_rtmp_publish functions/handlers ? any help from persons who know well the module will be appreciated.

(the first goal is to insert the scte event in the dash manifest).

diff_live.txthttps://github.com/sergey-dryabzhinsky/nginx-rtmp-module/files/888298/diff_live.txt

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/sergey-dryabzhinsky/nginx-rtmp-module/issues/229, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ACsxEaWkZOpgWvZlvX6IBHTSS-PK12s4ks5rr3VogaJpZM4Mwwkf.

chriswiggins avatar Apr 02 '17 18:04 chriswiggins

Sure you can look at https://github.com/ut0mt8/nginx-rtmp-module/blob/dev/ngx_rtmp_live_module.c on the onCuePoint function. I suppose that the hook is

next_publish = ngx_rtmp_publish; ngx_rtmp_publish = ngx_rtmp_dash_publish;

but this doesn't seems very pratical to pass metadata on it.

ut0mt8 avatar Apr 02 '17 18:04 ut0mt8

My branch is now working and correclty scte35 event (from elemental) to dash 👍

ut0mt8 avatar May 16 '17 15:05 ut0mt8