Comments (2)
This is a soft limit. It only affects the automatic piece size calculation. You can override/specify the piece size yourself with the -p
option. Above 16 MiB you will be prompted to confirm the excess of 16 MiB, but you can disable this prompt by adding -f
(force option).
For example to create a torrent with 64 MiB: py3createtorrent tests\testdata\bigfile-1gb.dat -p 65536 -f
Now why does py3createtorrent prefer to keep the piece size limited to 16 MiB in the first place? The BitTorrent spec itself does not explicitly limit the piece size, but many clients only have limited support for large piece sizes.
Quote:
Warning: users are at their own discretion to create .torrent with >= 64 MiB piece size as not every torrent client supports it.
Larger piece sizes are only available when using libtorrent 2.x. libtorrent 1.x is not efficient with memory usage and in order to avoid user complaints it is limited to 128 MiB.
Also note that, as of this writing, libtorrent 2.0.9 has an internal limitation that only allows loading maximum 256 MiB piece size. And therefore > 256 MiB size options are forbidden for now.
Source: qbittorrent/qBittorrent#19535
The 16 MiB soft limit, however, is from over 10 years ago. Today it should be safe (widely supported) to use 64 MiB pieces. So I will increase the soft limit from 16 MiB to 64 MiB.
from py3createtorrent.
Wow, apprecaite for such a detailed explaination! Yup, increasing 16MB to 64MB can reduce up to 4x of the torrent file size and definitely will help my project. Thanks!
from py3createtorrent.
Related Issues (17)
- About RegEx issue HOT 3
- Faulty torrent name and 'name' field when using relative path '.'
- cant exclude folder that start with . HOT 3
- Support for usage as a module HOT 9
- Support for optimise alignment (Piece-Aligned, BEP-47) ?
- Make "master" the default branch again HOT 3
- No way to populate a "source" field? HOT 2
- Trackerless torrent HOT 3
- UnicodeEncodeError HOT 6
- Remove created_by attribute HOT 1
- run fails with "SyntaxError: invalid syntax" HOT 3
- noob question
- Where is the config file? HOT 4
- Support for v2 and hybrid torrent files HOT 2
- Torrent name assignment HOT 8
- Error with path exceeded than 260 characters in Windows HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from py3createtorrent.