Running your own RTSP server
Running a RTSP server with digital ocean server is fairly easy but you will need to have some knowledge of Putty and OBS.
These instructions can work on any docker setup but we will be using digtalocean server because they are cheap and easy to setup.
Setting up a DigitalOcean server
-
Create an account at https://www.digitalocean.com/
-
Create a droplet
-
Reference the how to create a droplet guide for more detail https://docs.digitalocean.com/products/droplets/how-to/create/
-
Under the Choose an image section, choose the Marketplace tab and select the Docker on Ubuntu option. If that option does not exist search for the "Docker" keyword.
- Under Choose a plan just choose the cheapest one. If you find yourself streaming to a lot of people then bumping up the plan can't hurt.
- Choose the datecenter closest to yourself. I normally just choose San Francisco.
- For authentication if you don't know what SSH Keys are then just use a password
- Click create droplet and you're done creating the droplet
- Connect using Putty
- Follow Connect using Putty and skip the SSH key section if you're using a password. Your username is
root
by default. - Click Open to connect and put your password in
- You should now be connected to your server
Setting up RtspSimpleServer
Paste this command in to Putty to start a basic Rtsp server. You can do more secure setup if you like but you'll have to read the main page for the rtsp simple server.
docker run --rm -it -e RTSP_PROTOCOLS=tcp -p 8554:8554 -p 1935:1935 aler9/rtsp-simple-server
In OBS you will set the streaming server to custom and in the server type: rtmp://YourDigitalOceansIP with the Key being anything you want.
Once you start streaming your desktop then in the Video Player in ChilloutVR you can use a rtsp url which will looks something like this.
rtsp://YourDigitalOceansIP:8554/MyKey
You are not streaming your desktop, pull up whatever you would like to stream on the video player.