---
catalog_id: "R-081"
kind: "repo"
domain: "multimodal"
domain_label: "视频多模态 / Multimodal & Video"
date: "2026-11-27"
title: "Soulmove/ai-video-prompt-studio: 中文微短剧 JSON Schema 导演合约、六部位表演与防拖尾裁切引擎"
verdict: "JSON合约锁死六部位微表演与五维连续性，留缓冲防拖尾"
summary: "用严格 JSON Schema（ai-contract.mjs）约束 Gemini 生成影视级中文分镜：拆解 0.5s 镜内时间轴、六部位微表演、五维连续性锁、108 种后期转场与首尾缓冲防拖尾策略。"
summary_en: "Enforces Gemini Chinese micro-drama storyboards via strict ai-contract.mjs JSON Schema covering 0.5s beats, 6-part acting, and buffer trimming."
canonical_url: "https://oumuatown.com/repos/soulmove-ai-video-prompt-studio/"
markdown_url: "https://oumuatown.com/repos/soulmove-ai-video-prompt-studio.md"
og_image_zh: "https://oumuatown.com/og/zh/R-081.png"
og_image_en: "https://oumuatown.com/og/en/R-081.png"
cite_count: 16
repo: "soulmove/ai-video-prompt-studio"
github_url: "https://github.com/soulmove/ai-video-prompt-studio"
commit: "fb3cf23"
tags:
  - "short-drama"
  - "json-schema"
  - "acting"
  - "continuity"
  - "gemini"
github_repos:
  - "https://github.com/soulmove/ai-video-prompt-studio/tree/fb3cf23"
  - "https://github.com/zenstory-ai/drama-skills/tree/9d5406f"
---

# R-081 · Soulmove/ai-video-prompt-studio: 中文微短剧 JSON Schema 导演合约、六部位表演与防拖尾裁切引擎

> **结论 / Verdict**: JSON合约锁死六部位微表演与五维连续性，留缓冲防拖尾
> **EN Summary**: Enforces Gemini Chinese micro-drama storyboards via strict ai-contract.mjs JSON Schema covering 0.5s beats, 6-part acting, and buffer trimming.

## Provenance & Evidence

