https://github.com/dyphire/mpv-load-danmaku
A lua script to load local damaku files (.xml) for mpv player
https://github.com/dyphire/mpv-load-danmaku
danmaku mpv mpv-script mpv-scripts
Last synced: 11 months ago
JSON representation
A lua script to load local damaku files (.xml) for mpv player
- Host: GitHub
- URL: https://github.com/dyphire/mpv-load-danmaku
- Owner: dyphire
- License: gpl-3.0
- Archived: true
- Created: 2024-07-19T19:50:18.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-07T05:01:09.000Z (over 1 year ago)
- Last Synced: 2025-03-22T09:47:34.489Z (about 1 year ago)
- Topics: danmaku, mpv, mpv-script, mpv-scripts
- Language: Lua
- Homepage:
- Size: 36.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Note: replaced by: [uosc_danmaku](https://github.com/dyphire/uosc_danmaku)
# mpv-load-danmaku
## Description
This is a lua script for mpv player. It will load danmaku files (`.xml`) of the same name in the playback directory.
## Requirements
Need [DanmakuFactory](https://github.com/hihkm/DanmakuFactory) to be installed or explicitly specified.
## Usage
### Keybinds
You can add bindings to input.conf:
```ini
key script-message-to load-danmaku load-local-danmaku
key script-message-to load-danmaku toggle-local-danmaku
```
### Script message
#### load-danmaku
`script-message load-danmaku input `
Allows loading of danmaku by passing the path to a given danmaku file (.xml) with a script-message.
## Todo
- [ ] consider using osd-overlay for rendering danmaku?
- [x] add script-message support
## Acknowledgement
- Modified from [MPV-Play-BiliBili-Comments](https://github.com/itKelis/MPV-Play-BiliBili-Comments)
- [DanmakuFactory](https://github.com/hihkm/DanmakuFactory) Provide danmaku file format conversion