
webtorrent-mpv-hook
Adds a hook that allows mpv to stream torrents using webtorrent.
Prerequisites
- node.js
Install
npm install --global webtorrent-mpv-hook- You need to symlink a script file to your mpv scripts folder.
webtorrent-mpv-hook for instructions.
You only need to do this once.For linux installation without sudo you can try this.
Update
npm update --global webtorrent-mpv-hook
Usage
mpv
Where torrent-id is one of:
- magnet link
- info-hash
- path or url to
.torrentfile
p (default).Multi-file torrents are opened as a playlist.
Configuration
Default values are shown below.
input.conf
# Toggles info/progress overlay.
p script-binding webtorrent/toggle-infoscript-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=nodeThe same text style options as in stats.conf is also available.
--- Tranlated By Open Ai Tx | Last indexed: 2026-02-14 ---