Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---Dirt Mike's shitty rtmp server tutorial---
- 27 Feb 17
- First, I did this with on Linux using Ubuntu 16.04.2(not MATE, MATE) on the VPS I rented. ALSO, I make no guarantees that any of my instructions won't fuck up your system. FOLLOW THIS TUTORIAL AT YOUR OWN FUCKING RISK
- --------------------------------
- https://obsproject.com/forum/resources/how-to-set-up-your-own-private-rtmp-server-using-nginx.50/
- Go to the website above and follow the steps UNTIL STEP 3. When you are done STEP 3 return back to this part of the tutorial.
- START BACK HERE after using the above link
- Instead of their recommended changes to nginx.conf in STEP 3, you will instead paste the following the bottom of nginx.conf:
- ----do not copy----
- rtmp {
- server {
- listen 1935;
- chunk_size 8192;
- application vod {
- play D:\Capture; <------*-*-*-
- }
- }
- }
- ----do not copy----
- **************************IMPORTANT: Replace 'D:\Capture' with the directory your movies are stored in on your computer or if
- they're stored elsewhere on your network you are obviously smarter than I am and you can figure that out. If you are on Linux or MAC
- change 'D:\Capture' to '/home/dirtmike' or whatever. Don't touch the server settings unless you know what you're doing.
- After those changes are complete save the .conf file, you will need root access to do that if you are on linux.
- Restart nginx after saving with:
- $ sudo /usr/local/nginx/sbin/nginx -s stop
- $ sudo /usr/local/nginx/sbin/nginx
- These are also the commands you will always use to start or terminate your nginx server.
- ------
- TO TEST A MOVIE
- Upload a movie into the directory you specified in the nginx.conf file.
- Paste the following into chat in a theater to play your movie:
- rtmp://<<YOUR SERVER IP>>/vod/mikessecretautobiographicalgaypornmovie.2017.x264.Yify.mp4
- Obviously, replace <<YOUR SERVER IP>> with your server's IP and the movie name with yours NOTE: Swamp Servers only supports .mp4 only!
- ------
- TO TEST A LIVE STREAM (DOESNT WORK ON SWAMP SERVERS YET SORRY)
- Create a new profile in OBS, and change your Broadcast Settings thusly:
- Streaming Service: Custom
- Server: rtmp://<your server ip>/live
- Play Path/Stream Key: test
- If you just want to play back the stream that's being uploaded, you can do so with VLC 2.1.0 or later. Just Open a Network Stream and enter in rtmp://<your server ip>/live/test as the URL. If it all worked right, then you should now be seeing your stream in VLC!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement