this post was submitted on 21 Jun 2026
125 points (99.2% liked)

DeGoogle Yourself

17110 readers
9 users here now

A community for those that would like to get away from Google.

Here you may post anything related to DeGoogling, why we should do it or good software alternatives!

Rules

  1. Be respectful even in disagreement

  2. No advertising unless it is very relevent and justified. Do not do this excessively.

  3. No low value posts / memes. We or you need to learn, or discuss something.

Related communities

!privacyguides@lemmy.one !privacy@lemmy.ml !privatelife@lemmy.ml !linuxphones@lemmy.ml !fossdroid@social.fossware.space !fdroid@lemmy.ml

founded 6 years ago
MODERATORS
 

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.

Torrent-Tube Search

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 videos folder. The torrent file is saved in the torrents folder.

Add the torrent to your torrent app, such as qbittorrent.

you are viewing a single comment's thread
view the rest of the comments
[–] IndustryStandard@lemmy.world 1 points 12 hours ago* (last edited 12 hours ago)

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:

  1. Network limitations: Browsers can’t access torrent swarms directly. Extensions run in a sandbox and lack raw socket access (Manifest V3 has no socket API). The only viable option is WebTorrent over WebRTC, which requires WebRTC-capable seeders and wss:// trackers. Without changes to TorrentTube, no such seeders exist (only qBittorrent seeders are present), leaving the extension with zero peers to connect to.
  2. Codec incompatibility: .mkv files aren’t natively playable by the <video> element.

Workable solutions require external components (not on TorrentTube’s side):

  • A streaming gateway (e.g., webtor.io or self-hosted): The extension sends a magnet link to a server that downloads via BitTorrent, remuxes the video, and streams it via HTTP to <video>. (This is the simplest path.)
  • A local helper app via native messaging: The extension communicates with a local torrent daemon streaming to 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:

  1. Seed over WebRTC: Run WebTorrent-hybrid seeders (or similar) to provide browser-compatible peers.
  2. Add wss:// trackers: Modify create_torrent.sh to include WebRTC-compatible trackers (e.g., tracker.openwebtorrent.com).
  3. Encode to MP4: Output fragmented MP4 (H.264/AAC) instead of .mkv (using yt-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:

  • Backward-compatible: Existing swarms (qBittorrent) remain functional.
  • No transcoding needed: The MP4 format is browser-native.
  • ⚠️ Requires one persistent hybrid seeder: Browser peers vanish when tabs close, so a lightweight always-on seed node is needed (but no server costs).
  • ⚠️ Format shift: .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 (with wss:// trackers

  • MP4 output) and a minimal WebTorrent content script for Lemmy?*

Key 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.