SKILL·88AF16

music-video

NoizAI
更新于 15 days ago
5 次查看
526
78
526
在 GitHub 上查看
元apidesign

关于

This skill creates a music video for an existing song by generating a p5.js/p5.brush animation or by assembling local images and video clips. It triggers on requests for lyric videos, visualizers, or storyboards and performs local audio analysis for timing cues. Developers should use it for video assembly and code-based animation, not for composing music or generating new media via API.

快速安装

Claude Code

推荐
主要方式
npx skills add NoizAI/skills -a claude-code
插件命令备选方式
/plugin add https://github.com/NoizAI/skills
Git 克隆备选方式
git clone https://github.com/NoizAI/skills.git ~/.claude/skills/music-video

在 Claude Code 中复制并粘贴此命令以安装该技能

技能文档

music-video

Turn one finished song into a 24fps music video. The song is the master audio. Scene intervals cover it exactly once.

Triggers

  • music video / MV / lyric video / visualizer / storyboard
  • 音乐视频 / MV合成 / 歌词动画 / 歌曲动画

Capabilities

  • code: initialize a pinned p5.js and p5.brush project, then animate the song in JavaScript.
  • hybrid: inspect local character images, scene stills, and video clips, then assemble them. No image or video generation API is called.
  • Local beat, onset, low-frequency, and loudness analysis for cut points and animation cues.
  • Frame-exact assembly with the original song as the only soundtrack.

Inputs

Required:

  • song: local audio (.mp3, .wav, .m4a, .flac, .ogg, .aac)
  • brief: the visual idea, audience, and any required references
  • mode: code or hybrid

Optional:

  • lyrics: text or .srt. Required before storyboarding when the vocal timing matters.
  • assets: directory of stills and clips for hybrid
  • aspect: 16:9 (default), 9:16, 1:1, or 4:3

If the user wants a song created first, use text-to-music, then return here with the chosen file.

Outputs

  • <project>/output/final.mp4
  • docs/CREATIVE_BRIEF.md, docs/STORYBOARD.md, docs/TASKS.md, and docs/PROGRESS.md
  • audio/analysis.json, and docs/inspect.json when assets exist

Workflow

Run python3 skills/music-video/scripts/mv.py from the repository root. If this skill is installed elsewhere, use the scripts/mv.py beside this file. Create the project outside the skill directory.

  1. Choose code when the video is drawn in JavaScript. Choose hybrid when the user supplies stills or clips. Ask once when neither is clear.
  2. Initialize an isolated project:
python3 skills/music-video/scripts/mv.py init \
  --project ./mv-project --song ./song.mp3 --lyrics ./lyrics.txt --mode code

python3 skills/music-video/scripts/mv.py init \
  --project ./mv-project --song ./song.mp3 --lyrics ./lyrics.srt \
  --assets ./clips --mode hybrid --aspect 16:9
  1. Analyze the song. Treat tempo changes as approximate and confirm section boundaries from the audio:
python3 skills/music-video/scripts/mv.py analyze --project ./mv-project
  1. Get lyric timing. If the user did not supply it, use speech-to-text only when NOIZ_API_KEY or ~/.config/noiz/api_key already exists. Never print the key. If neither exists, ask for lyrics or timestamps and do not upload the song.
  2. Read references/opus-5.5-prompt.md and follow it. Write the creative brief and storyboard before scene code or assembly. Review the opening and main peak before building the other chapters.
  3. In code mode, read <project>/animation/ANIMATION_GUIDE.md before drawing. Set PROJECT.bpm and PROJECT.offset from audio/analysis.json. The pinned template canvas is 1920×1080; change studio.html and the renderer window before using another aspect. Check motion with the template renderer:
node render.mjs --sheet=1,2,3 --out=../output/sheets/pilot.jpg
node render.mjs --strip=START:END --out=../output/sheets/pilot-motion.jpg
node render.mjs --clip --range=START:END --out=../output/pilots/opening.mp4

Run those inside <project>/animation. Pass --chrome or set CHROME_PATH when Chrome is not in a standard location. A contact sheet only screens layout. A --strip, or playback of the opening, peak, and ending, is the motion review. 7. In hybrid mode, inspect local media and stop if a required clip is missing. Do not generate a replacement.