- Primary Repository: https://github.com/soulmove/ai-video-prompt-studio (@fb3cf23)
- Referenced Repository: https://github.com/zenstory-ai/drama-skills/tree/9d5406f
- Verified Source Citations (#Lxx): 16
- Web Reader: https://oumuatown.com/repos/soulmove-ai-video-prompt-studio/

# Soulmove/ai-video-prompt-studio 源码解剖

- 仓库：[Soulmove/ai-video-prompt-studio](https://github.com/Soulmove/ai-video-prompt-studio)（commit `fb3cf23`）
- 主模式：[AI 短剧分镜规范与 Veo/Flow 连续性工程](../patterns/ai-short-drama-storyboard-and-veo-continuity.md)
- 综合研究：[Google Flow / Veo 电影级分镜与 AI 短剧工业化工作流](../articles/2026-11-27-google-flow-veo-storyboard-filmmaking.md)

## 1. 架构亮点：把中文短剧导演规律编译进 JSON Schema

与其他纯靠长篇大论 System Prompt 的项目不同，`dist/ai-contract.mjs#L13-L61`、`dist/ai-planner.mjs` 与 `dist/google-provider.mjs#L23-L45` 把分镜结构死锁在 `additionalProperties: false` 的严格 `responseJsonSchema` 内，让大模型必须逐字段交付可执行的影视摄影参数，而非散文化概览。

## 2. 核心源码拆解

### 2.1 镜内微表演与五维连续性锁定 (`dist/ai-contract.mjs#L17-L24` & `dist/google-provider.mjs#L27-L37`)

每条 `shot` 强制包含三大硬模块：
- **`acting` 六部位解构（`#L17`）**：`eyes`（眼神转变）、`brows`、`lips`、`breathing`（呼吸停顿）、`head`（头部微动）、`posture`（肩背姿态）——把「冷漠」「震撼」逼迫成面部肌群运动。
- **`continuitySpec` 五维锁定（`#L18`）**：`character`、`prop`、`space`、`lighting`、`action` 五项逐镜建账。
- **`segments` 镜内 0.5s 时间轴（`#L20, #L50`）**：完整覆盖 `0..duration` 秒；且 `normalizePlan` 源码第 50 行做了机械拦截：当 `camera.move !== 'fixed'` 时，自动把 `segments.cameraBeat` 里误写的「固定机位」清洗为「起幅稳住构图」，消除提示词自相矛盾。
- **`spatial` 竖屏坐标系禁令（`google-provider.mjs#L29`）**：9:16 项目严禁「横幅构图」，明确人物相对方位与视线落点，并严格禁止无动机直视镜头（Anti camera-gaze）。

### 2.2 摄影物理移动 vs 光学变焦、后期剪辑 vs 镜内运镜 (`google-provider.mjs#L30-L31`)

- **物理位移与光学变焦严格分离**：`Dolly push / pull` 时 `zoom` 必须为 `none`；明确 `moveDistance` / `speed` / `stability`。
- **剪辑转场与镜内运镜物理隔离（`transitionSpec`）**：`cut` / `continuous` 强制 `duration = 0`，禁止在零时长拼接口描写「机位平滑推进」，杜绝 LLM 把剪辑过渡动作误喂给视频生成模型。

### 2.3 对白语速与多模态音频时标对齐 (`ai-contract.mjs#L46-L51` & `google-provider.mjs#L33`)

- `soundCues` 按 `ambience / sfx / music / dialogue / foley` 精确到 `0.1s`；
- `dialogueStart..dialogueEnd` 必须在当前镜头 `duration` 范围内且强制控制中文台词在 **每秒 3–4 字**，配合 `voiceType: 'in' | 'off' | 'vo'` 明确口型是否张开。

### 2.4 生成缓冲截尾（Tail-Drift Avoidance） (`dist/ai-planner.mjs` & `dist/video-core.mjs#L1-L7`)

- 在规划层面分离逻辑时长（`duration`）与生成请求时长（`generationDuration = duration + 2`，`trimOut = duration + 1`），预留结尾冗余帧并在硬切前切掉，规避 AI 视频普遍存在的尾秒惯性漂移与诡异回弹。
- 在状态机层面严格隔离局部计划与外部成片（`video-core.mjs#L5-L7`：`origin: 'local-plan', status: 'draft'` 禁止伪装为已提交生成任务）。

### 2.5 本土题材视觉与选角词表 (`dist/ai-brief.mjs#L3-L100`)

自带 29 种 `AI_VISUALS`（含 `real` 零CG市井现实、`hk_retro`、`period_republic`、`short_drama`）、23 种 `AI_TEXTURES` 与 19 档 `AI_CAST_NATIONALITIES`，明确用「市井普通人 / 保留毛孔与法令纹 / 自然生活痕迹」反制网红假脸滤镜（`ai-contract.mjs#L63-L64`）。

## 3. 对我们项目的启发

- **完全对齐 Wave 1 教训**：`generationDuration` 留余量提前切出，正是破解 `T2` 肢体末帧拖泥带水的直接工程手段；`soundCues` 按 `0.1s` 分轨配合中文 3–4 字/秒控制，可以直接喂给我们的 `yiji-voice-clone` + FFmpeg 混音层。
- **可直接移植字段**：在 `flow-short-drama` 的单镜 Schema 与 `lint_storyboard.py` 中引入 `spatial`（9:16 + 禁直视）、`entry_state / exit_state`、`trim_window` 及物理位移与 `zoom` 互斥校验。

## Cross-Referenced Specimens

- [A-012 · Google Flow / Veo 电影级分镜、连续性控制与 AI 短剧开源生态深度拆解](https://oumuatown.com/articles/2026-11-27-google-flow-veo-storyboard-filmmaking.md) — 破解 Flow/Veo 串图无叙事与首尾帧僵死的工程解
- [P-007 · AI 短剧分镜规范与 Google Flow / Veo 连续性工程](https://oumuatown.com/patterns/ai-short-drama-storyboard-and-veo-continuity.md) — 以物件流转与机械 Linter 拦截烧积分前的短剧断层
- [R-124 · zenstory-ai/drama-skills](https://oumuatown.com/repos/zenstory-ai__drama-skills.md) — 五真源配付费哈希门跑12短剧技能，暂缺Veo与可灵
