Skip to main content

Phigros谱面自动渲染NoneBot2插件,调用phi-tk-cli生成谱面视频

Project description

nonebot-plugin-phitk-autorender

📚 让”kkp”变简单,不要再让”懒得开电脑渲染”成为遗憾 📚

🔥 基于 NoneBot2, Phi-TK-CLI 的 Phigros 谱面渲染插件 🔥

python NoneBot Phi-TK Phi-TK-CLI

license

📖 介绍

本插件可以下载用户提供的 .pez, .zip 文件,并调用 phi-tk-cli 渲染

💿 安装

⚠️记得先去 oonp! 安装 Phi-TK-CLI!

方式一:手动安装

暂不确定是否能正常安装() 咱还是建议手动把文件夹下载到 bot 的 plugins 文件夹下完成安装,随后配置 pyproject.toml

方式二:或许可以吧...

1. 使用 nb-cli 安装

nb plugin install nonebot-plugin-phitk-autorender

2. 使用包管理器安装

1️⃣ 使用 pip 安装插件:

pip install nonebot-plugin-phitk-autorender

2️⃣ 在 NoneBot2 项目的 pyproject.toml 文件中添加插件:

[tool.nonebot]
plugins = ["nonebot-plugin-phitk-autorender"]

🎮 使用方法

基础指令

  • 引用一个 .pez | .zip 文件并 @bot /render - 以默认 1080p 30fps 无加载动画&结算动画 背景亮度40 渲染引用谱面
  • Alternative: @bot /xr - /render 的命令别名

自定义参数(都是可选的)

排序 说明 可用值 默认值 补充说明
1 分辨率 360p | 480p | 720p | 1k | 2k 1k 默认4:3 详见代码
2 帧率 0-120 30 其实 phi-tk-cli 原生支持更高帧率,可修改代码解除最高 120fps 限制
3 背景亮度 0~100 40 0=最暗 100=最亮
4 显示加载界面 布尔 False 棍母
5 显示结算界面 布尔 False 3秒

💡 提示: 文字包含空格需要加引号,换行使用\n

使用示例

@bot /xr & @bot /render                   # 基础用法
@bot /xr 2k 120 0                         # 自定义分辨率 帧率 背景亮度
@bot /xr load finish                      # 显示加载界面和结算界面
@bot /xr 2k 120 0 load finish             # 组合多个参数...

📝 功能特点

  • ✅ 支持自定义渲染参数
  • ✅ 支持高质量渲染
  • ✅ phi-tk-cli 支持服务器硬件加速
  • ✅ 支持曲绘背景
  • ✅ 支持 info.yml 解析出的歌曲信息&难度信息显示 (❌ 暂不支持 info.txt 解析)
  • ❌ 不支持Simai谱面渲染

🔧 依赖

  • Python 3.8+ (已测试支持 3.8 - 3.12)
  • NoneBot2 >= 2.0.0

📄 开源许可

本项目基于 GPL-3.0 许可证开源。

注意事项:

  • 本项目代码使用 GPL-3.0 许可证开源,您可以自由使用和修改代码
  • 请遵守原始素材的使用条款和限制

🙏 鸣谢

📞 联系

(我写的代码太史了能不要骂我吗 求放过.jpg)呜呜😭 QQ:3466756568

💬 反馈

如有问题或建议,请:

😅 废话

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_phitk_autorender-1.0.1.tar.gz (31.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_phitk_autorender-1.0.1-py3-none-any.whl (28.7 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_phitk_autorender-1.0.1.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_phitk_autorender-1.0.1.tar.gz
Algorithm Hash digest
SHA256 0474d0cc00f8e4ac9f9052a8498a8967970105553639e24113071e97124808b5
MD5 283fc46cc7abe677d14ffa5331853e3a
BLAKE2b-256 4d00d9e163399b68d8a5a65f3f4e3431c242b0a62d6373be15537128774b6850

See more details on using hashes here.

File details

Details for the file nonebot_plugin_phitk_autorender-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_phitk_autorender-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9c51ce9c0abe16af3fc50515f86669f578b27806ad642cfe2a0c67ee15641fa1
MD5 4dc6e960d84b7a3935c03f97579f90cf
BLAKE2b-256 e911a05b136b54ee49ab1a470323c3cd6295c3066b075b51cc5d7d7b33e4f048

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page