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.

  • tired_fedora@lemmy.ml
    link
    fedilink
    English
    arrow-up
    0
    ·
    12 hours ago

    Could one integrate this with apps like NextTube or PipePipe? I.e., When I search for a video on those apps, they search the torrent index first, then search Frama Tube / PeerTube second, then search YouTube-proper last. While I’m streaming a video from any of these sources, I am then also downloading and seeding it to the torrent network and I keep seeding the last videos I watched on a rolling basis until an allocated memory space on my disk is full and the oldest or least requested video in that local buffer is deleted to make space for new; while I’m on Wifi to save mobile data? I think providing such seamless integration is the best way to get this space densely populated enough to be useful.

    • 45o3b@lemmy.ml
      link
      fedilink
      arrow-up
      0
      ·
      11 hours ago

      I like your logic here. Torrent index -> alternative platforms -> YT proper.

      Assuming the torrent index becomes decentralized, there are really two categories where it makes sense to build this in:

      1. The YouTube frontends, as you mention

      2. The self-hosted downloaders that already exist, like Tube Archivist

      I think the second category is where you get all the seeding traction. Sure, it would be great if the Android frontends also participate, but there are thousands of NAS devices that are already downloading YouTube videos for a single user. If there was an addon that allowed all of these users to share content automatically, I think there would be a lot of buy in / seeding.

      • Dessalines@lemmy.mlOP
        link
        fedilink
        arrow-up
        0
        ·
        4 hours ago

        Yes, this could potentially be used in youtube front-ends. IE show the magnet link of a given video if it exists, so that it could be torrented.