- #NGINX RTMP SERVER WINDOWS HOW TO#
- #NGINX RTMP SERVER WINDOWS INSTALL#
- #NGINX RTMP SERVER WINDOWS SOFTWARE#
- #NGINX RTMP SERVER WINDOWS PC#
Now a bit of info about nginx (pronounced "engine-X").
#NGINX RTMP SERVER WINDOWS INSTALL#
$ sudo apt-get install build-essential libpcre3 libpcre3-dev libssl-dev Log into your box, and make sure you have the necessary tools to build nginx using the following command: Step 2: Installing nginx with RTMP module Also, I recommend using a service like DynDNS to overcome dynamic IP issues that come up with residential hosting.
#NGINX RTMP SERVER WINDOWS HOW TO#
If you are hosting your server in your home, you will have to forward TCP port 1935 to the box.this varies by router, so look up how to set up port forwarding for your router. If you want to use Windows, you can find Windows binaries for nginx with the RTMP module already included here: Note to Windows users: This guide focuses on using Linux. As long as you get the dependencies for nginx somewhere besides apt, you can follow this guide just fine.
#NGINX RTMP SERVER WINDOWS SOFTWARE#
I recommend using Ubuntu for the server software for the sake of ease, but you can obviously use whatever you want. So when I have 2 streamers stream to my server, and I download both of them, I can chew up 10GB of bandwidth in 2 hours. Just make sure you have enough bandwidth.remember that bandwidth usage will be (the size of a stream) * (the number of people uploading + the number of people downloading). This is what I am currently using, and thus far it has worked out well. I recommend Linode as a provider, if you can afford it. If you don't have your own box, a VPS can also work. So I assure you, even a cheap old box would suffice. Don't believe me? My RTMP server for a long time was a Raspberry Pi, a $35 mini-computer, sitting under my desk, and it was capable of hosting at least 3 simultaneous streams, and I never even stressed it to see how many more it could handle. Essentially it just grabs data from the input and forwards it on to the output, simple data transfer. 3 Step 3: Configuring nginx to use RTMPīelieve it or not, RTMP is actually extremely light on system resources.2 Step 2: Installing nginx with RTMP module.One advantage of pushing FFmpeg's output back into NGINX before going off to the external stream service is I can open the FFmpeg transcoded stream through a RTMP supported player such as VLC for example, allowing me to view the compressed output. From here I want to encode the one stream derived from OBS into several smaller bandwidth streams so that I can comply with streaming service's requirements such as Twitch and Mixer for example.Īt the end of the FFmpeg parameters do I push the output directly to Twitch or take the output of FFmpeg and send back into a second RTMP application on NGINX and then push out to Twitch? OBS is encoding x264 at 20,000Kbps and it's destination is a RTMP application in NGINX called 'live'. I've also downloaded the latest FFmpeg libraries which I have set a path environment variable for in Windows so that FFmpeg commands can be called in CommandPrompt/PowerShell. I'm using a pre-compiled version of NGINX with the RTMP module baked in. Push rtmp:///app/STREAM_KEY įor the sake of simplicity I'm testing OBS, NGINX and FFmpeg all on the same physical computer, a Windows PC. Once everything is working I will port NGINX and FFmpeg to my Linux PC. # make a internal server page and put it in htmlĮxec_push "D:\Users\Will\Downloads\ffmpeg\bin"
![nginx rtmp server windows nginx rtmp server windows](https://img.it610.com/image/info9/d8b504e236364c4e9f5d13c996e34818.jpg)
If someone could shed some light of where I might be going wrong please that would be greatly appreciated. I have no idea if my FFmpeg is working or there is something wrong with my NGINX configuration below. However, when I'm on Twitch's inspector site to see if my stream is coming thorugh, I'm not receiving anything. I can view my stream via VLC if I use the network path rtmp://localhost/live/test. I would like to be able to stream into NGINX and then on-the-fly use FFmpeg to transcode the stream to comply with the streaming site I intend to broadcast to, for example. I have set a bitrate of 20,000Kbps in OBS which will be the foundation bitrate for the multiple streams I aim to setup within NGINX.
#NGINX RTMP SERVER WINDOWS PC#
I'm trying to stream from OBS (open broadcast software) on my Windows PC to NGINX+RTMP also installed on the same PC.