Multiple RTMP sources
November 02, 2022 05:11PM
I'm setting up NGINX to receive RTMP stream data. I want to setup multiple RTMP sources, such as input from my GoPro & phone. The data would be encoded in Prism Live Studio or OBS software & then sent to platforms such as Twitch.

I can setup the first RTMP source on port 1935 & it works OK. The issue is I can't get the config file setup correctly to receive a second or third source. I've tried both config's as below without success. Both ports 1935 & 1936 are open. What is the correct setup please?

rtmp {
server {
listen 1935;
chunk_size 4096;

application live1 {
live on;
record off;
}

application live2 {
live on;
record off;
}
}

OR

server {
listen 1935;
chunk_size 4096;

application live1 {
live on;
record off;
}
}

server {
listen 1936;
chunk_size 4096;

application live2 {
live on;
record off;
}



Edited 1 time(s). Last edit at 11/02/2022 05:12PM by Salmo.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 189
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready