shi*_*ish 4 linux debian bittorrent
我下载了一个 torrent 文件http://cdimage.debian.org/cdimage/stretch_di_rc1/amd64/bt-cd/debian-stretch-DI-rc1-amd64-netinst.iso.torrent
现在我想解析/阅读它,以便我可以找出诸如 -
一种。使用哪个软件来创建 torrent 文件?
湾 iso镜像的大小、大小和片数
C。iso 图像的跟踪器数量。
所有这些都是元数据。
我想我正在寻找媒体文件的 mediainfo 是什么 -
[$] mediainfo Big_Buck_Bunny_small.ogv
General
ID : 30719 (0x77FF)
Complete name : Big_Buck_Bunny_small.ogv
Format : Ogg
File size : 2.65 MiB
Duration : 1 min 19 s
Overall bit rate mode : Variable
Overall bit rate : 280 kb/s
Writing application : ffmpeg2theora-0.25
SOURCE_OSHASH : cc9e38e85baf7573
Video
ID : 20319 (0x4F5F)
Format : Theora
Duration : 1 min 19 s
Bit rate : 212 kb/s
Nominal bit rate : 238 kb/s
Width : 240 pixels
Height : 134 pixels
Display aspect ratio : 16:9
Frame rate : 24.000 FPS
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.275
Stream size : 2.01 MiB (76%)
Writing library : Xiph.Org libtheora 1.1 20090822 (Thusnelda)
Audio
ID : 13221 (0x33A5)
Format : Vorbis
Format settings, Floor : 1
Duration : 1 min 19 s
Bit rate mode : Variable
Bit rate : 48.0 kb/s
Channel(s) : 2 channels
Sampling rate : 48.0 kHz
Compression mode : Lossy
Stream size : 465 KiB (17%)
Writing library : libVorbis 20090709 (UTC 2009-07-09)
Run Code Online (Sandbox Code Playgroud)
有没有类似的东西?我正在寻找 CLI 工具。
传输有一个工具
$ transmission-show debian-stretch-DI-rc1-amd64-netinst.iso.torrent
Name: debian-stretch-DI-rc1-amd64-netinst.iso
File: debian-stretch-DI-rc1-amd64-netinst.iso.torrent
GENERAL
Name: debian-stretch-DI-rc1-amd64-netinst.iso
Hash: 13d51b233d37965a7137dd65858d73c5a2e7ded4
Created by:
Created on: Fri Jan 13 12:29:09 2017
Comment: "Debian CD from cdimage.debian.org"
Piece Count: 1184
Piece Size: 256.0 KiB
Total Size: 310.4 MB
Privacy: Public torrent
TRACKERS
Tier #1
http://bttracker.debian.org:6969/announce
FILES
debian-stretch-DI-rc1-amd64-netinst.iso (310.4 MB)
Run Code Online (Sandbox Code Playgroud)
另一个是多式联运,除了显示元数据外,还可以创建和验证它:https : //rodarmor.com/blog/intermodal
另一种选择是 torrenttools。
\ntorrenttools info bittorrent-v2-hybrid-test.torrent
Metafile: /home/fbdtemme/Documents/project/torrent/torrenttools/tests/resources/bittorrent-v2-hybrid-test.torrent\nProtocol version: v1 + v2 (hybrid)\nInfohash: v1: 8c9a2f583949c757c32e085413b581067eed47d0\n v2: d8dd32ac93357c368556af3ac1d95c9d76bd0dff6fa9833ecdac3d53134efabb\nPiece size: 512 KiB (524288 bytes)\nCreated by: libtorrent\nCreated on: 2020-06-03 08:45:06 UTC\nPrivate: false\nName: bittorrent-v1-v2-hybrid-test\nSource: \nComment: \n\nAnnounces:\n\nFiles:\nbittorrent-v1-v2-hybrid-test\n \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 [6.23 MiB] Darkroom (Stellar, 1994, Amiga ECS) HQ.mp4\n \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 [19.6 MiB] Spaceballs-StateOfTheArt.avi\n \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 [ 326 MiB] cncd_fairlight-ceasefire_(all_falls_down)-1080p.mp4\n \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 [58.8 MiB] eld-dust.mkv\n \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 [ 265 MiB] fairlight_cncd-agenda_circling_forth-1080p30lq.mp4\n \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 [42.5 MiB] meet the deadline - Still _ Evoke 2014.mp4\n \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 [61.0 B] readme.txt\n \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 [25.1 MiB] tbl-goa.avi\n \xe2\x94\x94\xe2\x94\x80\xe2\x94\x80 [ 111 MiB] tbl-tint.mpg\n\n 854.06 MiB in 0 directories, 9 files\nRun Code Online (Sandbox Code Playgroud)\n对于易于在 shell 脚本中使用的输出,您可以使用torrenttools show子命令。
A. 哪个软件用于创建 torrent 文件?
\ntorrenttools show created-by bittorrent-v2-hybrid-test.torrent
b. 文件内容的大小。
\ntorrenttools show size bittorrent-v2-hybrid-test.torrent
C。跟踪器的数量。
\ntorrenttools show announce CAMELYON17.torrent | wc -l
您可以在这里找到 torrenttools: https: //github.com/fbdtemme/torrenttools
\n免责声明:我是该工具的作者。
\n| 归档时间: |
|
| 查看次数: |
1462 次 |
| 最近记录: |