How to installing your own nginx RTMP server

How to installing your own nginx RTMP server

Want to stream to more than one streaming platform such as Twitch, Mixer, Smashcast or youtube gaming at once without using restream or switchboard well then a private RMTP server might be your solution

I’m mainly writing this so cause people ask me how I stream to twitch and mixer without stupid delay you get from services like Restream and SwitchBoard. I’ve been running my own RTMP for around 9 months so far and I’ve only ever had 1 issue with it and that’s because of lack of restarts I’ve no got it on a cron to auto restart every month.

Installing nginx

login to your server using a terminal, this can be with ssh or by with a screen and keyboard plugged into it if you have the server box with you, but I personally use a VPS with Contrabo for my server

You need to install the dependencies,

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

Now we can download nginx it doesn’t matter where you put it, but I’ve put mine in /home

$ wget http://nginx.org/download/nginx-1.13.1.tar.gz

You also want to download the RTMP Module from GitHub

$ wget https://github.com/arut/nginx-rtmp-module/archive/master.zip

Now we can extract these files and begin the install

$ tar -zxvf nginx-1.13.1.tar.gz
$ unzip master.zip
$ cd nginx-1.13.1

After ok now we get down to business and configure and install nginx with the RMTP module

$ ./configure –with-http_ssl_module –add-module=../nginx-rtmp-module-master
$ make
$ sudo make install

Ok so now the servers installed, lets start it up

$ sudo /usr/local/nginx/sbin/nginx

Configuring RMTP

Where it says (KEY) replace that with you’re stream key for that platform; if you don’t want to stream on that platform you can remove that line,

you can chose if you want to be able to connect the server and watch the stream using publish but if you’re just using this to restream then can just leave it as off.

rtmp {

server {

listen 1935;
chunk_size 4096;

application live {

live on;
record off;
publish on;
push rtmp://live-lhr.twitch.tv/app/(KEY);
push rtmp://ingest-lon.beam.pro:1935/beam/(KEY);
push tmp://a.rtmp.youtube.com/live2(KEY);

}

}

}

Restart nginx/RTMP

to restart nginx and RTMP you can do the following commands,

$ sudo /usr/local/nginx/sbin/nginx -s stop
$ sudo /usr/local/nginx/sbin/nginx

IGSteven / October 28, 2017 / Development, Streaming Tips / 0 Comments

Twitch Logo with a purple background

Why networking is so important as a streamer

Networking is great for bringing in new viewers to your channels. Networking

Teams and Communities

The best way to network, in my opinion, is joining teams and communities if the platform you are on supports it. It’s good to join a team I would recommend trying to Join a pre-established team at the beginning such as Streamers Connected (that’s the team I use and am a developer for) but there were many other teams. Just remember it’s a team and as a team member you should seek to help others succeed, by hang out in their streams and helping to promote them, this has many advantages to it, one being they will most likely return the support and help promote you, you can do this by doing some simple things like sharing out there stream adding them to your autohost, Just give them a heads up you’ve done this. Also try not to make it all about using each other in your team, have fun, play games and have conversations with them try to make a memorable moment for them.

on Twitch, you can be on 1 team and 3 communities and on Mixer, you can be on 3 teams.

Talk to other streamers

Look for other streamers with similar interests that doesn’t have to much of a number difference between them and you, if they are looking for people to play with jump at the opportunity to play with them even try to join them in voice as this gives them and their audience a chance to get to know you and some may check you out.

 

One of my regular viewers was a viewer of Bumblethefox when I jumped in voice with her and a couple of her friends well she drew art so this doesn’t just applied to gamers

AutoHosting

AutoHosting is great for promoting others channels when you are not live and will host there stream on your channel. You can add and sort through a list of Streamers that you will host automatically when you’re not live and they are, Twitch give you the option of adding people of your team to you AutoHost automatically if no one on your list is live

Raiding

So that’s a rap you’re about to end your stream but wait another great thing to do is raiding, this is where before you end up you tell your viewers to go to another channel and say something and they might be inclined to give you a shout out or jump in your stream the next time you are live.

Social Media

One way to network is to use social media platforms as a promotion tool and do it with as many platforms as possible. Use a Facebook page, a Twitter, Instagram, Google plus if you’re a gamer you can also use services like Player.me, FragDNA and even discord. Make sure to follow people that relate to your interested and interact with them.

Taking advantage of Discord, there are a lot of discord’s out there with great communities of other streamers and viewers and a few will have chats dedicated to promotion which you can use to promote yourself and your brand but I would not recommend only being there for promotion, get involved with other channels and have discussions with others on there get to know people and let them get to know you.

 

I'll do a part 2 of things you should not do well networking

IGSteven / September 16, 2017 / Random, Streaming Tips / 7 Comments