Advertisement
Guest User

dirtmikescraptutorial

a guest
Feb 27th, 2017
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.50 KB | None | 0 0
  1. ---Dirt Mike's shitty rtmp server tutorial---
  2. 27 Feb 17
  3.  
  4.  
  5. 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
  6.  
  7. --------------------------------
  8.  
  9.  
  10. https://obsproject.com/forum/resources/how-to-set-up-your-own-private-rtmp-server-using-nginx.50/
  11. 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.
  12.  
  13.  
  14. START BACK HERE after using the above link
  15. Instead of their recommended changes to nginx.conf in STEP 3, you will instead paste the following the bottom of nginx.conf:
  16.  
  17.  
  18. ----do not copy----
  19. rtmp {
  20. server {
  21. listen 1935;
  22. chunk_size 8192;
  23.  
  24. application vod {
  25. play D:\Capture; <------*-*-*-
  26. }
  27. }
  28. }
  29. ----do not copy----
  30.  
  31.  
  32. **************************IMPORTANT: Replace 'D:\Capture' with the directory your movies are stored in on your computer or if
  33. 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
  34. change 'D:\Capture' to '/home/dirtmike' or whatever. Don't touch the server settings unless you know what you're doing.
  35.  
  36. After those changes are complete save the .conf file, you will need root access to do that if you are on linux.
  37.  
  38. Restart nginx after saving with:
  39.  
  40. $ sudo /usr/local/nginx/sbin/nginx -s stop
  41. $ sudo /usr/local/nginx/sbin/nginx
  42.  
  43. These are also the commands you will always use to start or terminate your nginx server.
  44.  
  45.  
  46.  
  47. ------
  48. TO TEST A MOVIE
  49.  
  50. Upload a movie into the directory you specified in the nginx.conf file.
  51.  
  52. Paste the following into chat in a theater to play your movie:
  53.  
  54. rtmp://<<YOUR SERVER IP>>/vod/mikessecretautobiographicalgaypornmovie.2017.x264.Yify.mp4
  55.  
  56.  
  57. Obviously, replace <<YOUR SERVER IP>> with your server's IP and the movie name with yours NOTE: Swamp Servers only supports .mp4 only!
  58.  
  59.  
  60.  
  61. ------
  62. TO TEST A LIVE STREAM (DOESNT WORK ON SWAMP SERVERS YET SORRY)
  63.  
  64. Create a new profile in OBS, and change your Broadcast Settings thusly:
  65.  
  66. Streaming Service: Custom
  67. Server: rtmp://<your server ip>/live
  68. Play Path/Stream Key: test
  69.  
  70. 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