I've been looking for a self hosted (or p2p) solution for streaming to a large audience e.g. Twitch but with WebRTC instead of HLS/DASH/rtmp. Are you aware of anything like that?
My Answer: You have PeerTube, which you can self-host.
> PeerTube is software that you install on a web server. It allows you to create a video hosting website, so you can create your "homemade YouTube". The difference to YouTube is that it's not intended to create a huge platform centralizing videos from the whole world on a single server farm (which is horribly expensive). On the contrary, PeerTube's concept is to create a network of multiple small interconnected video hosting providers.
- From PeerTube's FAQ(verbatim except for a few minor grammar errors)
> PeerTube has 3 main adventages: 1) An open code (transparency) under a free/libre license (ethic, respect and community-driven development); 2) A federation of interconnected hosting providers (so more video choices wherever you go to see them); 3) Peer-to-peer broadcasting – and therefore viewing – (so no slowing down when a video becomes viral).
- From PeerTube's FAQ: What are the main advantages of PeerTube?
On the specifics of the live streaming features, albeit vague:
https://joinpeertube.org/roadmap
Apparently Framasoft(the organization behind PeerTube) is planning to implement the live streaming feature once they hit $60,000 USD in funding. However, keep in mind that this is a new feature that hasn't come out yet, and if and when it comes out the first time, it will be a work-in-progress. They are currently below funding goals for step 4 of the roadmap, aka the live streaming feature. Donations may or may not be tax deductible, depending on the jurisdiction in which you live.
What is PeerTube:
> PeerTube is software that you install on a web server. It allows you to create a video hosting website, so you can create your "homemade YouTube". The difference to YouTube is that it's not intended to create a huge platform centralizing videos from the whole world on a single server farm (which is horribly expensive). On the contrary, PeerTube's concept is to create a network of multiple small interconnected video hosting providers. - From PeerTube's FAQ(verbatim except for a few minor grammar errors)
A more descriptive explanation of PeerTube here: https://en.wikipedia.org/wiki/PeerTube
FAQ: https://joinpeertube.org/faq Documentation: https://docs.joinpeertube.org/
____________
Framasoft is the parent organization of Peertube. It maintains the source code for PeerTube and several other projects. It's also based in France(important if you want to send tax-deductible donations to Framasoft).
Website on the parent organization: https://framasoft.org/en/association/
> The Framasoft association is a 1901 not-for-profit association whose character of general interest authorizes a tax deduction. Which shows its willingness to stay an association on a human scale (less than forty members, less than ten permanent staff) ___________
Sorry for the crappy formatting, I wasn't sure how to format the information optimally.
"
The biggest challenge of live streaming on PeerTube is to get the live stream to be peer-to-peer. After extensive testing, we believe this is possible.
By using the HLS technology that has been built into the PeerTube video player since version 1.3, we believe we can create a live stream with one minute of lag between streamers and viewers.
We want to lay the technological foundation for this live stream feature, so this first version of PeerTube Live will be minimalist. There will be no stream captation tools, no built-in chat, no react emojis...
However, we want to make sure that once the live stream is over, the video will be processed and added to the creator's channel, with every requirement for proper federation checked."