vcut — Programmatic Video Production Skill
Use the globally linked vcut CLI (install from package root via npm install && npm link) to generate 1080p MP4 videos directly from declarative episode.json files + voiceover .mp3 + .srt.
Standard Production Workflow
- Check inputs:
- If the user provides an audio
.mp3and.srt, read the.srttimestamps first so every scenestartSec/endSeclocks to natural sentence boundaries. - If the user only provides a text script without audio, run
vcut tts script.txt -o ./audio(usesedge-ttsif installed, or macOSsayfor draft timing, or--engine cmdfor custom TTS).
- If the user provides an audio
- Design
episode.json:- Run
vcut catalogif you need to refresh the exact 9 scene block schemas. - Pick diverse scene types that match the spoken content (never repeat the same layout for 3 consecutive segments unless doing a deliberate numbered series like Tool 01/02/03).
- Keep text punchy (short titles, concise card copy); let the voiceover + SRT subtitles carry full sentences.
- Choose
meta.aspect:"9x16"for Douyin/Shorts/Reels (defaultspeed: 1.2for punchy retention),"16x9"for Bilibili/YouTube. - Choose
meta.theme:"obsidian-gold"(default tech luxury),"cyber-cyan"(developer/AI), or"editorial-light"(clean white magazine). - Populate
audio.subtitleHighlightswith 15–35 key terms/numbers from the script so subtitles automatically highlight them in gold. - Optional Flow / B-roll hybrid: pass
clipSrc: "./clips/xxx.mp4"or{ src, startFromSec, endAtSec, playbackRate, volume, muted, fit }in any scene'spropsto layer real video behind motion graphics (playbackRatedefaults to globalspeed). - Use
meta.durationPolicy("max"default,"strict"for CI/batch fail-fast,"audio", or"scenes") to avoid silent truncation.
- Run
- Validate & Visually Inspect:
- Run
vcut validate <episode.json>to verify schema and media paths. - Render 1–2 representative stills (
vcut render <episode.json> --still 600 -o /tmp/check.png) and inspect withread_fileto ensure zero text overflow before rendering the full MP4.
- Run
- Render Final 1080p MP4:
- Run
vcut render <episode.json> --aspect 9x16 --speed 1.2 -o out/video.mp4(or16x9). - Note:
vcutautomatically handles pitch-preservedffmpeg atempospeed scaling, frame calculation, SRT timestamp scaling, ambient BGM fade, and automatic frame-locked SFX cues. - Verify the resulting MP4 with
ffprobeand present a clickablefile://link.
- Run
9 Built-in Scene Blocks
type | Best Used For | Key props |
|---|---|---|
hero-switch | Opening hook: switching from old tool/habit to new one | badge, fromLabel, fromSub, toLabel, toSub, teaseText?, switchAtSec?, teaseAtSec? |
checklist-stamp | 3–4 step setup / checklist + impact stamp reveal | eyebrow, heading, items[{step,title,detail,checkAtSec}], stampText?, stampSub?, stampAtSec? |
myth-buster | Debunking 2 common misconceptions with red strike-through + punchline | priceBadge, heading, cards[2], strikeAtSec, verdictPrefix, verdictHighlight, verdictAtSec |
feature-spotlight | Deep-dive into a product/tool (chapter slate + 2×2 cards + optional wave/pills) | chapterNum, chapterTag, toolName, subtitle, accent?, showChapterSlate?, metaPill?, warningPill?, showAudioWave?, features[] |
ecosystem-map | Big-picture 3-floor architecture / multi-perk panoramic map | eyebrow, heading, markerLabel, foundationTitle, foundationSub, floors[{floor,title,sub,en,rooms[{id,name,en,badge,activateAtSec}]}] |
rolling-counter | Giant italic rolling number (price, revenue, multiplier, quota) + caption | eyebrow?, title, startValue?, endValue, decimals?, prefix?, unit?, caption?, captionAtSec?, subStats?, accent? |
bar-chart | Vertical or horizontal data comparison + highlighted bar + source footnote | eyebrow?, title, unit?, orientation?, items[{label,value,displayValue?,highlight?}], highlightAtSec?, calloutText?, footnote? |
quote-code | mode:"quote" gold manifesto board OR mode:"code" BEFORE vs AFTER terminal diff | mode:"quote": lines[], highlightLineIndex?, author?, source? / mode:"code": title, leftTitle, leftCode, rightTitle, rightCode, focusRightAtSec?, verdict? |
outro-cta | Double-line closing manifesto + pinned resource card + next-episode hook | line1, line2, ctaAtSec, pinBadge?, pinTitle, pinItems[], nextTitle, nextTopic, nextSub? |
Reference Example
See examples/gemini-pro-94s.episode.json in the vcut package for a complete production episode spec.