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.4.tar.gz (31.3 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.4-py3-none-any.whl (28.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_phitk_autorender-1.0.4.tar.gz
Algorithm Hash digest
SHA256 165c90f0c0f656c6f100246d23d0eebac28b01fdf9f226f68fa55b4f19d1bd79
MD5 889dff0eeaf6c201e0bcb9e6b8ac1b8d
BLAKE2b-256 c4a0f193c31512ef9b9903e4f30d92a0bf69668311b9a1b78251ad80f348793c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_phitk_autorender-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4b86c0f65900e7391a590c873a41900b7e4b78407ba6f7daa38dc953b56be72f
MD5 3352d273fefe2afd3de7e371f769a848
BLAKE2b-256 2b8b72051b7cecf14f3b641939ae8384ac93c6ef56b27d664d90604e5ab1d35a

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