Giter Club home page Giter Club logo

bmpv's Introduction

bmpv

๐Ÿ”ง this is WIP, configuration will change in the future

a simple tool for playing bilibili video in mpv based on BBDown and danmaku2ass

Features

  • play bilibili video in mpv when opening a video page in browser
  • danmaku support (with danmaku2ass)
  • Dolby Vision support

Dependencies

  • mpv
  • BBDown
  • danmaku2ass
  • python3
  • tampermonkey

Installation

  1. Clone this repo and run install.sh, note that you need to have root permission to install

    this will install the bmpv.py to /usr/bin/bmpv, adding a .desktop file to /usr/share/applications and add a mime type for bmpv:// protocol

    git clone https://github.com/CrackTC/bmpv.git
    cd bmpv
    sudo ./install.sh
  2. Add bmpv.user.js to tampermonkey manually

Uninstallation

  1. Run uninstall.sh with root permission

    sudo ./uninstall.sh
  2. Don't forget to remove bmpv.user.js from tampermonkey~

Configuration (WIP)

Location

bmpv will search the following locations for configuration file in order:

  • $XDG_CONFIG_HOME/bmpv/config.json
  • $HOME/.config/bmpv/config.json
  • /etc/bmpv/config.json

note that once a configuration file is found, bmpv will not search for other locations

Sample configuration

danmaku

see also danmaku2ass

{
    "font": "serif",
    "font_size": 26,
    "danmaku_opacity": 0.8,
    "marquee_duration": 10,
    "still_duration": 10,
    "size": "2560x1440"
}

License

MIT

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.