Giter VIP home page Giter VIP logo

mpv-btfs-hook's Introduction

About

This plugin allows mpv to stream magnet links (and any other torrent identifier btfs handles) directly. It will automatically remove videos after they are finished playing.

This script will detect magnet: links and torrent files/urls ending in torrent passed to mpv by default.

One reason you might want to use this script over calling the included btplay -p mpv is that you can start mpv with a playlist of multiple magnet links or add magnet links to the playlist of an already open mpv window (e.g. using one of the scripts that allow appending a link from the clipboard to the playlist).

Requirements

  • btfs
  • fuse (“fuse” in Ubuntu 16.04)
  • libtorrent (“libtorrent-rasterbar8” in Ubuntu 16.04)
  • libcurl (“libcurl3” in Ubuntu 16.04)
  • on linux (or maybe similar posix compiant)
  • the find core util atleast

Advantages Over Peerflix and Webtorrent

Peerflix and Webtorrent are both written in javascript and have to be installed using npm or external repos. Btfs on the other hand is in both the default debian and default arch repos. Makes setup a lot easier and quicker. Btfs is also a lot simpler and cleaner implementation of a bittorrent filesystem protocol utilizing the FUSE subsystem.

Btfs makes the lua script a lot simpler in implementation than the Peerflix and Webtorrent of the past.

Limitations

  • Only plays the first video file form the directory

mpv-btfs-hook's People

Contributors

aitet avatar noctuid 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.