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.0.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.0-py3-none-any.whl (28.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_phitk_autorender-1.0.0.tar.gz
Algorithm Hash digest
SHA256 af3d08fba3f755147a7ca14b561f2c61934d424328259fce390b4c62ba60bc37
MD5 c6507fc1135d95b5d5b271fbe7873060
BLAKE2b-256 7110dc2c8c9b479fb44176f4cd5b5577280b684ce22f958affe07c81ad616437

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_phitk_autorender-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a258ba89b2718c0d71a63c725e7a1b0a132beb3b6a96e136217300ce759bd0c3
MD5 6dcd1a2359c839421d95f583482f5d5a
BLAKE2b-256 72e4d77e06d6c4188b8a19959d634b9c951f844a1433db35c8fb64036a542e53

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