Nginx-rtmp-module: Just an information.. Please ?

Created on 25 Feb 2018  Â·  7Comments  Â·  Source: arut/nginx-rtmp-module

Hello to all of you,

Just one question !

Is it possible to stream multiple inputs (multiple obs instances) to a single nginx instance, so that it would create multiple hls and dash streams ?

Thanks !!

All 7 comments

Of course it is possible.

Thank you for your answer RocFang !

My assumption is that I don't need to add multiple applications but only one with different stream key (obs).

For example (with an application called "live") :

Input 1 : rtmp://192.168.x.x/live/abc ==> creates a "abc.m3u8" and "abc.mpd" playlist
Input 2 : rtmp://192.168.x.x/live/def ==> creates a "def.m3u8" and "def.mpd" playlist
Input 3 : rtmp://192.168.x.x/live/ghi ==> creates a "ghi.m3u8" and "ghi.mpd" playlist

Is this assumption correct ?

Just thought of this... I was wondering how to add multiple "application" directives, and thought that only the name had to change, not the settings... ^^"

If this is true, my issue would be solved ! Thanks again !

Yes, if you don't need specific configuration for each of such "channel",
then it will solve your case.

W dniu niedz., 25.02.2018 o 15:15 MrFrieza notifications@github.com
napisał(a):

Thank you for your answer RocFang !

My assumption is that I don't need to add multiple applications but only
one with different stream key (obs).

For example (with an application called "live) :

Input 1 : rtmp://192.168.x.x/live / stream key : abc ==> creates a
"abc.m3u8" and "abc.mpd" playlist
Input 2 : rtmp://192.168.x.x/live / stream key : def ==> creates a
"def.m3u8" and "def.mpd" playlist
Input 3 : rtmp://192.168.x.x/live / stream key : ghi ==> creates a
"ghi.m3u8" and "ghi.mpd" playlist

Is this assumption correct ?

Just thought of this... I was wondering how to add multiple "application"
directives, and thought that only the name had to change, not the
settings... ^^"

If this is true, my issue would be solved ! Thanks again !

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/arut/nginx-rtmp-module/issues/1215#issuecomment-368312583,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAbp9sxu-bffGlmhtG2FGY0A8iZ7U0Oaks5tYWrwgaJpZM4SSSD1
.

Of course you get information about stream name in callbacks, so you can control and react on events happening for specific stream.

Okay, so if I want to use the same application for multiple channels that would have the same settings, my assumption would be correct.

If not, I would need to duplicate (or more) the nginx folder, name it 1, 2 ,... and launch more instances after configuring the duplicated conf files (change the name of the application for the other instances, and modify the conf file as wanted) ?

@mrfrieza you can push different streams to the same application, otherwise there is no meaning of existing for a rtmp server.:)

Thanks then, this problem is solved (even if I got many more lol)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Mattyzero picture Mattyzero  Â·  6Comments

fishfree picture fishfree  Â·  4Comments

UspenskyRuslan picture UspenskyRuslan  Â·  5Comments

evgenibers picture evgenibers  Â·  4Comments

sfmth picture sfmth  Â·  6Comments