video-talkcraft README

The project's README from github.com/Vincentwei1021/video-talkcraft. As one markdown file: README.md.

video-talkcraft logo

video-talkcraft

Gallery 微信群 License

口播视频的 agent skill:字级配音同步 · 108 张动效配方卡 · 七层反 PPT 镜头系统 · 三重验收

☕ 支持作者

中文 | English | 日本語

video-talkcraft 是 video-shotcraft 系列的口播视频篇:一个把 Claude Code / Codex 变成口播视频动效工作室的 AI agent skill。 给它一份口播稿和一条成品配音,它在本机对齐字级时间戳、把每个语义拍写进 SHOTBOOK 分镜,然后用 Remotion 渲出高质量的解说成片——动态字卡、 证据截图、运镜、素排字幕、影视级音效,全部锁在人声上。

🖼️ 在线画廊:108 张动效预览一页全览 »

video-talkcraft 在线画廊

统一依赖(runtime/)

所有口播工程的 remotion/node_modules 与 workbench/node_modules 都软链到 runtime/node_modules,版本只在 runtime/package.json 钉一处(@remotion/* 全家同号)。

🆕 更新(What's new)

2026-09-11

2026-09-09

2026-09-07

2026-09-05

2026-09-04

2026-09-02

实测(201s 竖屏片) 之前 现在
全片首渲 13 min 9 min
改一个镜头出有声新片 整渲 53 s
43 张静帧抽样 11 min ~1 min
评审读 160 张 QA 帧 ≈16 万 token / 21 min ≈4 万 token / 7 min(拼图)

✨ 亮点

🚀 快速开始

最直接的方式:把仓库链接丢给你的 agent。 在 Claude Code / Codex 里直接说:

帮我安装这个 skill:https://github.com/Vincentwei1021/video-talkcraft

或用 skills CLI / 手动安装:

npx skills add Vincentwei1021/video-talkcraft
git clone https://github.com/Vincentwei1021/video-talkcraft.git
cd video-talkcraft
ln -s "$(pwd)" ~/.claude/skills/video-talkcraft   # Claude Code
# 或
ln -s "$(pwd)" ~/.codex/skills/video-talkcraft    # Codex

环境(agent 会按需自行配置):

然后这样下需求:

用 video-talkcraft 把这份口播稿 + voiceover.wav 做成视频。
做一条 100 秒的 <话题> 解说,稿子和音频在这里。

🎙️ 可选:Fish Audio 生成配音 + 字级时间戳

默认仍是「成品配音 + 本机 CPU 对齐」。没有录音时,可主动选择 Fish Audio 接入;脚本默认请求 s2.1-pro-free,模型的免费额度与可用期限以 Fish Audio 为准。

  1. 安装 ffmpeg 和 Python 依赖 pip install requests python-dotenv。
  2. 复制 .env.example 为 .env,填写 FISH_AUDIO_API_KEY。FISH_AUDIO_REFERENCE_ID 可填音色库中的音色 ID,留空使用服务默认音色。
  3. 准备 script.json,例如 {"sentences": ["这是第一句。", "这是第二句。"]};也支持字符串数组或每行一句的 .txt。
  4. 生成音频与时间戳:
    # 默认逐句模式:每句一次请求,句间插入 0.25 秒真实静音
    python3 scripts/tts_fishaudio.py script.json audio/full.wav audio/timestamps.json --timing-out remotion/src/timing.json
    # 整稿一次请求,保留模型生成的句间节奏
    python3 scripts/tts_fishaudio.py script.json audio/full.wav audio/timestamps.json --timing-out remotion/src/timing.json --mode stream
    

两种模式均接收 SSE 音频与对齐快照;stream 表示流式接收,文件在全部生成完成后写出,不提供边生成边播放。--pause-sec 只控制逐句模式额外插入的静音。音频先分别解码成 PCM,再拼接、编码,时间戳按实际采样数累计。--format mp3|wav|opus 控制接口返回格式,输出格式由音频文件扩展名决定。

中文沿用接口的字级锚点;英文在词内按字符插值,标点零时长。空音频、缺失/无效对齐、解码失败、规范化后稿子与对齐文本不一致都会报错退出。规范化忽略标点、大小写与字符宽度,不推测 2 与 two 等读法转换;遇到此类差异请改写为实际朗读文本,或使用已有音频走本机 CPU 对齐。match=1 / ok=true 表示文本映射通过,不代表已人工确认发音或字级精度,仍需试听。

回归验证(无需 API Key,需要 requests 与 ffmpeg):

python3 -m unittest discover -s scripts -p 'test_*fish*.py' -v

🎞 你提供什么 vs. 它做什么

你提供(输入) skill 负责
口播稿 字级时间戳对齐,逐句质检标记
成品配音——任何 TTS 或真人录音 SHOTBOOK 分镜:语义拍、层矩阵、排版预算
可选的人物素材——普通实拍视频即可(抠像 + 人脸安全区工具已含,绿幕抠得最干净) Remotion 实现:全局系统(极缓推拉相机/让位)、转场、音效落位
可选的 B-roll / 截图 渲染 + 三重验收(机器闸全过 + 一轮独立审片修完 P0/P1 即交付,可选续审累计 ≤3 轮),响度归一交付

📦 库里有什么

内容 说明
108 张动效配方卡 意图、能量档、参数、实现要点、已知坑——每张都配自包含 Remotion tsx 源码(template/cards/,复制单文件即用)+ 可跑的 HTML demo
画廊 在线版或本地 open gallery/index.html——108 个预览一页自动播放,按名称/关键词搜索
动效系统 CameraRig(极缓推拉)、让位生命周期、六式转场、长镜头世界画布;视差 / 环境层可选(template/motion-systems/)
组件 素排字幕、花字、砸字、荧光笔、铅笔手绘、数字滚动、视频容器边框八式(template/components/)
管线脚本 字级时间戳(双 ASR 后端)、人脸安全区检测、静止检测、音效在场检查、QA 抽帧(scripts/)
方法论 设计语言(Apple 范式默认)、镜头三面工作单、电影感规范、分镜格式、验收口径(references/)
内嵌音效 逐卡 cue 表 + 真采样内嵌 demo 库(授权见 demos/_lib/sfx/ATTRIBUTION.md)

🗂 目录结构

video-talkcraft/
├── SKILL.md                    # agent 入口:八步管线与硬规则
├── references/
│   ├── design-language.md      # 默认视觉系统(色板/字阶/布局/字幕)
│   ├── shot-design.md          # 三面工作单 + 七型镜头预设
│   ├── cinematography.md       # 七层模型、转场、排版预算、验收关卡
│   ├── shotbook-example.md     # 完整分镜范例
│   ├── cards/                  # 108 张动效配方卡
│   ├── taxonomy.md             # 按类别与来源的卡片索引
│   ├── broll-sources.md        # 免署名素材源(API、授权坑)
│   ├── host-footage.md         # 人物素材:输入规格、抠像、人脸安全区
│   └── demo-spec.md            # 卡片/demo 编写规范
├── demos/                      # 108 个可跑的 HTML 预览(共享库内嵌音效)
├── gallery/                    # 单页本地画廊
├── template/                   # 即取即用的 Remotion 代码
│   ├── cards/                  # 108 卡逐卡自包含 tsx 源码(skill 首选引用)
│   ├── motion-systems/         # 相机/视差/让位/环境/转场/长镜头系统
│   └── components/             # 字幕/花字/砸字/铅笔等组件
└── scripts/                    # 时间戳、人脸检测、QA 工具

完整工作流从 SKILL.md 进入。

❓ FAQ

video-talkcraft 是什么? 一个开源的 AI agent skill(Claude Code / Codex 技能包),用于 AI 视频制作: 把口播稿 + 成品配音自动做成带动效的口播视频。它不是剪辑软件,也不是模板站—— agent 读方法论、选动效配方卡、写 Remotion 代码、 跑三重验收,产出可直接发布的解说成片。

能做哪类视频? 知识科普、产品评测、新闻解读、观点锐评等口播/解说类横屏视频。 中文口播优先设计,中英混排完全支持。

需要准备什么? 口播稿(文本)+ 成品配音(任何 TTS 或真人录音);人物出镜素材与 B-roll 可选。

免费吗? 个人、教育、研究用途免费(PolyForm Noncommercial 1.0.0), 用它做出的视频归你所有;工具本身的商业使用需先授权(见下)。

📄 许可

PolyForm Noncommercial 1.0.0——个人、教育、研究用途免费。 将本工具用于任何商业用途需事先获得授权——发邮件至 [email protected] 或提 GitHub issue 联系。

用本 skill 做出的视频归你所有。 如果它帮到了你,欢迎在视频简介里 @ 一下作者的账号——非强制,但对作者是最好的支持。

🔊 音频与素材说明

🙏 致谢

☕ 支持作者

如果这个项目帮到了你,欢迎请我喝杯咖啡,支持后续开发与维护。

在 Ko-fi 请我喝杯咖啡

海外用户可通过 Ko-fi 用银行卡或 PayPal 一次性支持;国内用户可用下方微信:

微信赞助收款码

微信扫一扫,金额随意。手机查看时,可保存图片,再在微信「扫一扫」中从相册选择。

赞助完全自愿,Star、反馈和分享同样感谢。赞助不改变本项目现有的许可条款。

关注作者

在抖音关注作者 在小红书关注作者 在 X 关注作者

💬 微信群

欢迎加入「Vincent 的 AI 交流群 7」,一起交流 AI 应用、编程和视频创作。

Vincent 的 AI 交流群 7 微信入群二维码

用微信扫一扫加入。手机查看时,可保存图片,再在微信「扫一扫」中从相册选择。

此二维码在 2026-12-09 前有效,以微信提示为准。若已失效,可通过 X 联系 Vincent获取最新入群方式。

video-talkcraft (Vincentwei1021/video-talkcraft)

motion-design
Searching Database…

What does video-talkcraft make?Voiceover-driven explainer videos: give it a script and a finished voiceover, and the agent aligns word-level timestamps, writes a SHOTBOOK storyboard, and renders a motion-graphics video with Remotion.
Is it an editor or an agent skill?An agent skill — not editing software or a template site: the agent reads the methodology, picks motion recipe cards, writes Remotion code, and runs triple acceptance.
How do I start?Give your agent the repo link (or install via skills CLI); environment needs Node 18+, Python 3.10+ with the timestamp deps, and ffmpeg.
What gets downloaded?A 767MB FireRedASR2-CTC model on first use for word-level timestamps (or --backend whisper to skip the manual download), plus per-project npm installs for Remotion.
Can I use it commercially?Not without permission — the tool is PolyForm Noncommercial 1.0.0 (free for personal, education, research); videos you make belong to you, but commercial use of the tool itself requires contacting the author.
Who is it for?Creators of knowledge, review, news and commentary explainer videos — Chinese-first design with full Chinese-English mixed support.
Where does it run?Locally in your agent CLI with Remotion rendering on your machine.
Can it render on a server?Rendering is local ffmpeg/Remotion work, so a beefy machine works — the workflow is documented around interactive agent sessions.
Does it work offline?Mostly — after the ASR model and deps are downloaded, alignment and rendering are local; B-roll sourcing guidance points to free stock sites.
What license applies?PolyForm Noncommercial 1.0.0 — free for personal, educational, and research use; commercial use of the tool requires prior authorization.
Do I need a GPU?No — the default timestamp pipeline is CPU-based (FireRedASR2-CTC int8), with median word-level deviation of 20-40ms in testing.
What are the 108 motion recipe cards?Each card carries intent, parameters, known pitfalls, self-contained Remotion tsx source and a runnable HTML preview — kinetic type, data shots, evidence tours, transitions, world canvases, character compositing — all browsable in a gallery.
What is the anti-slideshow system?Seven layers: one extremely slow push/pull camera curve per scene with yield lifecycle, six motion handoff transitions, per-scene visible change requirements — static frames are structurally impossible and auto-detected if they leak.
How is quality verified?Triple acceptance: dual machine gates (static-segment + concurrent raster jitter detection), per-cue energy verification of the sound-effects track, and one independent review round fixing P0/P1 before delivery (up to 3 cumulative).
Size
30.8 MB
Stars
2.4K
Age
3mo
Commits · 90 Days