Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webtorrent HLS #4895

Closed
LoveIsGrief opened this issue Apr 3, 2022 · 3 comments
Closed

Webtorrent HLS #4895

LoveIsGrief opened this issue Apr 3, 2022 · 3 comments

Comments

@LoveIsGrief
Copy link
Contributor

Describe the problem to be solved

CLI seeds for HLS streams. I wrote a reseeder for peertube that uses webtorrent. However, I found out that it doesn't work with HLS streams because p2p-media-loader is being used that only uses the webtorrent trackers, but doesn't actually use webtorrents (I might be wrong though).

Describe the solution you would like:

A single torrent for the chunks. It should then be possible to instruct webtorrent to download sequentially or a certain file in the torrent.

Describe alternatives you have considered

  • An option for viewers to fallback to using webtorrent files (.files[] in the result from /videos/{id} endpoint)
  • A torrent per chunk
@LoveIsGrief LoveIsGrief changed the title Webtorrent HLS Feature request: Webtorrent HLS Apr 3, 2022
@Chocobozzz
Copy link
Owner

Hello,

I'm sorry but it's out of the scope of PeerTube. If you want to create a CLI script to seed HLS streams, you can try to use p2p-media-loader directly in your library.

@Chocobozzz Chocobozzz changed the title Feature request: Webtorrent HLS Webtorrent HLS Apr 8, 2022
@LoveIsGrief
Copy link
Contributor Author

The script already exists, but had to be written in Python because webtorrent didn't work. It seeds the torrents just find, but the HLS videos just don't work. Webtorrent uses WebRTC and the npm package uses a headless chromium instance which fails (feross/simple-peer#866).

I'd like to contribute bandwidth to peertube without running a full instance of peertube. Is there a way to do that?

@Chocobozzz
Copy link
Owner

I'd like to contribute bandwidth to peertube without running a full instance of peertube. Is there a way to do that?

Unfortunately no

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants