Demo videos with dvk
dvk turns a storyboard into an MP4. It synthesizes the narration first, records each scene to fit it, and adds captions, transitions, 9:16 and 1:1 cuts, a thumbnail, a GIF and chapters. It then checks the result for secrets and for expected text. Repo: https://github.com/sysilion/demo-video-kit
Setup (once)
command -v dvk || (git clone https://github.com/sysilion/demo-video-kit ~/demo-video-kit && cd ~/demo-video-kit \
&& npm install && npx playwright install chromium && npm link)
dvk doctor # needs ffmpeg; optional: brew install tesseract tesseract-lang uv vhs
Workflow
-
Understand the product. Read its README and landing page, or the app itself. Decide which 3 to 5 things the video should prove. One idea per scene.
-
Scaffold. Run
dvk init <dir> [--lang ko] [--style clean], then edit<dir>/storyboard.yaml. Use references/storyboard-cheatsheet.md for the syntax.- Use real UI: a
browserscene withurlandactions, plus aterminalscene whose steps really run (vhs: truegives a real terminal). - Make every build start from the same state with
setup:andteardown:: start the app (start:+wait:health URL), reset or seed data (run:,http:), and generate fixtures (creates:skips work that is already done). - Shape: hook or title card, then the core demo scene (
priority: 9,required: true), then 1 to 3 supporting scenes, then an outro card with the URL. - Write narration as short spoken sentences, one claim each. Use
cue: nso actions happen as the line is spoken. Mark the money shot withkey: true. - Add
pronounce:for acronyms and domains. Put secrets inmask:, banned words incheck.forbid, and must-see text incheck.expect.
- Use real UI: a
-
Choose voice, style and length. Use the "which style when" table in references/voices-styles-length.md:
style use it for clean/dev/promo/tutorial/shortsSaaS demos / devtools / launches / how-tos / plain 9:16 dev-explainer-krfast, funny Korean dev explainers: keyword pops, highlighter, punchlines, SFX whiteboardconcept and architecture explainers; diagrams draw themselves keynoteproduct reveals: big quiet type, slow fades, centred shots news-briefchangelogs and release notes: headline bar, ticker retro-terminalfun CLI tools: CRT green, scanlines, typewriter meme-shortsmeme-y vertical cuts: top bar, outlined captions, zoom punches The newer styles add scene types and props. Use
diagram(boxes and arrows revealed per cue) for "how it works",punchline(one big line plus a pause) for a joke,pops:for 2–6-character keyword pop-ups or emoji reactions, andfocus: [{lines, mark: token}]to highlight code. For casual Korean narration, follow references/narration-casual-ko.md. Motion is handled by the style; references/motion-rules.md has the rules for any customhtml:. -
Dry run.
dvk check --dry-runruns every browser action in seconds. It fails with the scene, the step and the selector for a missing element, a failed navigation or a console error. Fix these first.dvk buildalso runs it. -
Review sheet, then fix, before the full render. Run
dvk review [--style X] [--duration N](seconds, no TTS playback). Open eachreview-N.pngit prints and look at it. For every scene it shows the first frame after the cut, the key frame and the last frame before the next cut, plus 9:16 and 1:1 mock-ups with the TikTok, Reels and Shorts UI areas in red. Check for:- empty or half-loaded screens, a wrong page, or a key frame that doesn't show the point of its narration
- UI text too small to read at 1080p (fix with
zoomPage: 1.3), and highlights or zooms on the wrong element - jarring cuts: two very different frames side by side with no reason
- text, highlights or captions under the red safe zones (move them, change
fit/focus, or narrowplatforms:) - estimated timing that runs too long or too short
Fix the storyboard and re-run
dvk reviewuntil the sheet is clean. Only then render. -
Preview fast if motion needs checking:
dvk preview <scene-id>renders at half resolution. -
Build. Run
dvk build [--lang all] [--style X] [--duration 30 | --variants 15,30,60]. The order is: pre-flight, then narration, then recording, then assembly, then the check. Outputs go toout/<name>/<lang>[-style][-Ns]/:<name>.mp4,-9x16.mp4,-1x1.mp4,.srt/.vtt,.thumbnail.png,.preview.gif,.chapters.txt,report.json. -
Check. The build fails on a secret, a forbidden word, missing expected text, or text or captions inside a short-form safe zone. To re-run the check alone:
dvk check. Never ship a video that failed the check. -
Report. Give the absolute paths of the MP4s and the review sheet, the per-scene table and the total from the build log, and anything in
report.jsonunderlength.notesorsafeZones.
Iterating
- Narration finishes before the actions do, leaving long silence: add narration, or use
pause:less. Actions are cut off: add acue:or a later line. - Wrong word sounds: add a
pronounce:entry, or give the line as{text: ..., say: ...}. - The page is too small at 1080p: set
zoomPage: 1.4on the scene. To focus on a detail:zoom: "#selector"and laterzoom: out. - A selector isn't found:
dvk check --dry-runnames the scene, step and selector. Usetext=Visible label,{role: tab, name: "/Chat/"}, oroptional: truefor elements that only sometimes appear. - Screens differ between builds: move the state into
setup:(fresh DB, seed calls), so the pre-flight, the review and the build each start from scratch. - Real terminal:
brew install vhs, then setvhs: trueon terminal scenes. It falls back to the HTML terminal when vhs is missing. - edge-tts is offline: the build falls back to macOS
sayfor the whole video. Rebuild when the network is back. TTS is cached in.dvk-cache/. - OCR misses Korean text:
brew install tesseract-lang. Page text is checked even without OCR.