Communitygithub.com

video-to-mannequin

将任意真人、多人舞蹈或卡通参考视频拆解并转换为高质感 3D 标准白模 / 多人红白模动作母版视频(含精确向上取整时长、标准睁眼眼神复刻、防内容审核误判着装策略、字幕水印净化与无损原音轨合回),并同步输出阶段 2 白模二创转绘提示词。适用于 Seedance 2.0 / 2.5 / 2.5 Flash、即梦、Renoise、ChatCut 等视频生成与参考编辑工作流;当用户要求制作白模视频、红白模视频、绿幕动作母版、去人物保留动作或白模转绘提示词时使用。

video-to-mannequin 是什么?

video-to-mannequin is a Claude Code agent skill that 将任意真人、多人舞蹈或卡通参考视频拆解并转换为高质感 3D 标准白模 / 多人红白模动作母版视频(含精确向上取整时长、标准睁眼眼神复刻、防内容审核误判着装策略、字幕水印净化与无损原音轨合回),并同步输出阶段 2 白模二创转绘提示词。适用于 Seedance 2.0 / 2.5 / 2.5 Flash、即梦、Renoise、ChatCut 等视频生成与参考编辑工作流;当用户要求制作白模视频、红白模视频、绿幕动作母版、去人物保留动作或白模转绘提示词时使用。.

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/gnipbao/video-to-mannequin/tree/HEAD

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Video to Mannequin (Standard White / Red-White Action Master Workflow)

Converts any reference video (solo, multi-person entering frame in waves, or non-human cartoon characters) into a clean, reusable 3D matte plaster/clay white or red-white mannequin action master video, with accompanying Stage 2 restyle prompts for character and background replacement.

When to Trigger

  • User provides a video and asks to "convert to white mannequin", "make a white mannequin video", "generate a red-white mannequin", "extract a green screen action master", or "strip characters and background while retaining only action and gaze"
  • User requests white mannequin restyle prompts or direct tool calls to produce the final video for Seedance 2.0 / 2.5 / 2.5 Flash, Jimeng, Renoise, ChatCut
  • User wants to use white / red-white mannequin masters for solo or multi-person restyling without character cross-contamination

Core Workflow (5-Step Closed Loop)

Step 1: Video Probe and Frame-by-Frame Decomposition (Must Be Based on Real Frame Evidence)

Run the inspection script to extract metadata and thumbnail grid—do not guess the number of people, positions, or entry times:

python3 scripts/inspect_video.py "<source_video_path>" --out "<work_dir>"

Must confirm and record the following 6 facts:

  1. Aspect Ratio and Resolution: Map to target platform ratio (e.g. 16:9, 9:16, 1:1, 3:4, 4:3).
  2. Ceil Duration Rule:
    • Calculate target_duration = ceil(source_duration) (e.g. 13.57s → 14s, 9.73s → 10s).
    • Do not use auto-edit durations that round down by 1 second; explicitly declare in the prompt's final paragraph: "source_duration ~ target_duration play the end beat fully and naturally hold with micro-breath finish".
  3. Number of Characters and Entry/Exit Timing: Precisely record all character counts, batch entry timestamps (e.g. 0.00-1.70s 2 people → 1.70-2.35s 3rd person slides in…), and final formation order.
  4. Center Position and Body Type Decision:
    • Solo → Pure white mannequin.
    • Multi-person with an obvious center / protagonist → Red-white mannequin (center pure red + rest pure white), locking the core visual focus and anti-cross-contamination anchor.
    • Multi-person without hierarchy (equal group dance) → Multi-person pure white mannequin (lock identities left to right by formation).
    • Non-human / cartoon protagonist → Default to standard 3D realistic proportion human white mannequin (unless user explicitly requests retaining cartoon body proportions).
  5. Prop and Effect Classification:
    • Default clean body: Completely strip hair, hair accessories, small headbands, wide sleeves, skirts, lace, etc. (do not unnecessarily retain or enlarge ribbons).
    • Notable characteristic props (only keep on demand): Only when the frame contains core props strongly tied to the action (e.g. long dance silk, folding fan, weapon) and the user needs them, model them in monochrome white/red at original size and attachment position—do not elongate or rehang on arms.
    • Additional environmental/energy effects (fire, smoke, light effects, particles): Do not mannequinize; either retain naturally or remove with the background.
  6. Interference Item Inventory: List all items to be removed: top subtitles, emojis, stickers, corner @ watermarks, glitch artifacts, and costume change flicker frames.

Step 2: Define Visual Standard and Content Review Safety Specification

