Skip to content

Adds a hook that allows mpv to stream torrents

Notifications You must be signed in to change notification settings

dial8gue/webtorrent-mpv-hook

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mpv streaming a torrent

webtorrent-mpv-hook

npm mpv

Adds a hook that allows mpv to stream torrents using webtorrent.

Install

  1. npm install --global webtorrent-mpv-hook
  2. You need to symlink a script file to your mpv scripts folder.
    Run webtorrent-mpv-hook for instructions.
    You only need to do this once.

Usage

mpv <torrent-id>

Where torrent-id is one of:

  • magnet link
  • info-hash
  • path or url to .torrent file

An overlay will be shown with info/progress. It will be closed automatically when playback starts.
It can also be toggled manually with 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-info

script-opts/webtorrent.conf

# Path to save downloaded files in.
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=no
# Enable DHT.
dht=yes

About

Adds a hook that allows mpv to stream torrents

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 92.6%
  • JavaScript 7.4%