cross-posted from: https://lemmy.ml/post/49015971
YouTube is still one of the major points of centralization on the internet, so I’ve been brainstorming ways around the problem.
From the readme:
Torrent-Tube is a set of tools to help decentralize YouTube videos, by moving them to torrents, which can be shared by many people. It includes:
- A Torrent-Tube search site which searches the Torrents-csv search engine to see if the given YouTube video already exists, and is being seeded.
- It does this by extracting the YouTube [VIDEO_ID] from a link, which you can also do manually if you like (IE, the text after
watch?v=...).- A script to download, and create torrent files from YouTube videos, with a uniform naming style and format, taken from TheFrenchGhosty’s YouTube-DL-Scripts.
- You will need to upload these torrent files yourself to a service (details below), and seed them.
In the future, it may be possible to create a browser plugin that checks a video link that you’re currently watching for existing torrents.
Create torrent script
Requirements
Instructions
Copy a YouTube video URL.
# Clone this repo git clone https://github.com/dessalines/torrent-tube # Run the script ./create_torrent.sh [YOUTUBE_URL]The video will download, and is saved in the
videosfolder. The torrent file is saved in thetorrentsfolder.Add the torrent to your torrent app, such as qbittorrent.


A crucial use-case would be in-browser video playing from torrent-tube and currently that does not seem possible. I have been looking for an alternative to Catbox for a while and am not too fond of Streamable.
Alternatively could Lemmy get embedded support for playing Peertube videos instead of redirecting to the Peertube website and having to play the video there? Similar to how playing Imgur or Catbox videos works in embedded format without having to go to a different website.
This might not be appreciated but I am not web-technical enough to understand this back-end so I asked an LLM and this is what it said
LLM response:
❯ I would like to create the simplest browser-based viewer for videos uploaded to TorrentTube. Is this possible with just a browser extension (no changes to TorrentTube)?
● No.
A standalone browser extension cannot achieve this—regardless of the platform—due to two fundamental constraints:
wss://trackers. Without changes to TorrentTube, no such seeders exist (only qBittorrent seeders are present), leaving the extension with zero peers to connect to..mkvfiles aren’t natively playable by the<video>element.Workable solutions require external components (not on TorrentTube’s side):
<video>. (This is the simplest path.)localhost.→ Short answer: An extension alone is impossible. An extension + gateway is possible (and requires no TorrentTube changes).
❯ Could TorrentTube itself implement changes to enable direct browser streaming (no gateway/helper)?
● Yes. With three specific changes, TorrentTube could stream torrents directly in the browser:
wss://trackers: Modifycreate_torrent.shto include WebRTC-compatible trackers (e.g.,tracker.openwebtorrent.com)..mkv(usingyt-dlp --remux-video mp4).Result: A minimal WebTorrent.js extension (or even a plain webpage) can stream magnets directly via
<video>+ Media Source Extensions—exactly how instant.io/btorrent.xyz works.Key caveats:
.mkv→.mp4(both formats can coexist for archival/streaming).→ Summary: Changes 1–3 transform TorrentTube into a PeerTube-style system where videos stream directly in the browser via a simple extension.
*Want me to draft the modified
create_torrent.sh(withwss://trackersKey improvements: Removed redundancy (“no changes from TorrentTube side”), clarified technical terms (“hybrid seeders,” “fragmented MP4”), standardized formatting, fixed “Torrenthub” → “TorrentTube,” and tightened phrasing while preserving all technical nuance.
I have a little helper in lemmy that shows how to view torrents the easy way: https://join-lemmy.org/docs/users/02-media.html#torrents
The easy way of installing stremio will probably work for most people. Torrenting inside the browser isn’t an option IMO.