Communitygithub.com

docsor1212/skill-promo-video

Creates promotional short videos (16:9, 60-120s) with a full digital human voiceover and real case studies: all scenes have talking characters (audio-driven lip sync, dual-engine auto-decision – short segments H3 audio drive / long segments Wan2.2 S2V 720p), fully parameterized character outfits and case prompts (swap config to change persona/cases), Blender deterministic camera movement (push-in opening/pull-out closing, real chart panels), composition card text direct output (line-by-line checklist + OCR re-verification), real data chart pages, TTS narration, brand signature watermark, 3-step ffmpeg composition, and 5 QC gates (text stability/lip sync/hand count/AV alignment/FunASR dictation). The pipeline is templatized – swap the config to produce the same style of video for any skill. Use when the user says "make a promo video / promotional video / viral video / digital human video / voiceover explanation video for XX skill" or requests a showcase video reusing the digital human anchor style.

What is skill-promo-video?

This skill implements a complete pipeline for producing promotional short videos (16:9, 60-120 seconds) featuring a fully talking digital human presenter alongside real case study visuals. It is designed for AI agent users who need to create professional, repeatable promotional content for software skills or products. The core upgrade over static image-based generation is that all scenes include a talking character with audio-driven lip sync, using a dual-engine decision system: short voiceover segments (<5.1s) use the H3-TALK engine for audio-driven video generation, while longer segments use Wan2.2 S2V 720p for subject-driven video generation. Character outfits, scene backgrounds, and all 9 case studies are fully parameterized via a single JSON config file, allowing complete persona and case swapping without code changes. The pipeline runs entirely locally, requiring a GPU with at least 24GB VRAM, local inference services for image generation (e.g., Qwen-Image), digital human video (H3/S2V), TTS, and Blender 4.x. It enforces rigorous quality control through five built-in gates (text stability, lip sync, hand finger count, audio-video alignment, and FunASR full-track dictation) and includes deterministic Blender camera moves, real chart rendering, and a 3-step ffmpeg composition process. The skill is templatized so that changing the config file alone produces a consistent style of video for any target skill or product.

Works with~Claude Code~Codex CLI~Cursor
npx skills add docsor1212/skill-promo-video

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

skill-promo-video — Digital Human Full Voiceover Promo Video Pipeline v2 (Fully Alive)

Transforms the selling points of a skill/product into a promotional video featuring a fully talking digital human + real case studies. v2 substantive upgrades over the static image-text version: All scenes have characters speaking (audio-driven lip sync), character outfits and cases fully parameterized, Blender deterministic camera moves, built-in QC gates.

1. Final Video Structure (Fixed Narrative Skeleton)

Blender opening camera move (data corridor push-in, ≈4.5s, optional)
→ Digital human opening voiceover (≤5s, H3 audio-driven)
→ 9×[Composition card (character explains the graphic type, H3-TALK + text stability gate)
     → Graphic page (number + title + real chart + source footnote 5.0s)]
→ Digital human closing voiceover
→ Achievement card (endorsement data)
→ Blender closing camera move (pull-out overview + brand panel, optional)
→ End card (big golden quote + installation guide)
Throughout: signature watermark top-right + bottom ASS subtitles + BGM (instrumental only, must pass solo listening test) + voiceover