python3 skills/music-video/scripts/mv.py inspect --project ./mv-project
  1. Write timeline.json using references/timeline.schema.json. Intervals are inclusive at start_frame and exclusive at end_frame.
  2. Assemble and probe the result:
python3 skills/music-video/scripts/mv.py assemble --project ./mv-project

Timeline

{
  "fps": 24,
  "width": 1920,
  "height": 1080,
  "audio": "audio/source.mp3",
  "scenes": [
    {
      "id": "opening",
      "start_frame": 0,
      "end_frame": 240,
      "source": "output/pilots/opening.mp4",
      "source_start": 0,
      "fit": "cover",
      "transition": "fade",
      "fade_frames": 6
    }
  ],
  "overlays": []
}

fade stays inside its own scene. Do not overlap scenes to create a crossfade.

Completion

Finish only when every item is true:

  • [0, ceil(duration × 24)) is covered exactly once, with no gap or overlap.
  • final.mp4 has a video stream and the complete original song.
  • The opening, main peak, and ending were reviewed in motion.
  • The last story read has time to land.
  • docs/PROGRESS.md has no open blocker.

Security

init --mode code clones JohnHeibel/ClaudeAnimationBase at commit 0ac8bf2b31942376cb6b8c4074715595d512acd2 into the project. That template is MIT licensed. Analysis, inspection, rendering, and assembly stay local. Hybrid mode does not upload media and does not call an image, video, or music generation service.

Requirements

  • ffmpeg and ffprobe
  • Python 3.9+
  • analyze: uv pip install 'numpy>=2,<3'
  • code mode: git, Node.js, and Google Chrome
  • hybrid mode: local assets only

Limitations

  • This skill does not compose music, generate sound effects, or create images and video through an API.
  • The beat grid assumes a mostly steady tempo.
  • Watercolour fills in code mode can take seconds per frame without a discrete GPU. Ask the renderer to avoid those fills on integrated graphics.
  • Assembly rejects a clip that is shorter than its scene instead of freezing or retiming it.

GitHub 仓库

NoizAI/skills
路径: skills/music-video
0
FAQ

常见问题

什么是 music-video Skill?

music-video 是一个 Claude Skill,作者为 NoizAI。Skill 将 Claude 按需加载的说明和资源打包,让 Claude 无需额外提示即可执行与 music-video 相关的任务。

如何安装 music-video?

使用本页的安装命令:将 music-video 作为插件添加到 Claude Code,或将其仓库克隆到 skills 目录,然后重启 Claude 以加载该 Skill。

music-video 属于哪个分类?

music-video 属于元分类。

music-video 可以免费使用吗?

可以。music-video 已收录在 AIMCP,可免费安装。

相关推荐技能

content-collections
元

Content Collections 是一个 TypeScript 优先的构建工具,可将本地 Markdown/MDX 文件转换为类型安全的数据集合。它专为构建博客、文档站和内容密集型 Vite+React 应用而设计,提供基于 Zod 的自动模式验证。该工具涵盖从 Vite 插件配置、MDX 编译到生产环境部署的完整工作流。

查看技能
polymarket
元

这个Claude Skill为开发者提供完整的Polymarket预测市场开发支持,涵盖API调用、交易执行和市场数据分析。关键特性包括实时WebSocket数据流,可监控实时交易、订单和市场动态。开发者可用它构建预测市场应用、实施交易策略并集成实时市场预测功能。

查看技能
creating-opencode-plugins
元

该Skill帮助开发者创建OpenCode插件,用于接入命令、文件、LSP等25+种事件。它提供了插件结构、事件API规范和JavaScript/TypeScript实现模式,适合需要拦截操作、扩展功能或自定义事件处理的场景。开发者可通过它快速构建响应式模块来增强OpenCode AI助手的能力。

查看技能
sglang
元

SGLang是一个专为LLM设计的高性能推理框架,特别适用于需要结构化输出的场景。它通过RadixAttention前缀缓存技术,在处理JSON、正则表达式、工具调用等具有重复前缀的复杂工作流时,能实现极速生成。如果你正在构建智能体或多轮对话系统,并追求远超vLLM的推理性能,SGLang是理想选择。

查看技能