Git Product home page Git Product logo

ani-gamer-danmu's Introduction

ani-gamer-danmu

在 MPV 觀看巴哈姆特動畫瘋時,可以支援彈幕列表

  • 快捷鍵開關彈幕

  • 快捷鍵切換彈幕位置

  • 預設開啟 / 關閉彈幕

  • 預設彈幕字體大小可調整

  • 預設彈幕位置可調整

下載

將專案下載至電腦後解壓縮

https://github.com/Yooootsuba/ani-gamer-danmu/archive/refs/heads/main.zip

安裝

將 scripts/ani-gamer-danmu.lua 放到你的 MPV scripts 資料夾

將 script-opts/ani-gamer-danmu.conf 放到你的 MPV script-opts 資料夾(非必要)

此時你的 MPV 資料夾結構會像是:

.
├── input.conf
├── mpv.conf
├── script-opts
│   └── ani-gamer-danmu.conf
├── scripts
│   └── ani-gamer-danmu.lua
└── shaders

設定快捷鍵(非必要)

將以下設定寫入 MPV 資料夾的 input.conf

之後即可使用 Ctrl + a 更改彈幕位置,Ctrl + d 開關彈幕,可自行更換快捷鍵

CTRL+a script-message danmu-anchor
CTRL+d script-message danmu-hidden

修改設定檔(非必要)

請確認你已經將 script-opts/ani-gamer-danmu.conf 放到你的 MPV script-opts 資料夾

color 可以開關彈幕高亮化,請填入 yes 或 no

anchor 可以調整彈幕預設位置,一共有 1-9 可以選擇,經調整後彈幕的位置會像是數字鍵盤 1-9 的方位一樣

danmu-hidden-default 可以選擇是否預設開啟彈幕,請填入 yes 或 no

color=yes
font-size=16
danmu-duration=10000
danmu-gap=0
anchor=1
danmu-hidden-default=no

已知 BUG

  • Emojis 顯示不清楚

  • 某些罕見字可能會顯示亂碼

License

This code is based on the mpv-youtube-chat project by BanchouBoo.

Original code: BanchouBoo/mpv-youtube-chat

License: MIT License

ani-gamer-danmu's People

Contributors

yooootsuba avatar

Stargazers

Webb Lu avatar  avatar  avatar  avatar  avatar Unknown avatar Phoenix avatar Kuihao avatar davidleitw avatar FizzyElt avatar

Watchers

 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.