Zepius Posted August 30, 2016 Share Posted August 30, 2016 So I'm looking to stream to multiple sites at once (twitch, hitbox, facebook live, etc) and while there are services I can pay to do this, I'd rather use my server to do this. https://obsproject.com/forum/resources/how-to-set-up-your-own-private-rtmp-server-using-nginx.50/ Can this be created perhaps with parameters to add stream keys? Thanks! 1 Quote Link to comment
Solid Rhino Posted August 30, 2016 Share Posted August 30, 2016 Found a docker in the comments of the post : https://github.com/DvdGiessen/nginx-rtmp-docker 1 Quote Link to comment
Zepius Posted August 30, 2016 Author Share Posted August 30, 2016 Found a docker in the comments of the post : https://github.com/DvdGiessen/nginx-rtmp-docker then can someone convert this so i can manage it through the docker tab? Quote Link to comment
Solid Rhino Posted August 31, 2016 Share Posted August 31, 2016 Can't you do this your self? It's not so hard to do. Quote Link to comment
Squid Posted August 31, 2016 Share Posted August 31, 2016 Found a docker in the comments of the post : https://github.com/DvdGiessen/nginx-rtmp-docker then can someone convert this so i can manage it through the docker tab? Turn on dockerhub searches within CA settings, then search for dvdgiessen. You'll have to add the port of 1935, and a volume mapping of /path/to/my/custom/nginx.conf mapped to /etc/nginx/nginx.conf (its not an automated build, so CA won't be able to populate those fields) Quote Link to comment
Zepius Posted August 31, 2016 Author Share Posted August 31, 2016 Found a docker in the comments of the post : https://github.com/DvdGiessen/nginx-rtmp-docker then can someone convert this so i can manage it through the docker tab? Turn on dockerhub searches within CA settings, then search for dvdgiessen. You'll have to add the port of 1935, and a volume mapping of /path/to/my/custom/nginx.conf mapped to /etc/nginx/nginx.conf (its not an automated build, so CA won't be able to populate those fields) tried this. doesnt start for me. and there's nothing in the log from the docker page Quote Link to comment
Squid Posted August 31, 2016 Share Posted August 31, 2016 Because your trying to map a file instead of a folder which contains the file. I didn't check the cut and paste I did. [emoji33] Sent from my LG-D852 using Tapatalk Quote Link to comment
Zepius Posted August 31, 2016 Author Share Posted August 31, 2016 Because your trying to map a file instead of a folder which contains the file. I didn't check the cut and paste I did. [emoji33] Sent from my LG-D852 using Tapatalk still doesn't start even changing the volume mappings to just be folders. Quote Link to comment
0x00000111 Posted February 8, 2020 Share Posted February 8, 2020 Has anyone figure out some kind of RTMP streaming server docker for unraid? I'd like to do a few streams of my 4 gaming VMs in real time using AMD's relive which can stream to RTMP. I'd like to use OBS to mix the feeds into a quad w/ webcams for each. Any input would be great, otherwise I'm just going to spin up a linux vm and install RTMP since I'm not really experienced with dockers. Quote Link to comment
DasNekuum Posted February 8, 2020 Share Posted February 8, 2020 8 hours ago, 0x00000111 said: Has anyone figure out some kind of RTMP streaming server docker for unraid? I'd like to do a few streams of my 4 gaming VMs in real time using AMD's relive which can stream to RTMP. I'd like to use OBS to mix the feeds into a quad w/ webcams for each. Any input would be great, otherwise I'm just going to spin up a linux vm and install RTMP since I'm not really experienced with dockers. So i got the Docker Container running. Just map the folder like above (without the files) and map the Port 1935. Than start the docker container, you may got an Error in Logs. Then move to your appdata folder e.g. /mnt/appdata/rtmpserver/nginx and make a text file. Rename it to nginx.conf . Open the "new" file with notepad and paste the following: user nginx; worker_processes auto; rtmp_auto_push on; events {} rtmp { server { listen [::]:1935 ipv6only=off; application live { live on; } } } Save and start the Container. Now it should run. You can test this with VLC Player just use rtmp://urserverip:1935/live/test For your Streaming Project: 1.Use OBS and the Plugin NDI for OBS. 2.Install OBS + NDI on each gaming machine. 3.Set up OBS on each Gaming Machine --> Tools --> NDI Output settings (give every Gaming VM a different NDI name) 4.Setup a new VM or use another PC an install OBS + NDI. --> Move to OBS and add an NDI Source (for every Gaming VM) --> Setup Streaming Settings pointing to your created RMTP Server (eg rmtp://192.168.178.100:1935/live/test) 5. now you can arrange your Gaming VM in some Sort of Split Screen 6. Hit Start Streaming and Have Fun If you want to push your RMTP stream to twitch or something like that you have to change your nginx.conf ( push rtmp://<other streaming service rtmp url>/<stream key>) Sources: https://obsproject.com/forum/resources/how-to-set-up-your-own-private-rtmp-server-using-nginx.50/ https://github.com/DvdGiessen/nginx-rtmp-docker Sorry for the long Post. I'm new in this Forum Stuff. Hoped i could helped. 1 Quote Link to comment
Danietech Posted March 27, 2020 Share Posted March 27, 2020 On 2/8/2020 at 3:00 PM, DasNekuum said: So i got the Docker Container running. Just map the folder like above (without the files) and map the Port 1935. Than start the docker container, you may got an Error in Logs. Then move to your appdata folder e.g. /mnt/appdata/rtmpserver/nginx and make a text file. Rename it to nginx.conf . Open the "new" file with notepad and paste the following: user nginx; worker_processes auto; rtmp_auto_push on; events {} rtmp { server { listen [::]:1935 ipv6only=off; application live { live on; } } } Save and start the Container. Now it should run. You can test this with VLC Player just use rtmp://urserverip:1935/live/test For your Streaming Project: 1.Use OBS and the Plugin NDI for OBS. 2.Install OBS + NDI on each gaming machine. 3.Set up OBS on each Gaming Machine --> Tools --> NDI Output settings (give every Gaming VM a different NDI name) 4.Setup a new VM or use another PC an install OBS + NDI. --> Move to OBS and add an NDI Source (for every Gaming VM) --> Setup Streaming Settings pointing to your created RMTP Server (eg rmtp://192.168.178.100:1935/live/test) 5. now you can arrange your Gaming VM in some Sort of Split Screen 6. Hit Start Streaming and Have Fun If you want to push your RMTP stream to twitch or something like that you have to change your nginx.conf ( push rtmp://<other streaming service rtmp url>/<stream key>) Sources: https://obsproject.com/forum/resources/how-to-set-up-your-own-private-rtmp-server-using-nginx.50/ https://github.com/DvdGiessen/nginx-rtmp-docker Sorry for the long Post. I'm new in this Forum Stuff. Hoped i could helped. it would seem this is not as easy as one would think - Just to introduce myself, I am currently trying the same task above, I am by no means a Linux guru nor amazingly tech savvy, however I can follow good instructions haven built my own server and compiled the Unraid server, mounting and running various dockers just following YouTube Vids and forums a like. I would really like more clarity on this, from my limited understanding, I managed to configure the folders in the editable setup of the rtmp-nginx docker with the assigned port 1935, also creating the nginx.conf file with the above lines of code. docker setup below the setting I have above is an attempt not really knowing if this correct. after applying the settings the docker compiled successfully, however when I checked the log output its was blank? needless to say, I tried to gain further conformation via the VLC program using my localhost IP and port prefix 1935 with no great surprise, this proved unsuccessful. After several attempts I was hoping that someone with greater knowledge would have the correct sample of the settings in the docker setup so I can cross reference the errors of my ways, forgive my ignorance. Any help would be appreciated :-) Quote Link to comment
DasNekuum Posted March 28, 2020 Share Posted March 28, 2020 21 hours ago, Danietech said: it would seem this is not as easy as one would think - Just to introduce myself, I am currently trying the same task above, I am by no means a Linux guru nor amazingly tech savvy, however I can follow good instructions haven built my own server and compiled the Unraid server, mounting and running various dockers just following YouTube Vids and forums a like. I would really like more clarity on this, from my limited understanding, I managed to configure the folders in the editable setup of the rtmp-nginx docker with the assigned port 1935, also creating the nginx.conf file with the above lines of code. docker setup below the setting I have above is an attempt not really knowing if this correct. after applying the settings the docker compiled successfully, however when I checked the log output its was blank? needless to say, I tried to gain further conformation via the VLC program using my localhost IP and port prefix 1935 with no great surprise, this proved unsuccessful. After several attempts I was hoping that someone with greater knowledge would have the correct sample of the settings in the docker setup so I can cross reference the errors of my ways, forgive my ignorance. Any help would be appreciated :-) If you go like that you have to place the config file in the "passedthrough" conf folder. Then it should work. Just copy the conf file from github and paste it in your folder destination. the next thing is. In your Docker Edit you just mapped the wrong container volume/folders. The Container Path mostly does not match with the path you set for docker. E.g. Docker Path is /etc/nginx/ --> (mapped to) usr/mnt/appdata/rmtp/conf or so on I hope this is understandable. Quote Link to comment
0x00000111 Posted April 19, 2020 Share Posted April 19, 2020 On 8/31/2016 at 10:31 AM, Squid said: Turn on dockerhub searches within CA settings, then search for dvdgiessen. You'll have to add the port of 1935, and a volume mapping of /path/to/my/custom/nginx.conf mapped to /etc/nginx/nginx.conf (its not an automated build, so CA won't be able to populate those fields) This worked great! I used a custom IP. Quote Link to comment
gshlomi Posted August 21, 2020 Share Posted August 21, 2020 On 8/31/2016 at 8:31 PM, Squid said: Turn on dockerhub searches within CA settings, then search for dvdgiessen. You'll have to add the port of 1935, and a volume mapping of /path/to/my/custom/nginx.conf mapped to /etc/nginx/nginx.conf (its not an automated build, so CA won't be able to populate those fields) Hi. Just a quick question - Can't the RTMP module be integrated into the LinuxServer's LetsEncrpypt nginx container? Thanks Quote Link to comment
gshlomi Posted August 22, 2020 Share Posted August 22, 2020 13 hours ago, gshlomi said: Hi. Just a quick question - Can't the RTMP module be integrated into the LinuxServer's LetsEncrpypt nginx container? Thanks Answering my own question - it's already integrated, just needs some work to enable it. Downloaded the complete project as a ZIP file from https://github.com/arut/nginx-rtmp-module and extracted the "stat.xsl" to my "appdata/LetsEncrypt/www" folder. Then, editing "appdata/LetsEncrypt/nginx/nginx.conf" , changing: worker_processes 4; to: worker_processes auto; and adding: rtmp { server { listen [::]:1935; chunk_size 4096; application live { live on; record off; push 'rtmp://url.twitch.tv/app/<StreamKey>'; push 'rtmp://url.youtube.com/<StreamKey>'; } } } after the "events" block. Additionaly, edited "appdata/LetsEncrypt/nginx/site-confs/default" to add: server { listen 8080; location / { root /config/www; } location /stat { rtmp_stat all; rtmp_stat_stylesheet stat.xsl; } location /stat.xsl { root /config/www; } } as a seperate server block. Last step was adding port mapping 1935(TCP) & 8080(TCP) to the container template (I had to map internal 8080 to 8083 on host due to other containers already mapping 8080) and saving. Works like a charm, no need for another container just for RTMP streaming 🙂 Quote Link to comment
bar1 Posted September 19, 2020 Share Posted September 19, 2020 can this be used to stream locally? meaning i would rather not use facebook/youtube/etc.... I need to broadcast a private function with my gopro next week, i have the docker up and running, but not sure where to specify my streamkey? Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.