Forum Discussion
hovee
Apr 02, 2020Brass Contributor
Unable to use NGINX RTMP Streaming Server with Stream
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 a...
- Apr 05, 2020
I 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; } }
hovee
Apr 03, 2020Brass Contributor
ChrisWebbTechThanks 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!
hovee
Apr 05, 2020Brass Contributor
I 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;
}
}
- hoveeApr 08, 2020Brass Contributor
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