Top
Best
New

Posted by memet_rush 4/14/2025

Ask HN: Why is there no P2P streaming protocol like BitTorrent?

I've been wondering if anyone knows why there is no P2P protocol for mass live stream content in decent quality? specifically what are the technical limitations or is it mostly that people don't want to get destroyed by media company lawyers? I've searched around for a while and i cant find anything like that that can handle thousands of people streaming. The closest is probably Webrtc and that looks like it can only handle 500~ peers.

I was thinking most people nowaday have at least 30mbps upload and a 1080p stream only needs ~10mbps and 720p needs ~5ish. Also i think it wouldnt have to be live, people would definitely not mind some amount of lag. I was thinking the big O for packets propagating out in the network should be Log(N) since if a master is sharing the content then is connected to 10 slaves, then those connected to 10 other slaves and so on.

The other limitation I could think of is prioritizing who gets the packets first since there's a lot of people with 1gbs connections or >10mbps connections. Also deprioritizing leechers to keep it from degrading the stream.

Does anyone have knowledge on why it isn't a thing still though? it's super easy to find streams on websites but they're all 360p or barely load. I saw the original creator of bittorrent was creating something like this over 10 years ago and seems to be a dead project. Also this is ignoring the huge time commitment it would take to program something like this. I want to know if this is technically possible to have streams of lets say 100,000 people and why or why not.

Just some thoughts, thanks in advance!

236 points | 223 commentspage 7
greenavocado 4/14/2025|
I would not be surprised if the rise of CG-NAT put another nail in the proverbial coffin of P2P video streaming and related sharing.
markus_zhang 4/20/2025||
Does PCDN fit the bill? Tiktok is using it extensively.
6510 4/16/2025||
A fun idea I had was to divide hd video over 4 and/or 16 and/or 64 lower resolution videos. For the 1/4 the pixels from video 1,2,3 and 4 would be arranged like so.

   1 2 1 2
   3 4 3 4
   1 2 1 2
   3 4 3 4
You could for example consume a HD stream then distribute [say] only 3 lower resolution streams. If the connection craps out or your graphics processing cant keep up you don't have to skip frames but can gradually degrade the image. There could be different frame rates too as long as they combine to something sensible.

If you have [say] a 640 MB recording at 120 fps you would only need to successfully receive 2.5 MB at 30 fps to be able to watch the entire thing. With a slight delay in playback you could even hop from one sub set of channels to another.

It should work offline too. One could have the cutting edge crispy resolution on a large display or watch the same on a crappy old laptop. (and everything in between)

For fun I one time convert a 3.5 hour lecture to 75 MB and was stunned by how watchable it still was.

guerrilla 4/15/2025||
Is that not what PeerTube is?
i5heu 4/15/2025||
Peertube does this AFAIk (or they plan to do this)
mystified5016 4/15/2025||
PeerTube is what you're looking for.
Nadya 4/15/2025||
There are at least two projects like this for watching anime. I won't name them in this forum but they do exist if you look for them.
noman-land 4/14/2025||
Isn't this what https://webtorrent.io/ is?
memet_rush 4/14/2025|
kinda but i think that's for files. I am specifically thinking for live content like twitch
evbogue 4/14/2025|||
Trystero can do this: https://github.com/dmotz/trystero?tab=readme-ov-file#audio-a...

You'd need to make a UI for it

sitkack 4/15/2025|||
The first demo, right on the landing page is streaming a movie from peers.

https://webtorrent.io/

slashink 4/15/2025||
Latency.
jeroenhd 4/15/2025|
Twitch streamers seem to be fine with the 10-60 second latency Twitch adds, depending on how bad their network is performing. Requirements will differ per industry but I don't think latency is a killer necessarily.
slashink 4/15/2025||
Twitch does not add 10-60 seconds of latency. The average latency with default OBS settings is 3-6 seconds.

Source: I worked on the Twitch video system for 6 years.

john_the_writer 4/16/2025|
Well.. it's sort of been done and then canned. Skype was peer to peer, which sort of blows my mind when it comes to slack, and how it was better tech than slack. Marketing eh.
More comments...