Web Analytics

webtorrent-mpv-hook

⭐ 181 stars Japanese by mrxdst

mpv streaming a torrent

webtorrent-mpv-hook

npm mpv

mpvがwebtorrentを使用してトレントをストリーミング再生できるようにするフックを追加します。

前提条件

インストール

指示を表示するにはwebtorrent-mpv-hookを実行してください。 この操作は一度だけ行えば十分です。

sudoなしでのLinuxインストールについてはこちらを参照してください。

更新

npm update --global webtorrent-mpv-hook

使い方

mpv

ここでtorrent-idは以下のいずれかです:

情報/進行状況を示すオーバーレイが表示されます。再生開始時に自動的に閉じられます。 p(デフォルト)で手動で切り替えることもできます。

複数ファイルのトレントはプレイリストとして開かれます。

設定

デフォルト値は以下の通りです。

input.conf

# Toggles info/progress overlay.
p script-binding webtorrent/toggle-info

script-opts/webtorrent.conf

# Path to save downloaded files in. Can be set to "memory" to store all files in RAM.
path=./

Maximum number of connections.

maxConns=100

Port to use for webtorrent web-server.

If it's already in use a random port will be chosen instead.

port=8888

Enable μTP support.

utp=yes

Enable DHT.

dht=yes

Enable local service discovery.

lsd=yes

Download speed limit in bytes/sec.

downloadLimit=-1

Upload speed limit in bytes/sec.

uploadLimit=-1

Specify the node command to use.

Usefull if the command is called nodejs on your system.

node_path=node

The same text style options as in stats.conf is also available.

--- Tranlated By Open Ai Tx | Last indexed: 2026-02-14 ---