NOTE THAT PROJECT HAS MOVED TO :
Tired of paying for Wowza media server? Unreal media server?
Tired of trying to find a decent tutorial on how to build your own nginx rtmp server with php and hls support?
UPG.GR has the solution for you with a few easy steps (as usual)
*Note that a referral link to digital ocean is included in this article that will grant you 10$ of credit to try for free with no obligations
If you are an advanced linux user and have your own linux box, just run the following command on any Ubuntu and your done! : curl -sL https://raw.githubusercontent.com/upggr/UPG.GR-MEDIA-SERVER/master/nginx.sh | sudo bash –
Go to digital ocean and get a free account with 10$ credits (to use for a month)
Enter your email and select a password
Activate your account and login to get your free credit
Create a new droplet
Select the 10$ a month droplet. This will be enough for testing and for about 100 concurrent users. Enter the subdomain of a domain you control For example if you have a domain upg.gr enter “streamer.upg.gr”. If you do not have domain just enter there whatever and you will access your server with the ip you will be provided.
Select a country near you.
Select your favorite UBUNTU distro. Watch this space for a Centos tutorial – request it in the comments and I ll do it for you.
Create droplet :
Wait for your droplet to be created
Check your email for your login credentials
In the meantime go your registra or dns server to map the subdomain you chose to the ip of the server you got in your email. In my example I am using the free tier of cloudflare to manage my dns (http://cloudflare.com)
Go back to digital ocean and start the console (or just putty to the ip on port 22 and authenticate)
Login using the credentials you are provided in your email
Enter “sudo -s”
Enter “sudo apt-get install curl -y”
Enter “curl -sL https://raw.githubusercontent.com/upggr/UPG.GR-MEDIA-SERVER/master/nginx.sh | sudo bash -”
Your server is up! you can test it on the address you specified. Port 80 and 1935 is open. port 80 for the player port 1935 for the streaming. You may stream using Adobe Media Encoder (free). Remember to use the h.264 codec and not the default VP6 !
Connect and start streaming
Review my github projects where you can find all the source code for this project.
There are 3 projects :
https://github.com/upggr/UPG.GR-MEDIA-SERVER – Automation
https://github.com/upggr/nginx – Fork of the latest working nginx server (1.9.2)
https://github.com/upggr/nginx-rtmp-module – Latest fork of the rtmp module for nginx
You can edit the nginx.conf to suit you needs at : /usr/local/nginx/conf/nginx.conf
You can find the html files that show the web interface at : /usr/local/nginx/html
To do :
Web administration for nginx.conf options
Ftp server to edit the php files
Please comment here to encourage me to continue with this project.