360 Secure SkillHub
360 安全技能中心

Scene Video Pipeline

核心功能:通过Playwright渲染幻灯片、Kokoro生成场景旁白音频,制作单场景视频片段,再按可编辑的场景顺序文件拼接成最终视频。支持局部修改后快速重剪,无需全量重新生成。适用于需频繁调整叙事顺序或局部内容的视频制作场景,输入为幻灯片源、旁白文本清单,输出为单场景片段、最终视频及场景配置文件。

nissan
nissan
热度 33.58
最近更新 2026-05-22 00:56:09
分类:创作依赖:代码执行 / 读写文件 / 联网浏览搜索应用场景:视频编辑 / 工作流 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add scene-video-pipeline
Metadata
name
scene-video-pipeline
version
1.0.0
description
Produce modular scene-based videos from slide deck source and per-scene narration audio (text manifest + Kokoro). Includes Playwright slide rendering, per-scene clip generation, and final stitch via editable order file for easy reordering/splicing without full rerender.
metadata
{"openclaw":{"emoji":"🎬","requires":{"bins":["ffmpeg","ffprobe","node"],"env":[]},"primaryEnv":"/Users/loki/.kokoro-venv/bin/python3","network":{"outbound":true,"reason":"Only needed on first Kokoro run if model weights are not cached. Rendering/stitching is local."}}}

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

  1. Draft deck source (slides/deck.html) and scripts.
  2. Render slide PNGs via Playwright.
  3. Generate audio from manifest.
  4. Build scene clips.
  5. QA scene-by-scene.
  6. Adjust scene-order.txt for narrative edits.
  7. 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.sh
  • scripts/build_scenes.sh
  • scripts/stitch_scenes.sh