Default to the empirically validated "Standard 3D Clay Open-Eye Mannequin + Basic T-shirt and Trousers + Green Screen" specification (see references/stage1-prompt-templates.md for details):

DimensionDefault Standard (Proven High Approval & High Fidelity)Optional Variant
Body StructureSmooth, continuous 3D realistic proportion matte plaster/clay human body (no mechanical ball joints), bald head, no skin tone, no eyebrows, blush, or makeup3D ball-jointed doll body (featureless egg-shaped head, extreme content review safety net)
Eyes and GazeBoth eyes naturally and clearly open (no unnecessary closed/squinting eyes), white sclera + dark grey-black clear pupil and iris + sharp upper eyelid contour line, precisely recreating gaze direction, blinks, and contrast expressions between half-lidded and wide-openCompletely smooth egg-shaped head with no facial features (for pure silhouette action master scenes)
Standard ClothingClearly cut, sharply creased monochrome matte crew-neck short-sleeve T-shirt + fitted trousers (completely avoids content review misidentifying same-color tight tank top and shorts as nudity!)Male/female base layer set (ensure clear collar and cuff boundaries are retained)
Background & LightingUniform flat, textureless, green-spill-free standard matte green screen seamless studio (Matte Studio Chroma Key Green) + soft studio diffuse key light and delicate AOClean seamless light grey white studio (Clean Matte Light-Grey Cyclorama)
Audio StrategyModel-side silent generation (audioGeneration: false) + local FFmpeg lossless original audio remuxFor web platform royalty-free voice material, can retain model audio directly

More pitfalls and avoidance details (content review blocking, squinting to open eyes, obstruction edge exposure before 1s, runaway ribbon elongation, etc.) see references/troubleshooting-and-safety.md.


Step 3: Dual-Stage Prompt Output (Must Deliver as a Pair Each Time)

Regardless of whether the user directly calls the model to generate video, always output the following two ready-to-use prompts as a pair:

  1. Stage 1 Prompt (original video → mannequin / red-white mannequin master):
    • Assemble according to references/stage1-prompt-templates.md, including: precise segmented timestamps, standard open-eye gaze specification, content-review-safe T-shirt and trousers specification, interference item removal list, and the ceil(duration) ending segment.
    • If for the user to manually paste into Jimeng / Seedance / other platforms, use the generic reference @video1 uniformly; if submitting directly via Renoise MCP, replace with actual @material:<id>.
  2. Stage 2 Prompt (mannequin / red-white mannequin master → restyled character and background):
    • Automatically match the current person count mode (solo / multi-person red-white center lock / multi-person all white) according to references/stage2-restyle-templates.md, with material responsibility separation and anti-cross-contamination rules.

Step 4: Execute Generation and Frame-by-Frame Quality Check (When Environment Has Video Generation Tools)

When the user requests direct generation (e.g. via Renoise / ChatCut or other MCP tools):

  1. First validate with a fast, low-cost tier: Preferred first choice: Seedance 2.5 Flash (480p, duration = ceil(source_duration), explicit original aspect ratio, audioGeneration: false).
  2. Quote and confirm before billing: First call the cost estimation tool, show the user the estimated credits and current balance, and only submit the task after explicit confirmation.
  3. Download finished video and perform multi-timepoint frame sampling acceptance:
    • Check that actual duration >= source_duration and no abnormal truncation.
    • Sample frames at key nodes (at minimum covering start, each entry/expression change point, and end) + close-up head shots, human/visual verification:
      • Eyes clearly open and gaze direction correct (no misjudged squinting)
      • Character count, entry timing, and red-white color locked throughout (no color cross-contamination, no obstruction edge exposure before scheduled entry)
      • Original subtitles, watermarks, glitch artifacts, and residual ribbons/clothing ghosts completely removed
      • If blocked by content review, refer to references/troubleshooting-and-safety.md to pinpoint and fix, then ask user to confirm and rerun.

Step 5: Lossless Original Audio Remux (Default Delivery of Two Versions)

If the source video contains a valid audio track, immediately after generating the silent mannequin video, execute the lossless remux script (0 credits, no re-encode loss, completely avoids AI audio redraw pitch issues or music copyright blocking):

bash scripts/mux_original_audio.sh "<silent_mannequin.mp4>" "<source_video.mp4>" "<output_with_audio.mp4>"

Finally, deliver both versions to the user:

  • Finished video with original audio (*_with_audio.mp4, for direct viewing, acceptance, and publishing)
  • Pure silent master (*.mp4, convenient for directly feeding into the next white mannequin restyle workflow)

References and Examples

相关技能