How To Create A Torrent Using Mktorrent - Wiki wiki page
- To make a .torrent file using command line, execute this command:
mktorrent -v -p -a http://tracker.url -o filename.torrent folder_name
-v is for verbose -p is for private, as in not DTH or PeerExchange -a is for tracker url follows -o is for output file name follows .
Important! The command needs to be all in one line, and quotes must be used around the folder name if it contains spaces.
For example, if I wanted to make a torrent for What.cd from the data in the "VA – Summer Trance 2009" directory I already have on my server at ~/torrents/completed/VA - Summer Trance 2009, you would navigate to the parent directory to make your torrent. Type to navigate to it:
Then type the following command:
mktorrent -v -p -a http://tracker.what.cd:34000/xxxXXXxxx/announce -o VA-Summer_Trance_2009.torrent "VA - Summer Trance 2009"
Please note that you must use quotes if the target dir name contains spaces.
If you want to specify piece size for torrent, you can use -l switch (small L) it's in potency of 2 so:
219 = 524 288 = 512 KiB for filesizes between 512 MiB - 1024 MiB
220 = 1 048 576 = 1024 KiB for filesizes between 1 GiB - 2 GiB
221 = 2 097 152 = 2048 KiB for filesizes between 2 GiB - 4 GiB
222 = 4 194 304 = 4096 KiB for filesizes between 4 GiB - 8 GiB
223 = 8 388 608 = 8192 KiB for filesizes between 8 GiB - 16 GiB
224 = 16 777 216 = 16384 KiB for filesizes between 16 GiB - 512 GiB This is the max you should ever have to use.
225 = 33 554 432 = 32768 KiB (note that utorrent versions before 3.x CANNOT load torrents with this or higher piece-size)
mktorrent -v -p -l 19 -a http://exampletracker.com/announce -o filename.torrent folder_name
|Last Author||Contributors||Versions||Last update|
|Alchemist||4||Wed, 03 Feb 2016 13:01:04 +0100|