Is there any Torrent Creator on Linux that supports BEP-47 protocol (optimize alignment) ? It’s okay with or without GUI.

Currently using mktorrent, but does not support this important feature. I didn’t find anything on google.

Any suggestions? thanks.

EDIT: for creating v1 torrent.

  • Lemmchen@feddit.de
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I’m having trouble understanding what BEP-47 exactly is. Care to enlighten me?

    • seeder@lemmy.dbzer0.comOPB
      link
      fedilink
      English
      arrow-up
      6
      ·
      edit-2
      1 year ago

      I’m having trouble understanding what BEP-47 exactly is. Care to enlighten me?

      Using padding files to prevent torrents containing multiple files from getting stuck at 99%.

      The original Bittorent spec has a really stupid design decision in that it is just a long stream of concatenated files split into fixed size pieces. This means you always have to download parts of adjacent files to get the file you actually want. This leads to all sorts of unnecessary complexity when partially downloading a torrent of what do this with this left-over data, eg qB saves hidden “.<sha1>.parts” per torrent, which you can easily lose.

      To get around this, padding files where introduced that “fill” the gap from the end of one file to the start of the next piece boundary where the next file starts with 0x00 filled padding files with naming corresponding to length. It’s a cross-client standard defined in BEP47. Padding files are also required by necessity for hybrid Bittorrent v1+v2 torrents. Any remotely decent torrent client won’t transfer or save these padding files, so the size doesn’t really matter. And even if your client doesn’t, some of the padding names will likely overlap and only be saved once.

      https://www.reddit.com/r/DataHoarder/comments/nqwckn/stackoverflow_bought_out_should_we_be_worried/

    • bear_with_a_hammer@lemm.ee
      link
      fedilink
      English
      arrow-up
      3
      arrow-down
      2
      ·
      edit-2
      1 year ago

      Here’s the link.

      If you don’t understand, then just think of it as the solution of 99% stuck torrents and need to download part of other files’ pieces to check if given file is valid.

      • xioiwanb@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        1
        ·
        1 year ago

        These files are the cause of torrents that are stuck at 99%

        Quote from your link: “If used incorrectly or maliciously symlinks and padding files can result in internally inconsistent torrents which cannot finish downloading because they contain conflicting hash information.”

        • bear_with_a_hammer@lemm.ee
          link
          fedilink
          English
          arrow-up
          2
          arrow-down
          2
          ·
          edit-2
          1 year ago

          Exactly, that’s why clients with BEP-47 support should:

          Ensure that adding and deduplicating such a torrent does not lead to loss of already existing data.

          I doubt that there are decent torrent clients implemented BEP-47 without this sanitization, if any.