How to make a self-hosted video livestream
drewdevault.com
drewdevault.com
I don't have a good solution to this, unfortunately. The biggest benefit to Twitch is that it becomes possible for fifty or five hundred people to find you; the algorithm can be your friend if you're lucky or good. The second-biggest benefit to Twitch is that if fifty or five hundred people come by, your stream is not going to melt.
Here are servers for around 40$/month with 250Mbps with unmetered traffic: https://www.soyoustart.com/en/essential-servers/
Kimsufi is even cheaper with 100Mbps unmetered starting at around 5$: http://www.kimsufi.com/en/servers.xml
Setting aside OVH/SoYouStart's generally kinda crap support (and maybe it's just that I do devops professionally but even for my own stuff I expect some support, not emoji shrugs and a lack of English), "unmetered bandwidth" doesn't come with a wide enough pipe. 250Mbps is 40 users at 6Mbps/user, assuming nearly perfect bandwidth usage. One of my weekly streams hits 20-25 without us having advertised yet; these are alpha tests/pre-production streams. We should hit 50-60 when we go for-realsies live, if not more.
The next step, then, is to build your own star topology to stream to users. And your own load balancing. All to, uh, not make money on it and to, uh, not have as good of an experience either for the viewer or for the creator as you do when using Twitch or Mixer or YouTube (I don't care how ~~fierce~~ your Twitter game is, a Twitch notification is gonna get you further than the hot tweets).
Companies are willing to burn a lot of money and make you the beneficiary. So, right now, I do, and I tend to think even HN types are best off doing likewise.
FWIW we are using HLS for live streaming with a fallback of RTMP to Flash for super legacy browsers.
https://caniuse.com/#feat=mpeg-dash
https://caniuse.com/#feat=http-live-streaming
HLS can be done in much the same fashion as described in my article with https://github.com/video-dev/hls.js/tree/master I might do a follow-up with the necessary changes.