Skip to content

mpv plugin to correctly display Bilibili danmaku

License

Notifications You must be signed in to change notification settings

UlyssesZh/bdanmaku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

bdanmaku

mpv plugin to correctly display Bilibili danmaku. Powered by biliass.

Installation

First, install biliass. Then, see mpv documentation for how to run the script in mpv.

Usage

First, use yt-dlp as the youtube-dl executable in mpv by setting the ytdl_path option. Then, watch Bilibili video by running a command like this:

mpv https://www.bilibili.com/video/BV1Sm4y1N78J

Configuration

You can configure the plugin by setting the script-opts option in mpv. Set the biliass executable by setting the biliass_executable option like this:

mpv --script-opts=biliass_executable=/path/to/biliass https://www.bilibili.com/video/BV1Sm4y1N78J

You can also set the biliass_options option to pass additional options to biliass. For example, if you want to make the opacity of danmaku to 0.1, you can do this:

mpv --script-opts=biliass_options=-a\ 0.1 https://www.bilibili.com/video/BV1Sm4y1N78J

Notice for Windows users

You have to specify the tmpdir option on Windows (e.g. --script-opts=tmpdir=C:\tmp). Otherwise, downloading danmaku will fail.

Because of a bug of biliass on Windows, you may see errors about decoding danmaku files. Install @Mark-Joy's fork instead to fix this.

About

mpv plugin to correctly display Bilibili danmaku

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages