Coder Social home page Coder Social logo

webtorrent-mpv-hook's Introduction

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

webtorrent-mpv-hook's People

Contributors

mrxdst avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.