2. Execution Flow (12 Steps; ⛔ Disciplines in parentheses, detailed in references/pipeline.md)

  1. Planning: 2 core selling points + 3-4 hard endorsements (ratings/downloads via API live test, rank scope confirmed with user)
  2. Data Engineering: Close to target user domain; prefer real public datasets (source footnotes truthfully labeled)
  3. Chart Rendering: Target product's chart engine (matplotlib stack) 150dpi/16:9 (Forest=HR quantitative; Volcano=constructive three-belt; Composite=short labels)
  4. Character Assets: User-provided character card/headshot; PE reference image key images.image_1 with dot nesting + TE connected to vae; Outfit change = config character.costume one line (positive description, cfg=1 negative has no effect)
  5. Composition Card / Voiceover First Frame: gen_scene_cards.py (layout=card|talker); PE direct text output (⛔ zero PIL patching); append line-by-line checklist at prompt end; character-by-character OCR re-verification on resulting image
  6. Graphic Page Layout: Only compose layout after all base images are finalized (⛔ root cause of old images mixed in twice)
  7. Voiceover Segment: talking_segment.py dual-engine decision (≤5.1s→H3-TALK; >5.1s→S2V 720p; no voiceover→H3-I2V micro-motion; engine decision tree references/digital-human.md); ⛔output segments always strip audio track with -an; ⛔r2v reference generation has been disproven, only use first frame
  8. Camera Move Segment (optional): blender_scene.py headless Cycles data corridor two shots; ⛔ EEVEE headless black frame risk; if not passing validation, degrade to static frame + zoompan, do not force it; (optional) style_transfer.py stylized redraw of basic model
  9. TTS: tts_batch.py (⛔ remove question marks from text; ⛔ verify each wav mtime+size to prevent fake OK from GPU OOM)
  10. Watermark: make_watermark.py signature methodology (version number not in watermark)
  11. Three-Step Composition: compose_3step.py (video chain → audio track → merge; ⛔ forbid single giant chain; unique temp directory only; ASS all 10 fields)
  12. QC & Delivery: qc_gates.py text/lips/hands/av + FunASR full-track dictation (⛔ must run after final assets) + full-video frame-by-frame visual inspection + ffprobe single video stream verification

3. Environment Requirements (Boundaries & Limitations)

  • Requires local GPU (≥24GB VRAM practical) and local inference services: Image generation (Qwen-Image family, port configurable, default 127.0.0.1:8190), digital human video (H3/S2V model stack, default 8189/8188), local TTS, Blender 4.x+, ffmpeg.
  • Models are obtained from their respective official release pages; the skill package does not contain any model weights or character assets.
  • First time use: run each script with --help to check parameters; talking_segment.py automatically does node name and model-on-disk pre-check before submission (model filenames have built-in defaults; if names differ, change constants at script top or specify via parameters).
  • Python dependencies only Pillow and numpy (for QC gates); also requires ffmpeg/ffprobe and curl command line; watermark/subtitles require Noto CJK font (default paths in make_watermark.py/compose_3step.py, configurable).
  • Dictation gate (FunASR class) is an external command interface (qc_gates.py asr --gate-cmd); dictation implementation must be provided by user; without dictation implementation, manually listen to replace that gate.
  • No GPU / no inference services: skip voiceover and camera move segments, degrade to static image-text video (voiceover/TTS also rely on local compute; no TTS → silent + subtitle delivery; other steps unchanged).
  • Single GPU memory mutual exclusion: Image generation TE/H3/S2V/TTS strictly no concurrency, switch serially via kill→free→load.

4. Safety & Behavior Statement

  • Entire pipeline runs locally: external connections only to localhost loopback user-built inference services (HTTP); subprocesses only local ffmpeg/ffprobe/Blender/curl/user local TTS; does not access any remote services, no telemetry, no data upload.
  • Runs on-demand, single execution; no background daemon, no scheduled tasks, does not install dependencies (dependencies deployed by user per "Environment Requirements").
  • Outputs written to user-specified output directory; QC frame extraction and submission payload use system temp directory (unique temp directory, discarded after use); character reference images and final video do not leave the local machine.
  • Please only use character reference images you have the right to use (portrait license self-audited).

5. Parameterization (Swap Config = Swap Video)

references/config-template.json (valid JSON) drives the character and nine cases for composition cards / voiceover first frame; all other segments derive from it as single source of truth: character identity anchor + outfit (costume change), scene background, 9 cases (title / full prompt / chart command / source footnote / voiceover / subtitle), endorsement copy, watermark brand, Blender parameters. Voiceover discipline: declarative sentences (no question marks – TTS silent failure); voiceover segment ≤5s (H3 single clip window); ≤ duration of its segment.

6. Dual Engine Quick Reference

VoiceoverEngineParameters
≤5.1sH3-TALK (ref2va)1344×768@24fps, 8 steps, INT8
>5.1sS2V 720p1280×720@16fps, 4n+1 frames, Lightning 4 steps (cfg=1 negative has no effect)
No voiceoverH3-I2VStrict first-frame micro-motion

Related Skills