How to set up your own private RTMP server using nginx

How to set up your own private RTMP server using nginx

Reviews 4.56 star(s) 40 reviews

It worked thanks
only issue is facebook live with RTMPS
This guide finally made me get it to work! I also had to add this to the nginx config:
events { }

Something new? Not sure.
This indeed worked. One question: do I have to go through this every time I want to stream?
This was great, it works like a charm!
It took me a while to start using this feature in OBS.
For those who are having trouble transmitting to Facebook, I have adopted a very simple solution that yielded results: Just omit the Facebook server port in the nginx.conf file, like this: "push rtmp://live-api-s.facebook.com/rtmp/... "
Thus, the stream was received in the preview of Facebook.
Beside that, this solution allowed me to stop using recording settings to stream over UDP, since the RTMP stream are easily accessed through VLC.
For using this with SSL, I wrote instructions on how to use Nginx for Facebook https://josuesworld.wordpress.com/2019/04/05/how-to-use-rtmp-and-rtmps-with-nginx-on-windows/
Thank you very much for the excellent guide. I have used it for month withour any problems on a vps to simultanously stream to facebook and YouTube. Now facebook is changing to only accept SSL-connections via RTMPS on Port 443. If I edit nginx.conf by adding "push rtmps://live-api-s.facebook.com:443/rtmps..." I cannot start the server. Can anybody help me????
i already create my own server in a raspberry pi 3 b+ but how can i access to the rtmp server from another network?

with the internal IP address works great but i want to stream from another network with the public IP address..

thanks a lot.
Thanks for the guide!

Here's my problem: I need to stream sports events to youtube, the camera we're using outputs to hdmi, we use an elgato usb capture device to encode the video feed and outputs it via usb to a computer. Than we grab that encoded feed with OBS and stream it to youtube. Except that the camera needs to be close to the computer (due to hdmi cable length limitations) and we'd like to put the camera farther away from the computer...

Using a raspberry and a usb capture device, would it be possible to stream to the computer over wifi or ethernet?

Something like this:
camera > usb capture card > raspberry > network > computer > youtube
Good stuff to deal with ISP oversea speed throttle and lower down resource use.

There is a way to add stream key for OBS (to rtmp server)?
I'm using a VPS and this VPS also running my small website.
I'm afraid of someone will know my VPS public IP (since it can be discover by reverse website IP).
Since OBS didn't support proxy/socks so I can't tunnel to VPS to make a local proxy/socks and using block all IP from using RTMP protocol except localhost.
can i use this method to lower my cpu usage ? when i stream on my pc my cpu blows up and stream stops randomly from obs , so i was thinking maybe i can let my rasperi board handle streaming part
I have the same issue as
"BreakTV 5.00 star(s) Jan 25, 2018
When i start the nginx via cmd nothing hapends and when i type my ip adress in my broswer to test the server the page doesn't load...."

Now when i run nginx without adding rtmp code at the bottom of the conf file, nginx runs and can be found on web browser - localhost.

Only after i edit the conf file and add the rtmp code, nginx does not run anymore and server cannot be found as localhost in web browser.
what am i doing wrong pls?

thanks
nice!!!
When i start the nginx via cmd nothing hapends and when i type my ip adress in my broswer to test the server the page doesn't load....
Amazing guide and a powerful way to multistream with Obs Studio. Excellent! Anyone having trouble with YouTube container format I posted a solution in the discussion https://obsproject.com/forum/threads/how-to-set-up-your-own-private-rtmp-server-using-nginx.12891/page-31#post-308773
Everything works great! However Youtube is giving me a RED stream status with the error: "Please change the video's container format. The current container format is not correct for this configuration." This seems to be a 'badContainer' error, any ideas why and how to fix? I would like a GREEN status in Youtube!
Great post! I was able to follow it and within a short period of time I have built a Docker-based solution to stream content via HLS protocol and consume it in a web application using video.js library. Here is my GitHub repo https://github.com/codeworksio/docker-streaming-server
Thanks to you were able to stream our whole gaming event at school.
Twenty PC's on one server and it works fine, not on an raspberry pi but on a normal PC and of cures an 1gbit lan.
With the push function and a rented vserver streaming on multiple platforms was also no problem, one stream out to the rtmp on the vserver and than with 10gbit up to the web.
Super easy to follow, got me out of a hole. Thanks so much.
THis is fantastic. Thank you very much for the post. Quick question do you know if there is a way to buffer the frames for the stream? Say if you have slow internet the frames get uploaded. Yeah i understand there would be a bigger delay but is this possiable?
Back
Top