Self-hosted livestreaming ala Twitch
Hi. I hate YouTube and Twitch. I'm sure most do. What the fuck are you doing about it?
Here. I've done the hard part for you. This thing lets you stream by yourself. It looks almost like Twitch, because you fucks cannot handle something even a little bit out of your comfort zone.
OBS works. You need to set the Recording to "Custom Output", and output to the relay server with an HTTP URL. Audio must be libvorbis. Video must be libvpx or libvpx-vp9. For something custom, it could not be simpler. No, it's not in the Streaming tab, because OBS is stupid. Also, sometimes OBS crashes when you stop streaming.
Setup: the frontend above can be hosted on a static web server. The backend is two parts: the chat, an XMPP server, and the relay server. Everything can be built with make in the MWSS repository. The relay server should be okay to expose through a reverse proxy.
Problems:
- Obviously, you're in charge of the chatroom. There's no Twitch admins to blame when something goes wrong.
- This chat allows anonymous participants, which is also problematic. But going the other way, the average chatter is too regarded to register an XMPP account.
- Again, OBS doesn't allow you to actually record to a file when streaming this way. This is only something the OBS developers can fix.
- The relay supports only a single resolution. Otherwise, it would have to do parallel reencodings of the feed in realtime, something that would (without SVC) require a beefy server. It's not impossible, just not cheap, and it's additional complexity.
But on the bright side? Boobies is A-okay ππππ
