These instructions allow you to run a live stream via docker containers and OBS
In this guide we'll be using a Ubuntu 20.04 server to host the live stream.
-
Open ports 1935 on your firewall/gateway to allow traffic in and out to public addresses
-
On the server, pull the docker image for nginx-rtmp
docker pull tiangolo/nginx-rtmp
-
Run the docker container with the following command
docker run -d -p 1935:1935 --name nginx-rtmp tiangolo/nginx-rtmp
-
If you are running this publicly, you'll need your public IP.
curl ifconfig.me
-
Download and install OBS
-
Set the stream address to your server address with the
/live
path. This is not unique and you can change the name of it if you'd like. For simplicity, leave the stream key blank.192.168.x.x:1935/live
-
Set up OBS how you'd like for capture and audio.
-
Click "Start Streaming"
We're going to use VLC to view the stream.
-
Download and install VLC.
-
Navigate to "Media -> Open Network Stream"
-
Enter the URL for the server you created earlier, with the procotol, IP and port. Private
rtmp://192.168.x.x:1935/live
Publicrtmp://<public ip address>:1935/live