Chocobozzz / PeerTube

ActivityPub-federated video streaming platform using P2P directly in your web browser
https://joinpeertube.org/
GNU Affero General Public License v3.0
12.93k stars 1.48k forks source link

Lower low-latency mode #5412

Open Skehmatics opened 1 year ago

Skehmatics commented 1 year ago

Describe the problem to be solved

The live-streaming latency, even when in low-latency mode, leaves a little to be desired when compared to proprietary solutions

A project I'm heading is working on a possible solution in our fork, and wanted to gauge if this should be upstreamed once complete

Describe the solution you would like

Chocobozzz commented 1 year ago

Hello,

I think it would be simpler to wait LL-HLS support in hls.js https://github.com/video-dev/hls.js/projects/7 Unfortunately (fortunately?) we're happy with hls.js and don't want to switch on VHS

Skehmatics commented 1 year ago

Understood! Nothing should theoretically prevent hls.js from doing the same (it even has a similar latency compensation mechanism via maxLiveSyncPlaybackRate), however we were never able to get it to function properly with liveSyncDurationCount under 2, while VHS has little problem with this.

If we can find out how to get this working in hls.js, we'll switch over to that to open a path to upstream

Thanks for all you do Chocobozzz~