---
catalog_id: "R-025"
kind: "repo"
domain: "multimodal"
domain_label: "视频多模态 / Multimodal & Video"
date: "2026-11-27"
title: "Anil-matcha/Open-AI-Micro-Drama-Generator: FastAPI + Next.js 端到端短剧管线架构与反面教训"
verdict: "结构清晰但缺尾帧、接触表与硬门禁，实证微短剧连续性漂移"
summary: "剖析轻量端到端微短剧流水线（Idea -> Story -> Characters -> Scenes -> Shots -> Concat）的优雅结构分离与容错编排，同时实证缺少 Tail Frame、Contact Sheet 与校验门禁时的连续性漂移局限。"
summary_en: "FastAPI and Next.js micro-drama pipeline illustrating clean stage separation while demonstrating continuity drift without tail frames or QA gates."
canonical_url: "https://oumuatown.com/repos/anil-matcha-open-ai-micro-drama-generator/"
markdown_url: "https://oumuatown.com/repos/anil-matcha-open-ai-micro-drama-generator.md"
og_image_zh: "https://oumuatown.com/og/zh/R-025.png"
og_image_en: "https://oumuatown.com/og/en/R-025.png"
cite_count: 6
repo: "anil-matcha/open-ai-micro-drama-generator"
github_url: "https://github.com/anil-matcha/open-ai-micro-drama-generator"
commit: "94ef2a6"
tags:
  - "pipeline"
  - "fastapi"
  - "micro-drama"
  - "static-vs-dynamic"
  - "anti-pattern"
github_repos:
  - "https://github.com/anil-matcha/open-ai-micro-drama-generator/tree/94ef2a6"
---

# R-025 · Anil-matcha/Open-AI-Micro-Drama-Generator: FastAPI + Next.js 端到端短剧管线架构与反面教训

> **结论 / Verdict**: 结构清晰但缺尾帧、接触表与硬门禁，实证微短剧连续性漂移
> **EN Summary**: FastAPI and Next.js micro-drama pipeline illustrating clean stage separation while demonstrating continuity drift without tail frames or QA gates.

## Provenance & Evidence

- Primary Repository: https://github.com/anil-matcha/open-ai-micro-drama-generator (@94ef2a6)
- Verified Source Citations (#Lxx): 6
- Web Reader: https://oumuatown.com/repos/anil-matcha-open-ai-micro-drama-generator/

# Anil-matcha/Open-AI-Micro-Drama-Generator 源码解剖

- 仓库：[Anil-matcha/Open-AI-Micro-Drama-Generator](https://github.com/Anil-matcha/Open-AI-Micro-Drama-Generator)（commit `94ef2a6`）
- 主模式：[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. 工程骨架与可读亮点

这是一个非常轻量且清晰的 Python + Next.js 五阶段参考实现（`server/pipelines/idea2video.py#L14-L100`）：
1. **`Screenwriter` (`server/agents/screenwriter.py#L45-L100`)**：两段式 LLM 调用，先把 `idea` 展开成 prose 故事大纲，再拆分为 `2–4` 个 JSON 场次脚本。
2. **`CharacterExtractor` (`server/agents/character_extractor.py#L27-L70` & `interfaces/character.py#L4-L9`)**：**极具价值的数据建模习惯**——严格拆分：
   - `static_features`：跨全剧恒定特征（年龄、人种、发型、眼鼻特征、体型）；
   - `dynamic_features`：单场次可变装造（特定服装、护目镜、挂包等道具）。
3. **`Shot` 三栏最小原型 (`server/interfaces/shot.py#L5-L14`)**：每个镜头隔离 `visual_desc`（静态构图）、`motion_desc`（运镜与动作）、`audio_desc`（音效对白），与 `first_frame_url` / `video_url` 绑定。
4. **局部故障隔离编排 (`idea2video.py#L66-L94`)**：逐场 `try/except` 推进与进度回调，单场失败不阻断其余场次与最终 `ffmpeg` 拼接（仅当全军覆没才抛出 `All scenes failed to generate`）。

## 2. 为什么照搬这套「天真线性流水线」必然出破绽？

对比 `smixs`、`agbelemi`、`Soulmove` 的源码，可以清晰看到该参考实现的四个结构性缺口（恰恰对应用户对 Wave 1 样片的批评）：
1. **无首尾帧插值（仅有 `first_frame_url`）**：动作冲击、开门转身缺少 `last_frame` 或退出姿态约束，导致肢体失控或无法精准卡拍。
2. **无 Contact Sheet / Reference Plate 一致性锁定**：没有在生视频前通过多格图先审校人物比例与环境布局，直接逐镜单抽生图再转视频，角色穿帮和道具漂移概率指数级上升。
3. **缺机械化 Continuity / Text-Leak Linter**：LLM 返回什么 Prompt 就直接喂给底层生成器，没有阻断跨镜模糊回指、禁词、以及模型乱绘空字书页/空白手机的风险。
4. **缺戏剧弧线选型与节奏剪辑门禁**：`2–4` 场线性平铺，缺乏「三细节定律」「峰值硬切」「尾帧冗余截断」和真声轨道混音策略。

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

- **保留借鉴**：学习 `CharacterInScene` 的 `static_features` vs `dynamic_features` 双字段建模与 `idea2video.py` 单镜隔离失败不丢前序成果的工程韧性。
- **坚决升级**：在 `gflow-cli` 管线中**绝不直接跑「Text -> T2I -> I2V -> Concat」的简化单线**，而是保留 Contact Sheet / `@Reference` 先验与 `lint_storyboard.py` 预检门禁。

## 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 拦截烧积分前的短剧断层
