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.