Scene Video Pipeline
Use this skill when you need movie-style modular production:
- per-scene narration
- per-scene rendered clips
- final assembly from an order file
This allows quick cut/splice/reorder/insert changes without regenerating the whole video.
Directory Contract
<module_dir>/
slides/deck.html
slides/01.png ...
tts/
manifest.csv
audio/01.mp3 ...
dist/
scenes/01.mp4 ...
scene-order.txt
module-first-cut.mp4
Commands
1) Render slides from deck source (Playwright)
# project helper wrapper (solana-academy)
projects/solana-academy/content-production/scripts/render-slides.sh <module_dir>
2) Generate narration audio (Kokoro local)
scripts/generate_tts_kokoro.sh <module_dir> [voice] [speed]
3) Build per-scene clips
scripts/build_scenes.sh <module_dir>
4) Stitch final from ordered scene list
scripts/stitch_scenes.sh <module_dir> [order_file]
Workflow
- Draft deck source (
slides/deck.html) and scripts. - Render slide PNGs via Playwright.
- Generate audio from manifest.
- Build scene clips.
- QA scene-by-scene.
- Adjust
scene-order.txtfor narrative edits. - Stitch final cut.
Notes
- Keep scene filenames zero-padded (
01.mp4,02.mp4) to preserve stable sorting. - For reorder-only edits, rerun stitch only.
- For a single content fix, rerender only the affected scene clip and restitch.
Files
scripts/generate_tts_kokoro.shscripts/build_scenes.shscripts/stitch_scenes.sh
