Advertisement
codexual

How to setup SRT, "SLS" (SRT-Live-Server), and NOALBS for IRL Streaming (Ubuntu)

May 16th, 2022
8,177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.62 KB | None | 0 0
  1. Codexual here, I've setup time codes related to the video when to run the commands ( https://www.youtube.com/watch?v=NtSd4IPjpLQ ), hopefully that would help. Speaking of help, depending if I like your demeanor I might help you if you are stuck... But most of the time I am too lazy to care and or just want to avoid people 'coz I am anti-social. So GOOD LUCK :D
  2.  
  3. http://codexual.gg - social medias.
  4.  
  5. -----0:00
  6.  
  7. apt update
  8. apt upgrade
  9. sudo -i
  10. apt install libinput-dev make cmake tcl openssl zlib1g-dev gcc perl net-tools nano ssh git zip unzip tclsh pkg-config cmake libssl-dev build-essential -y
  11.  
  12. # If this long command doesn't want to work for some odd reason then run these single commands below.
  13.  
  14. apt install tclsh
  15. apt install pkg-config
  16. apt install libssl-dev
  17. apt install build-essential
  18. apt install make
  19. apt install cmake
  20. apt install tcl
  21. apt install openssl
  22. apt install zlib1g-dev
  23. apt install gcc
  24. apt install perl
  25. apt install net-tools
  26. apt install nano
  27. apt install ssh
  28. apt install git
  29. apt install zip
  30. apt install unzip
  31.  
  32. -----6:04
  33.  
  34. # https://github.com/Haivision/srt
  35.  
  36. git clone https://github.com/Haivision/srt.git
  37. cd srt
  38. ./configure
  39. make
  40. git checkout v1.4.3 && ./configure && make -j8 && make install
  41. cd ../
  42.  
  43. -----7:43
  44.  
  45. # https://gitlab.com/mattwb65/srt-live-server
  46. # These bottom two links if you are having errors when running "sls" in the bin folder (for ref)
  47. # https://github.com/Edward-Wu/srt-live-server/issues/16
  48. # https://stackoverflow.com/questions/13428910/how-to-set-the-environmental-variable-ld-library-path-in-linux
  49.  
  50. git clone https://gitlab.com/mattwb65/srt-live-server.git
  51. cd srt-live-server
  52. git checkout v1.4.3 && ./configure && make -j8 && make install
  53. make -j8
  54. mv sls.conf sls.bak
  55. pico sls.conf
  56. cd bin
  57. ldconfig
  58. ./sls -c ../sls.conf
  59.  
  60. -----18:00
  61.  
  62. # Allowing ubuntu firewall to have access to these ports, 8181 = SLS HTTP, 8282 = SLS Server, 22 = SSH (Allow to terminal/run commands)
  63. ufw allow 8181/udp
  64. ufw allow 8181/tcp
  65. ufw allow 8282/udp
  66. ufw allow 8282/tcp
  67. ufw allow 22/tcp
  68. ufw allow 22/udp
  69.  
  70. -----18:35
  71.  
  72. # https://github.com/715209/nginx-obs-automatic-low-bitrate-switching
  73. # https://github.com/715209/nginx-obs-automatic-low-bitrate-switching/releases/tag/v2.5.5
  74. #
  75. # https://github.com/715209/nginx-obs-automatic-low-bitrate-switching/releases/tag/v1.9.0 <- only downloading to grab the old config.json file and it will generate into a new config file one we run the updated version and it will do everything for you.
  76. #
  77. # https://twitchapps.com/tmi <--- generate your OAUTH key for your Twitch bot (keep it safe and private! (Note your OAUTH key will only stop working if you change your Twitch bot's password via Twith.tv)
  78.  
  79. cd ../
  80. wget https://github.com/715209/nginx-obs-automatic-low-bitrate-switching/releases/download/v2.5.5/noalbs-v2.5.5-x86_64-unknown-linux-musl.tar.gz
  81. tar -xf noalbs-v2.5.5-x86_64-unknown-linux-musl.tar.gz
  82. rm -rf noalbs-v2.5.5-x86_64-unknown-linux-musl.tar.gz
  83. mv noalbs-v2.5.5-x86_64-unknown-linux-musl noalbs
  84. wget https://github.com/715209/nginx-obs-automatic-low-bitrate-switching/archive/refs/tags/v1.9.0.zip
  85. mkdir noalbs-old
  86. cd noalbs-old
  87. unzip v1.9.0.zip
  88. mv nginx-obs-automatic-low-bitrate-switching-1.9.0 noalbs-old
  89. cd noalbs-old
  90. pico config.json
  91. mv config.json /root/noalbs
  92. cd ../
  93. cd noalbs
  94. pico config.json
  95.  
  96. pico .env
  97.  
  98. -----33:27
  99.  
  100. # Setting up your obs
  101. # OBS Websocket https://obsproject.com/forum/resources/obs-websocket-remote-control-obs-studio-from-websockets.466/
  102. # Adding this URL into your VLC player as a source in OBS srt://192.168.1.163:8282/live/stream/belabox
  103.  
  104. -----58:18
  105.  
  106. #Look at the batch link (Check YouTube description)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement