Song MV Studio
Create an original, emotionally legible music video with synchronized lyrics, purposeful character performance, continuous motion, and verifiable delivery. Work with the tools actually available in the host environment. Treat this file as a workflow specification, not as proof that a tool or dependency is installed.
Defaults and boundaries
- Required input: one user-provided audio file. Lyrics, LRC/SRT, reference videos, character images, or an existing project are optional.
- Default visual production: code-drawn 2D/cut-paper/collage elements. Do not call AI image or video generation unless the user explicitly changes this default. Preserve user-provided source assets.
- Default output: landscape 16:9, 1920×1080, 30 fps. Respect an explicit user-specified platform, aspect ratio, or resolution instead.
- Default deliverables: final MP4 with the supplied original song, self-contained HTML preview, storyboard, and concise analysis/QA notes. If a format cannot be produced in the current environment, say which one and why; do not label a substitute as the requested deliverable.
- Reference videos are for learning general techniques (pacing, motion, typography, framing, mood, transition grammar). Do not reproduce their exact frames, characters, logos, layouts, or distinctive sequence shot-for-shot. Translate techniques into original imagery.
- Use only lyrics supplied by the user or otherwise authorized by them. Do not invent words or claim word-level lyric timing when only line timing is known.
- No external writes, publishing, or uploads unless explicitly requested. A full high-resolution render may consume substantial time/resources: create short previews first and get clear user approval before starting the final render unless the user has already explicitly approved that exact final render.
- Never claim a render, mux, validation, or file delivery succeeded without a command result or inspected artifact confirming it.
Workflow
1. Intake and capability check
- Locate the audio and any attached lyrics/timing/reference assets in the current task context. Do not search unrelated directories for a substitute.
- Probe the actual environment for media duration, streams, resolution, and available tools. Use the host's current tool definitions or run safe version/help checks. Record only dependencies confirmed available.
- If the audio is missing/unreadable, ask for that required input. If lyrics are absent, offer to extract/draft a transcript only if a reliable transcription tool is actually available; otherwise ask the user for lyrics or continue with an instrumental/concept MV. Do not silently fabricate lyrics.
- Ask only for choices that materially change the result and cannot be inferred. Default choices are as above.
2. Audio and lyric analysis
- Inspect audio duration, sample rate, channels, clipping/peak level, and leading/trailing silence.
- Estimate tempo, beat grid, downbeats, and song sections with an available audio-analysis method. Tempo trackers can return half-time/double-time alternatives; compare candidates against the audible pulse and phrase structure. Mark uncertain downbeat phase or BPM as provisional, not fact.
- Parse supplied LRC/SRT with correct encoding, normalize cue order, inspect overlaps/gaps, and retain original text. If only line-level timestamps exist, keep word timing explicitly approximate or line-based.
- Build a compact musical map: intro, verse/chorus/bridge/outro, intensity/energy changes, emotional peaks, quieter spaces, and candidate transition points. Do not claim an exact beat hit without evidence.
3. Reference-video study (when provided)
- Probe duration and format. Sample a contact sheet at a useful cadence (for example 1–2 frames/s for overview, then around candidate cuts); analyze the whole reference, not only the first few seconds.
- Separate observations into: cut cadence, camera/object motion, character scale and acting, subtitle entrance/exit/placement, palette/light, transition type, and title/end-card behavior.
- If helpful and available, compute scene-change candidates and frame differences. Distinguish a genuine edit from flashes, high motion, or compression artifacts.
- Give the user a brief evidence-based style breakdown and an original adaptation plan. State clearly that the target is technique-level similarity, not frame-by-frame duplication.
4. Creative direction and storyboard
- Choose one coherent visual system and palette. Describe materials, edge treatment, lighting, composition, character silhouette, and subtitle language.
- Define the main character's identity and a reusable rig/sprite/vector construction. Expressions should include the emotions needed by the song (at minimum happy, shy/tender, sad when relevant). Actions should be explicit, not generic pose labels; common options include walk, run, jump, reach, embrace, handle an object/tool, turn, hesitate, and leave.
- Build a timestamped storyboard tied to lyric lines and musical phrases. Each entry contains: start/end, lyric cue or section, narrative purpose, one main action, expression, shot size, camera movement, palette/light, subtitle treatment, and transition in/out.
- Add a separate continuity table for every adjacent shot. Specify the carried action/object/shape, screen direction, actor position/scale/pose at the seam, camera path, transition start beat/anchor, reveal direction, and what hides the scene replacement.
- Avoid unmotivated hard cuts, full-frame cross-dissolves, random shake, frequent push-pull, teleporting, sudden character disappearance, and background elements popping during camera motion. A transition must be designed as two connected states, not just a named effect.
- Keep close-ups for emotional peaks and use lighting/color shifts to support emotional changes. Make the intended shot-size distribution visible in the storyboard.
5. Animation and subtitle implementation
- Use deterministic time-based animation: rendering the same timestamp twice must produce the same frame. Avoid state that depends on prior frame order.
- Animate the character's root position, body weight, head/torso, limbs, clothing, and props. Do not let camera tracking fully cancel the character's screen-space travel; the subject must visibly traverse the composition where the story calls for movement.
- Give each lyric line or phrase one readable primary action with anticipation, action, and follow-through. A pose cycle alone is not an action. Keep continuity across lyric cuts by sharing path/pose phase or hiding transitions behind a moving foreground element.
- Use a continuously moving but restrained camera. Reframe deliberately; keep character scale/position consistent through a transition unless the storyboard explicitly motivates a change.
- Animate subtitles according to available timing evidence. If only line-level LRC exists, reveal characters with an explicitly approximate beat/phoneme distribution or animate the whole line; never imply exact word sync. Keep subtitles legible, inside safe margins, and clear of faces/key actions. Avoid excessive lyric/UI text.
- Build original title and end cards with song title and artist only when supplied/verified by the user or metadata. Animate entry, settle, hold, and exit once; avoid repeated unintended oscillation or re-entry.
- Make an interactive local preview page self-contained when requested: inline/local scripts and assets, render on load, include play/pause and seek controls, and show usable loading/error feedback. Test that opening the file actually paints a frame.
6. Preview gate and local QA
Before the final render:
- Render short previews for the intro/title, at least one emotional performance, a representative transition (frames before/during/after), and the outro. Play or inspect the moving clips, not only stills.
- Render around every shot/lyric cut (at minimum before, at, and after each boundary). Check actor screen position/scale/facing, prop continuity, camera transform, subtitle overlap, and that a foreground wipe does not create a freeze or a one-frame scene pop.
- Run a low-cost motion diagnostic: sample at 0.5-second intervals (or 2 fps), downscale to grayscale, compute adjacent-frame difference, and list near-static spans (use a configurable threshold; a starting screen is mean absolute difference <2 on 160×90 grayscale, sustained >=1.5 s). Also detect duplicate frames/black frames if tools allow.
- Treat frame-difference metrics as triage, not a quality score. Camera motion, scene changes, subtitles, and compression all affect them. Visually inspect flagged spans and the character's screen-space bounding box; purposeful held emotional beats may be acceptable if intentional and varied.
- If the user says a transition stutters, inspect actual frames across that seam at a finer cadence. Check whether camera transforms reset, masks pause/cover the entire image, incoming/outgoing actor states mismatch, or rendering stalls. Fix the cause and rerender only affected preview segments.
- Present previews and disclose unresolved issues before final rendering. Proceed to full render only after clear approval of the preview/final render stage or if the user already explicitly approved that exact run.
7. Final render, audio mux, and delivery
- Render the final visual at the approved settings, using the complete timeline and the original song start offset. Keep an intermediate silent video only as a build artifact.
- Mux the user-provided original audio from the confirmed offset. Avoid altering the song unless requested. Match exact video duration; preserve intended fade behavior and avoid clipping.
- Verify with a media probe: video codec, dimensions, frame rate, frame count/duration, audio codec, sample rate/channels, and stream start/duration. Decode the complete final file to catch corruption. Inspect opening/title, several transitions, lyric-heavy scenes, high-emotion scenes, closing card, and end fade.
- Re-run the 0.5-second motion diagnostic on the final MP4. Report flagged spans and what was visually confirmed; do not claim all stillness is removed just because the metric changed.
- Deliver the MP4, self-contained HTML preview, storyboard, and analysis/QA notes as actual files/links. Clearly distinguish final outputs from previews, source code, diagnostic proxies, and intermediate renders.
Tool adaptation and failure handling
- Map these workflow operations to the host's real capabilities: file access, media probing, audio analysis/transcription, frame extraction, code editing, browser preview, renderer, muxer, and artifact delivery. Do not assume tool names or private plugin access.
- Prefer locally available FFmpeg/ffprobe and code-based Canvas/SVG/Pillow/OpenCV solutions for the default code-drawn style. If unavailable, state the specific missing step and propose an actual compatible alternative available to the host.
- Do not install packages, fetch external code, or upload user media without permission when that action is consequential. For a missing library, first check whether an already available tool can perform the needed job.
- If a long job runs asynchronously, report the actual task state and use its returned handle only; do not invent progress. If it fails, inspect the error and use a focused recovery path; do not repeatedly restart a full render.
- Never confuse a diagnostic proxy or local preview with the final MP4. Never overwrite a known-good prior output until the new output has passed verification.
References
Read only when needed:
references/storyboard-template.md— storyboard columns and transition continuity table.references/qa-checklist.md— detailed motion, seam, media, and delivery checks.evals/evals.json— realistic test prompts for checking a compatible agent's behavior.