mv-creator
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "mv-creator" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-a3f7ba60e67efcbd9b255eab937147bdb4c3b12cdd4a226ee261f69840d4b80b. Verify the upstream source and version against https://skillhub.cn/skills/user_7833ceea/mv-creator before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Creates a music video (MV) from an MP3 song, lyrics, and character info with dynamic scenes, synchronized lyrics, and character cards, outputting a shareable MP4 or single-file HTML. Used when a user asks to pair a song with visuals, add synchronized lyric subtitles and visual effects, or convert a song into a video; the process includes audio energy analysis, lyric timeline arrangement, HTML MV page generation, headless Chrome recording, and ffmpeg MP4 composition.
Introduction source: third_party · user_7833ceea · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Software, accounts and paid services
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: mv-creator
description: "将一首歌曲(MP3)+ 歌词 + 人物信息制作成带动态场景、歌词同步、人物名片的音乐视频(MV),最终输出为可分享的 MP4 视频文件或单文件 HTML。此技能应在用户请求制作 MV、音乐视频、把歌曲配画面、为歌曲添加歌词字幕和视觉效果、将歌曲转为视频等场景时使用。完整流程包括音频能量分析、歌词时间轴编排、HTML MV 页面生成、headless Chrome 录屏、ffmpeg 合成 MP4。"
agent_created: trueMV Creator — 歌曲转 MV 视频制作
概述
此技能将一首歌曲转化为完整的音乐视频(MV),包含:
- 5 个动态视觉场景(前奏/主歌/副歌/桥段/尾奏),随歌曲段落切换
- 卡拉 OK 式歌词同步显示
- 人物名片弹出动画(polaroid 风格,按歌词时间触发)
- Canvas 粒子效果(光尘/金色光点/花瓣,随场景变化)
- 副歌全名墙效果 + 桥段毕业动画
最终可输出三种格式:
- 桌面版 HTML(
mv.html):开发预览用,含 Web Audio API 音质增强 - 移动版 HTML(
mobile-mv.html):单文件,MP3 base64 内嵌,可直接发送分享 - MP4 视频(
mv.mp4):通用格式,任何设备可播放
何时使用
触发场景:
- "帮我把这首歌做成 MV"
- "给这首歌配画面和歌词"
- "把歌曲转成视频"
- "制作音乐视频"
- "给歌曲加歌词字幕和视觉效果"
- "把 MV 导出成 MP4"
工作流程
第 1 步:音频分析
运行 scripts/analyze_audio.py 分析 MP3 能量包络,获取时长、前奏/尾奏边界、段落切换点:
python scripts/analyze_audio.py <mp3路径> --segment 2.0 --output analysis.json
关键输出:intro_end(歌词开始时间)、outro_start(歌词结束时间)、low_energy_regions(间奏/段落边界)。
第 2 步:编排配置 JSON
参考 assets/mv_config.example.json,填写以下核心数据:
lyric_sections:按歌曲结构(Intro→Verse→Chorus→Bridge→Outro)划分歌词段落,每段指定scene类型(决定背景视觉)name_cards:人物名片,通过section+lineIdx+offset定位到具体歌词行fallback_times:每行歌词的开始时间(秒),按 lines 顺序排列all_names:所有人名列表(用于副歌全名墙)
详细字段说明见 references/workflow.md。
第 3 步:生成 MV HTML
# 桌面版 + 移动版
python scripts/build_mv.py config.json --desktop mv.html --mobile mobile-mv.html --mp3 song.mp3
模板:assets/mv_template.html(含 12 个占位符,由配置数据填充)。
移动版可靠性原则(重要,避免白屏):
- 不做浏览器端音频解码分析,用预设 fallback 时间轴
- 直接用
data:audio/mp3;base64,给audio.src(不用 Blob URL,不用 atob) - 点击播放时才设置
audio.src
第 4 步:录屏转 MP4
启动本地 HTTP 服务器预览移动版 HTML,然后用 scripts/record_mv.js 录屏:
node scripts/record_mv.js \
--url http://localhost:8090/mobile-mv.html \
--duration 182 --mp3 song.mp3 --output mv.mp4 \
--width 1280 --height 720
技术原理:headless Chrome 静音播放驱动动画 → CDP screencast 逐帧截屏 → ffmpeg 编码 H.264 + 合并 MP3 音频。
第 5 步:一键流程(可选)
python scripts/make_mv.py --config config.json --mp3 song.mp3 --output final-mv.mp4 --duration 182
自动完成全部 5 步:分析→生成→服务器→录屏→清理。
脚本说明
| 脚本 | 功能 | 依赖 |
|---|---|---|
scripts/analyze_audio.py |
MP3 能量分析,检测段落边界 | 仅 Python 标准库 |
scripts/build_mv.py |
读取配置+模板,生成桌面版/移动版 HTML | 仅 Python 标准库 |
scripts/record_mv.js |
headless Chrome 录屏 + ffmpeg 合成 MP4 | puppeteer-core + Chrome + ffmpeg |
scripts/make_mv.py |
一键完成全流程 | 上述全部 |
环境要求
- Python 3.10+:运行分析、生成脚本
- Node.js 18+:运行录屏脚本
- puppeteer-core:
npm install puppeteer-core(用系统 Chrome,不下载 Chromium) - Chrome 浏览器:headless 录屏用
- ffmpeg:推荐
pip install imageio-ffmpeg(自带二进制,无需系统安装)
配置数据结构
LYRIC_SECTIONS 示例
[
{"name": "intro", "scene": "intro", "label": "前奏", "lines": []},
{"name": "verse1", "scene": "verse", "label": "主歌一", "lines": ["歌词第一行", "歌词第二行"]},
{"name": "chorus1","scene": "chorus", "label": "副歌", "lines": ["副歌第一行"]},
{"name": "bridge", "scene": "bridge", "label": "桥段", "lines": ["桥段歌词"]},
{"name": "outro", "scene": "outro", "label": "尾奏", "lines": []}
]
scene 类型对应背景:intro(暖金) / verse(绿调) / chorus(亮橙+名墙) / bridge(紫红+学士帽) / outro(日落)
NAME_CARDS 示例
{"section": "verse1", "lineIdx": 0, "offset": 0, "name": "张老师", "desc": "数学", "icon": "📐", "type": "teacher", "pos": 0}
offset 为该行开始后的偏移秒数;pos 0/1/2 对应左/中/右位置。
常见问题
详见 references/troubleshooting.md,关键点:
- 移动版白屏 → 不做浏览器端音频分析,用 data URI 直接播放
- ffmpeg 损坏 → 用 imageio-ffmpeg 自带二进制
- 沙箱阻止写入 → 先输出到工作目录再复制
- 帧率不稳定 → 用实际帧时间戳计算帧率
性能参考
3 分钟歌曲(1280x720):音频分析 <3s,HTML 生成 <2s,录屏 ~3min(实时),ffmpeg 编码 ~10s,最终 MP4 ~16MB。
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供从音频到 MV 的完整端到端解决方案,包含歌词同步、动态场景、人物名片等丰富视觉效果
- 支持多格式输出(桌面/移动 HTML、MP4),满足不同分享场景需求
- 流程清晰,适合音乐爱好者和内容创作者广泛使用
Highlights
- 触发词覆盖全面,包含多种用户常见表达方式(如“制作 MV”、“给歌曲配画面”等)
- 边界清晰,不易与其他 Skill 混淆
Areas to improve
-
缺少独立 When to Use 章节 Reported severity: Minor
触发场景已融入文档主体,但未设独立章节
Recommendation: 可考虑将触发场景单独列为 When to Use 章节以提升可读性
Highlights
- 文档结构完整,五步工作流程清晰,每步含具体命令和说明
- 提供配置 JSON 示例和模板说明,便于用户理解数据结构
- 包含环境要求、脚本说明、常见问题和性能参考,信息全面
Highlights
- 工具链依赖明确(Python/Node/Chrome/ffmpeg),参数使用正确
- 覆盖关键异常场景(移动版白屏、ffmpeg 损坏、沙箱限制等)并提供解决方案
- 移动版采用 data URI 直播策略,避免浏览器端音频分析导致的兼容性问题
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 104, 106 -
Screenshots or screen capture
Capture only a selected window or region. Avoid secrets and private records and review captures before sharing.
Mentioned in main document · lines 3, 70, 72, 89, 97
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- localhost
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Translation pending; see source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.