ffmpeg-pipelinelisted
Install: claude install-skill cxin21/comfyui-chenxin
# FFmpeg Pipeline — AI 漫剧 Stage 5 (v1.1, ported)
> **Plugin path**: `skills/ffmpeg-pipeline/SKILL.md`
> **Upstream**: L5 application skill. Stage 5 of the manga pipeline. Although ffmpeg itself
> is model-agnostic (no ComfyUI involved), the `chenxin-core` L4 mega-skill should still be
> consulted upstream so the final output preserves any VRAM-tier codec choices made in
> Stage 4 (e.g. Q4 GGUF outputs may need re-encode before concat).
## 1. 任务
接收 Stage 4 输出(mp4 视频+音频)和 Stage 3 对话文本,生成**最终带字幕的连续视频 final.mp4**。
**纯 ffmpeg CLI** + Bash,**零 MCP 依赖**,**零 ComfyUI** 调用。
## 2. 4 步流水线
```
Stage 4 输出
├─ 04_outputs/02_micro_motion/scene_NN.mp4
└─ 03_storyboard/03_prompts/scene_NN.md (含 dialogue)
↓
bash scripts/bootstrap.sh --project-root <path> --stage manga-stage-3-review
↓
┌─────────────────────────────────────────┐
│ Step 1: concat-list ← 拼接 scene 列表 │
│ Step 2: subtitles.srt ← 从 dialogue 生成 SRT │
│ Step 3: burn-subs ← 字幕烧入(可选)│
│ Step 4: concat + finalize │
└─────────────────────────────────────────┘
↓
04_outputs/05_final/
├── final.mp4
├── final_with_subs.mp4
├── subtitles.srt
└── manifest.json
```
## 3. 输入参数
| 参数 | 必需 | 默认 | 说明 |
|------|------|------|------|
| `--project-root` | ✅ | - | 项目根 |
| `--burn-subs` | ❌ | false | 是否烧入字幕 |
| `--subtitle-style` | ❌ | anime | `anime` / `plain` / `cinematic` |
| `--font` | ❌ | Microsoft YaHei | 中文字体名 |
| `--font-size` | ❌