Show HN: AI 漫画生成器 – 将脚本转化为本地动画视频

1作者: twwch5 个月前
我构建了一个可自托管的管道,它接受剧本(或一个想法)并生成完成的动画视频——无需编码,无需订阅SaaS服务。 该管道流程: 1. 编写或使用AI生成脚本 2. 提取角色 → 生成周转参考图(用于视觉一致性) 3. 将脚本拆分成镜头,包含镜头方向和动作描述 4. 生成关键帧(每个镜头的首帧 + 尾帧),并进行连续性链式处理 5. 将每个镜头插值成视频片段 6. 使用FFmpeg拼接所有内容,并添加字幕 每个阶段都可以单独或批量触发,因此您可以完全掌控。 技术栈: * Next.js 16 App Router + SQLite(自包含,零基础设施) * 自带密钥:OpenAI、Gemini或Seedance,用于文本/图像/视频 * Docker一键部署:docker run -p 3000:3000 -v ./data:/app/data twwch/aicomicbuilder:latest * 无需账户——浏览器指纹(UA/屏幕/时区的SHA-256哈希值)作为用户身份标识,因此多个人可以共享一个实例,并实现完全的数据隔离 构建原因:现有的视频生成工具要么是单镜头(一个提示词 → 一个片段),要么是完全不透明的管道。我想要一个能够展示每个步骤的工具,这样我就可以迭代提示词,在中途更换模型,并了解实际发生了什么。 最难的部分是连续性链——镜头N的最后一帧成为镜头N+1的第一帧,这使得角色在剪辑中保持视觉一致性,而无需进行微调。 GitHub:https://github.com/twwch/AIComicBuilder 演示视频在README中。欢迎对管道设计提出反馈,以及指纹认证方式的权衡是否适用于此用例。
查看原文
I built a self-hostable pipeline that takes a screenplay (or a one-line idea) and produces a finished animated video — no coding required, no SaaS subscription.<p><pre><code> The pipeline: 1. Write or AI-generate a script 2. Extract characters → generate turnaround reference sheets (for visual consistency) 3. Split the script into shots with camera direction and motion descriptions 4. Generate keyframes (first + last frame per shot) with continuity chaining 5. Interpolate each shot into a video clip 6. Concat everything with FFmpeg, burn subtitles Each stage can be triggered individually or in batch, so you stay in control. Tech: - Next.js 16 App Router + SQLite (self-contained, zero infra) - Bring your own keys: OpenAI, Gemini, or Seedance for text&#x2F;image&#x2F;video - Docker one-liner: docker run -p 3000:3000 -v .&#x2F;data:&#x2F;app&#x2F;data twwch&#x2F;aicomicbuilder:latest - No accounts — browser fingerprint (SHA-256 of UA&#x2F;screen&#x2F;timezone) is the user identity, so multiple people can share one instance with full data isolation Why I built it: Existing video generation tools are either single-shot (one prompt → one clip) or fully opaque pipelines. I wanted something that exposed every step so I could iterate on prompts, swap models mid-project, and understand what&#x27;s actually happening. The hardest part was the continuity chain — the last frame of shot N becomes the first frame of shot N+1, which keeps characters visually consistent across cuts without fine-tuning. GitHub: https:&#x2F;&#x2F;github.com&#x2F;twwch&#x2F;AIComicBuilder Demo video in the README. Would love feedback on the pipeline design and whether the fingerprint-as-auth tradeoff makes sense for this use case.</code></pre>