Thanks for writing this, it got me fairly far. However it does assume a bit of prior knowledge. I've used Linux before, but not extensively.
I found out that I needed to install unzip. I had to Google that. For newbies, it would be good to include this line before unzipping:
sudo apt-get install zip unzip
Also for the initial line:
sudo apt-get install build-essential libpcre3 libpcre3-dev libssl-dev
I got loads of 404 errors. That's apparently because some of the paths are old. I Googled and found that the following worked:
Good stuff to deal with ISP oversea speed throttle and lower down resource use.
There is a way to add stream key for OBS (to rtmp server)?
I'm using a VPS and this VPS also running my small website.
I'm afraid of someone will know my VPS public IP (since it can be discover by reverse website IP).
Since OBS didn't support proxy/socks so I can't tunnel to VPS to make a local proxy/socks and using block all IP from using RTMP protocol except localhost.
You have done something wrong when it comes to installing the RTMP modules, if anyone is getting an error when configuring the RTMP config file do this >> ./configure --with-http_ssl_module --add-module=../nginx-rtmp-module-dev << As you can see, I changed the 'module' at the end to 'dev' as you are no longer downloading module.zip but dev.zip. Hope this helps some people!
I think this guide is outdated.
It mentions version 1.15.1 at the top, then asks us do download a dev.zip file, and then extracting a master.zip file, that we haven't been intructed to download. And after that it wants us to go to a folder named nginx-1.13.1, which doesn't exist, because we downloaded the 1.15.1.
If I extract the 1.15.1 file and the dev.zip, the installation in the next steps fails.
same if I download the 1.13.1 file and master.zip, although I get a different error.
Everything works great! However Youtube is giving me a RED stream status with the error: "Please change the video's container format. The current container format is not correct for this configuration." This seems to be a 'badContainer' error, any ideas why and how to fix? I would like a GREEN status in Youtube!
Great post! I was able to follow it and within a short period of time I have built a Docker-based solution to stream content via HLS protocol and consume it in a web application using video.js library. Here is my GitHub repo https://github.com/codeworksio/docker-streaming-server
Thanks to you were able to stream our whole gaming event at school.
Twenty PC's on one server and it works fine, not on an raspberry pi but on a normal PC and of cures an 1gbit lan.
With the push function and a rented vserver streaming on multiple platforms was also no problem, one stream out to the rtmp on the vserver and than with 10gbit up to the web.
THis is fantastic. Thank you very much for the post. Quick question do you know if there is a way to buffer the frames for the stream? Say if you have slow internet the frames get uploaded. Yeah i understand there would be a bigger delay but is this possiable?
Works great. Set up a Docker version of it (see https://github.com/DvdGiessen/nginx-rtmp-docker ), so installing Docker (`sudo apt-get install docker.io`) and running `sudo docker run -dp 1935:1935 dvdgiessen/nginx-rtmp-docker` should do everything.
This got me set up easily way back!! It mad my stream quality amazing. I am having trouble now I have upgraded to windows 10. I cant seem to push to the server any more. I get a "Could not access the specified channel or stream key, please double check your stream key. If it is correct, there may be a problem contacting the server" error. I know my IP/Port are correct as if I try any other port through OBS I get an instant failure to connect. Using the ip and set port in my config file is the only connection attempt that returns that error. Any suggestions? I'm pulling my hair out.