- #Ubuntu rtmp server how to#
- #Ubuntu rtmp server install#
- #Ubuntu rtmp server software#
- #Ubuntu rtmp server download#
- #Ubuntu rtmp server mac#
Once these are installed we then need to grab the nginx source code.
#Ubuntu rtmp server install#
Sudo apt-get install build-essential libpcre3 libpcre3-dev libssl-dev unzip The first thing we need to do is get some bits. This doesn’t come pre-packaged for the operating system, so we’ll need to build Nginx with this module from source code. Nginx-RTMP is an open source extension module for the Nginx web server that can be used as a media streaming server for both live streams and video on demand using RTMP. In this article we’ll be looking at setting up your own media server using Nginxp-RTMP on Ubuntu 14.04. This has led to the technology being commonly used when streaming media for a variety of providers. Macromedia were subsequently acquired by Adobe, since when the specification has been partially released enabling third parties to implement it within Adobe’s own server and client software. You can also use your RTMP server to forward to other streaming services and channels! Underneath the "record off " line in your nginx.The Real Time Messaging Protocol (RTMP) was developed by Macromedia as a method for transferring data, audio and video for their Flash technology. You can add the stream to OBS itself using the Media source or VLC source, or use something like JWPlayer to play back the RTMP stream on a web site you set up. You now have a working RTMP server! Congrats! If it all worked right, then you should now be seeing your stream in VLC! Just Open a Network Stream and enter in rtmp:///live/test as the URL. So how do you watch it? The easiest way to do so is with VLC (v2.1.0 or later). If you hit "Start Streaming" and don't get an error from OBS, that's a good sign. You should now be able to start streaming to your server. For simple purposes, authentication isn't necessary in my experience. You can basically make up any play path and stream to it, and put that path into an RTMP player, and it will play back. Log into your box, and make sure you have the necessary tools to build nginx using the following command:Ĭlick to expand.You may be wondering where that play path "test" came from. Step 2: Installing nginx with RTMP module Also, I recommend using a dynamic DNS service to overcome dynamic IP issues that come up with residential hosting.
#Ubuntu rtmp server 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.
#Ubuntu rtmp server mac#
Note to Mac users: You can install nginx with the RTMP module via Homebrew: 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.
#Ubuntu rtmp server software#
I recommend using Ubuntu for the server software for the sake of ease, but you can obviously use whatever you want.
#Ubuntu rtmp server download#
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). I recommend Linode or Digital Ocean as providers.
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.