How to set up your own private RTMP server using nginx

All Versions How to set up your own private RTMP server using nginx

M1notaur

New Member
Hey, and thanks for this great guide!

I've set this according to it up on Ubuntu for Twitch and it's working pretty fine. I've got a few questions about this:

How is it possible to add authentication?

I made this basically so we can switch between streamers without the disconnect-/connect-gaps. How to accomplish that?

Is there a possibility to play local video files from the server (maybe in random order) when not streaming until someone connects and again when he goes offline?


Thanks a bunch!


Best,
Tim
 
Last edited:

jagr_200

Member
I spent 6 or 7 hours trying to do this the other night without success. I am trying to install this on Virtual Box running Ubuntu. My goal is to be able to capture my stream on my mac with OBS, send it to the RTMP server running in the VB and then send that out to jwplayer to embed on my website. I'm tired of relying on streaming sites like twitch for my stream. They always have some sort of issue. I'd like to be dependent on myself. Unless someone knows of a rock solid streaming service that allows embedding for free.

I'd also pay someone to install this on a Raspberry Pi for me.
 

014

Member
I spent 6 or 7 hours trying to do this the other night without success. I am trying to install this on Virtual Box running Ubuntu. My goal is to be able to capture my stream on my mac with OBS, send it to the RTMP server running in the VB and then send that out to jwplayer to embed on my website. I'm tired of relying on streaming sites like twitch for my stream. They always have some sort of issue. I'd like to be dependent on myself. Unless someone knows of a rock solid streaming service that allows embedding for free.

I'd also pay someone to install this on a Raspberry Pi for me.
If you just want the finished product and don't care so much for setting it all up yourself, I suggest looking at this thread that provides a pre-configured VM.
https://obsproject.com/forum/threads/private-rtmp-server-preconfigured-virtualbox-image.5873/page-3
 

jagr_200

Member
Man I'd really appreciate some help. I'm like 5 hours deep into this again. I bought a Raspberry Pi. I keep getting a error:invalid option "--with-http_ssl_module" at the building nginx part.
 

jagr_200

Member
If you just want the finished product and don't care so much for setting it all up yourself, I suggest looking at this thread that provides a pre-configured VM.
https://obsproject.com/forum/threads/private-rtmp-server-preconfigured-virtualbox-image.5873/page-3

My end goal is to get my video to a public website I run. So this method won't work. I have purchased a Raspberry Pi and I am trying to get it running on there now with no luck.

Atleast I don't think it will work. I want to send my video from OBS to my raspberry pi and then send the video from Raspberry pi to jwplayer to host on my website.
 

jagr_200

Member
Raspbian. I installed it via NOOBS. I went in the LXTerminal they provide and started running everything.

As you can tell I've never done this before. I've built websites and other stuff but never computing like this. I really appreciate everyone's help.
 

jagr_200

Member
Now I got that command to run. Now I'm having another issue.

./configure: error: the HTTP rewrite module requires the PCRE library. You can either disable the module by using --without-http_rewrite_module option, or install the PCRE lib ray into the system, or build the PCRE library statically from the source with nginx by using --with-pcre=<path> option.
 

dodgepong

Administrator
Community Helper
Did you run the first line of the guide?

sudo apt-get install build-essential libpcre3 libpcre3-dev libssl-dev
 
Top