Apr 02 2020 01:26 PM
I'm trying to set up a NGINX RTMP on a VM to distribute a stream to multiple endpoints at the same time. I've successfully set up a stream from OBS to NGINX and then send it to Facebook and Youtube at the same time. However, when I set it up to add Stream, it never fully connects in Stream. I copy the Server Ingest URL from Stream and paste it into my nginx.conf file and unfortunately never connects. There aren't any errors in NGINX, but stream does tell me that I may be sending an incorrect signal.
push rtmp://localhost/custom;
}
# Custom RTMP Application
application custom {
live on;
record off;
# Only allow localhost to publish
allow publish 127.0.0.1;
deny publish all;
# Push URL with the Custom stream Ingest URL
push rtmp://uniquecode-uniquecode2-usea.channel.media.azure.net:1935/live/uniquecode3;
}
}
Here's a site that talks through how to setup a NGINX RTMP Server.
https://www.scaleway.com/en/docs/setup-rtmp-streaming-server/
Apr 02 2020 08:55 PM
Apr 03 2020 05:46 AM
@Chris WebbThanks for the reply! I do have that block of code under the server_name section. I tried changing it to what you suggested and also updated my OBS stream to add that key to the stream key. However, I believe that is only for local authentication between my OBS client and my NGINX Server. It unfortunately did not make a difference on the Microsoft Stream side.
I currently don't have an issue streaming from OBS to NGINX, and then NGINX distributing the stream out to local clients over rtmp, Facebook Live, and Youtube Live all at the same time. I'm struggling with distributing the stream to Microsoft Stream though.
Appreciate your help!
Apr 05 2020 11:22 AM
SolutionI was able to figure it out and get it to work. You get the following Server Ingest URL from Stream when you Start Setup of your video.
rtmp://uniquecode-uniquecode2-usea.channel.media.azure.net:1935/live/uniquecode3
You then need to split up the URL and have the first part of the URL with the port as the push, and then add app to the end with app=live/uniquecode3;
push rtmp://localhost/custom;
}
# Custom RTMP Application
application custom {
live on;
record off;
# Only allow localhost to publish
allow publish 127.0.0.1;
deny publish all;
# Push URL with the Custom stream Ingest URL
push rtmp://uniquecode-uniquecode2-usea.channel.media.azure.net:1935 app=live/uniquecode3;
}
}
Apr 08 2020 01:05 PM
I added support for Microsoft Stream to this NGINX Docker Container if you want to stream to the container, and then stream to Microsoft Stream, Facebook, Youtube, Instagram, Periscope, all at the same time.
https://github.com/michaelkamprath/multi-service-rtmp-broadcaster