Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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
- Created: 2024-07-19T19:50:18.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-05T16:50:11.000Z (5 months ago)
- Last Synced: 2024-08-05T19:43:46.410Z (5 months ago)
- Topics: danmaku, mpv, mpv-script, mpv-scripts
- Language: Lua
- Homepage:
- Size: 31.3 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