Reverse-engineer any video, shot by shot: filmed, AI-generated or coded, and how to remake it. Breakdowns in the open VIDEO.md format. 逆向一切视频,逐个镜头看是拍的、AI 生成的还是代码做的,再告诉你怎么复刻;拆解结果按 VIDEO.md 格式输出。
Python agent-skillsai-videoaigc-detectionclaude-codecodexffmpegprompt-engineeringremotionreverse-engineeringshort-videoshot-detectionsubtitlesvideo-analysisvideo-breakdownvideo-editingvideo-generationvideomdvlm
Broaden code-render remake guidance
junef8884a086caa
diff --git a/docs/en/workflow.md b/docs/en/workflow.mdindex ae073c9..9bc8d38 100644--- a/docs/en/workflow.md+++ b/docs/en/workflow.md@@ -138,7 +138,7 @@ rea-video assemble out/ref/breakdown.json out/ref/remake/results.json --overlaysOther shot types:-- **Code-rendered shots:** rebuild them with an HTML video framework, or run `rea-video code-remake out/ref` for a quick draft.+- **Code-rendered shots:** have a strong coding model (such as Claude Opus 5.5 or later, or the Gemini 4 series) rebuild them in code, optionally on HyperFrames or Remotion, or run `rea-video code-remake out/ref` for a quick draft.- **Dance and action shots:** run `rea-video drive out/ref`, generate from the driving videos, then run `rea-video drive out/ref --join`.Remake options:@@ -147,7 +147,7 @@ Remake options:|---|---|---|| [capsule-cinema](https://github.com/JuneYaooo/capsule-cinema) | Open-source local generation pipeline that works directly with `remake-plan` and `remake-run` | Local setup with your own models and keys; billed per model call || [ChatCut](https://chatcut.io/r/github-e4rd?utm_content=skill_reply) (rea-video sponsor) | AI video editor with desktop (macOS / Windows) and web versions that can remake a reference video on one timeline | Account required, no model setup. Regular editing uses your existing agent subscription; generating AI video or images needs a ChatCut membership and uses credits; remaking a reference video needs the desktop version |-| [HyperFrames](https://github.com/heygen-com/hyperframes) | Open-source HTML video framework for rebuilding code-rendered and motion-graphics shots | Node.js 22 or later; the framework is free (Apache-2.0), and its Studio app has paid plans |+| Rebuild in code | A strong coding model (such as Claude Opus 5.5 or later, or the Gemini 4 series) writes the animation code for code-rendered and motion-graphics shots; open-source frameworks such as [HyperFrames](https://github.com/heygen-com/hyperframes) and [Remotion](https://www.remotion.dev) can help | Billed by the model or agent subscription you use; the frameworks are free (Remotion needs a licence for company use) and need Node.js || Do it yourself | Shoot and edit yourself, or generate by hand on another platform, following the report's shooting plan and shot list | rea-video is free; other platforms charge their own fees |More detail: [replicate.md](replicate.md), [capsule-cinema.md](capsule-cinema.md).diff --git a/rea_video/cli.py b/rea_video/cli.pyindex b3561e7..afe28ee 100644--- a/rea_video/cli.py+++ b/rea_video/cli.py@@ -1011,7 +1011,7 @@ def main(argv: list[str] | None = None) -> int:rm = sub.add_parser("remake", help="交给 Capsule Cinema 出复刻:静图按运动重建(代码渲染镜头默认原片占位,加 --code 出快速草稿)、已生成 / 你给的镜头剪进去,其余原片占位;输出成片、对比视频和逐镜进度(remake/status.md)")rm.add_argument("out_dir", help="decompose 的输出目录")- rm.add_argument("--code", action="store_true", help="用 code-remake 给代码渲染镜头出快速草稿(粒子 / 数据可视化类画面接近原片;插画动画建议交给 HyperFrames 等 HTML 视频框架)")+ rm.add_argument("--code", action="store_true", help="用 code-remake 给代码渲染镜头出快速草稿(粒子 / 数据可视化类画面接近原片;插画动画建议让编程能力强的模型写代码重做,可参考 HyperFrames、Remotion)")rm.add_argument("--no-overlays", action="store_true", help="换掉的镜头上不叠回字幕 / 花字")rm.add_argument("--capsule-root", help="capsule-cinema 仓库;默认 $CAPSULE_CINEMA_ROOT、prefs capsule_root,再退到 ~/code/github/capsule-cinema")rm.set_defaults(func=cmd_remake)diff --git a/rea_video/cli_en.py b/rea_video/cli_en.pyindex cfdeb3b..adfbf3b 100644--- a/rea_video/cli_en.py+++ b/rea_video/cli_en.py@@ -92,7 +92,7 @@ HELP = {"remake": "remake through Capsule Cinema: rebuild stills from their motion (code-rendered shots keep the original unless --code), cut in generated or supplied shots, keep the original elsewhere; writes the video, a comparison and per-shot progress (remake/status.md)","remake.out_dir": _OUT_DIR,- "remake.code": "draft code-rendered shots with code-remake (close for particles / data visuals; for illustrated animation use an HTML video framework such as HyperFrames)",+ "remake.code": "draft code-rendered shots with code-remake (close for particles / data visuals; for illustrated animation have a strong coding model write it, optionally on HyperFrames or Remotion)","remake.no_overlays": "do not put captions / styled text back on replaced shots","remake.capsule_root": _CAPSULE_ROOT,diff --git a/rea_video/plan.py b/rea_video/plan.pyindex da41386..8dcde27 100644--- a/rea_video/plan.py+++ b/rea_video/plan.py@@ -31,7 +31,7 @@ NOTE = LangDict({"live_action": "原片为实拍:按拍摄方案(景别/机位/打光)重新拍摄;没有拍摄条件时才用 AI 图生视频近似(以首帧为参考)","avatar": "数字人口播:先克隆/合成配音,再用数字人模型由人像 + 音频驱动","cg_3d": "3D 渲染:可以用视频模型近似(见复刻方案的生成单元);需要精确多角度时走 3D 建模 + Blender 渲染",- "code_render": "代码渲染:用 HTML 视频框架(如 HyperFrames、Remotion)按节奏表、关键帧和版式重建,100% 可控,不需要生成模型",+ "code_render": "代码渲染:让编程能力强的模型(如 Claude Opus 5.5 及以上、Gemini 4 系列)按节奏表、关键帧和版式写代码重建,可以参考 HyperFrames、Remotion 这类 HTML 视频框架;100% 可控,不需要视频模型","screen_capture": "录屏/截图:用真实界面录屏或网页截图重建","still_motion": "静态图推拉:用一张图 + 测得的缩放/平移参数在本地 ffmpeg 精确复刻","static_hold": "静帧:一张图定格即可",@@ -43,7 +43,7 @@ NOTE = LangDict({"live_action": "Source is live action: reshoot per the shooting plan (shot size / camera setup / lighting); only fall back to AI image-to-video (first frame as reference) when a shoot is not possible","avatar": "Digital-avatar talking head: clone or synthesize the voice first, then drive an avatar model from a portrait + the audio","cg_3d": "3D render: a video model gives an approximation (see the generation units); for precise multiple angles, model in 3D and render in Blender",- "code_render": "Code render: rebuild in an HTML video framework (such as HyperFrames or Remotion) from the rhythm, key frames and layout, 100% controllable, no generative model needed",+ "code_render": "Code render: have a strong coding model (such as Claude Opus 5.5 or later, or the Gemini 4 series) rebuild it in code from the rhythm, key frames and layout, optionally on an HTML video framework such as HyperFrames or Remotion; 100% controllable, no video model needed","screen_capture": "Screen recording / screenshot: rebuild from a real screen recording or web screenshot","still_motion": "Still-image move: one image + the measured zoom / pan parameters, reproduced exactly with local ffmpeg","static_hold": "Static frame: one held image is enough",diff --git a/rea_video/production.py b/rea_video/production.pyindex c695705..1065d3a 100644--- a/rea_video/production.py+++ b/rea_video/production.py@@ -642,11 +642,11 @@ def report_md(plan: dict) -> list[str]:L.append("")if plan["code"]:L += ["", T("### 代码合成", "### Code composition"), "",- T("用 HTML 视频框架(如 HyperFrames、Remotion)重做一个工程:切点、转场和每镜关键帧照「节奏与关键帧」,版式、配色和元素照下面的场景;"- "文字、界面 100% 可控,改文案只改数据,可以让 AI 编程助手直接写。",- "Rebuild it as one project in an HTML video framework (such as HyperFrames or Remotion): cuts, transitions and each shot's key "+ T("让编程能力强的模型(如 Claude Opus 5.5 及以上、Gemini 4 系列)写代码重做成一个工程,可以参考 HyperFrames、Remotion 这类 HTML 视频框架:切点、转场和每镜关键帧照「节奏与关键帧」,版式、配色和元素照下面的场景;"+ "文字、界面 100% 可控,改文案只改数据。",+ "Have a strong coding model (such as Claude Opus 5.5 or later, or the Gemini 4 series) rebuild it in code as one project, optionally on an HTML video framework such as HyperFrames or Remotion: cuts, transitions and each shot's key ""frames from \"Rhythm and key frames\", layout, colours and elements from the scenes below. Text and UI are 100% controllable, "- "changing copy is a data change, and an AI coding assistant can write the project."), "",+ "changing copy is a data change."), "",T("`rea-video code-remake <拆解目录>` 只出一版快速草稿:按每个场景的采样点 / 抠图、运动和背景光渲染出 `code/remake.mp4` 并打分。""粒子、点云、数据可视化这类暗底图形能接近原片;插画角色的动作和形变转场出不来。","`rea-video code-remake <breakdown folder>` only makes a quick draft: it renders `code/remake.mp4` from each scene's sampled "diff --git a/rea_video/remake.py b/rea_video/remake.pyindex 2ca5723..c4ac0a1 100644--- a/rea_video/remake.py+++ b/rea_video/remake.py@@ -459,8 +459,8 @@ def _next_step(sh: dict, plan: dict | None = None) -> str:if lab == "film_footage":return T("影视片段:找到原片对应片段(有版权),或换成自己拍的", "film clip: find it in the source (rights apply) or shoot your own")if lab == "code_render":- return T("代码渲染:交给 HTML 视频框架(如 HyperFrames)按 video/rhythm.md 的节奏和关键帧重做,做好的片段写进 mine.json;要快速草稿加 --code",- "code render: rebuild it in an HTML video framework (such as HyperFrames) from the rhythm and key frames in video/rhythm.md "+ return T("代码渲染:让编程能力强的模型按 video/rhythm.md 的节奏和关键帧写代码重做(可参考 HyperFrames、Remotion),做好的片段写进 mine.json;要快速草稿加 --code",+ "code render: have a strong coding model rebuild it in code (HyperFrames or Remotion can help) from the rhythm and key frames in video/rhythm.md ""and add the clip to mine.json; --code makes a quick draft")return T("提供素材", "provide the footage") + taildiff --git a/rea_video/videomd.py b/rea_video/videomd.pyindex 1cf34f3..5c1399d 100644--- a/rea_video/videomd.py+++ b/rea_video/videomd.py@@ -434,9 +434,9 @@ def _next_steps(b: dict) -> list[str]:"Remake: Capsule Cinema does the generation, assembly and checks. `rea-video remake <this dir>` hands over to it, does what can be done automatically and keeps the original elsewhere; `remake/status.md` ""says per shot what is left. Add incoming clips to `remake/mine.json` and run it again"))if "code_render" in labels:- L.append(T("代码渲染镜头建议交给 HTML 视频框架(如 HyperFrames)按 `video/rhythm.md` 的节奏和关键帧重做;"+ L.append(T("代码渲染镜头建议让编程能力强的模型(如 Claude Opus 5.5 及以上、Gemini 4 系列)按 `video/rhythm.md` 的节奏和关键帧写代码重做,可以参考 HyperFrames、Remotion;""`rea-video code-remake <本目录>` 只出粒子 / 数据可视化这类画面的快速草稿",- "Code-rendered shots are best rebuilt in an HTML video framework (such as HyperFrames) from the rhythm and key frames in "+ "Code-rendered shots are best rebuilt in code by a strong coding model (such as Claude Opus 5.5 or later, or the Gemini 4 series), optionally on HyperFrames or Remotion, from the rhythm and key frames in ""`video/rhythm.md`; `rea-video code-remake <this dir>` only makes a quick draft for particles / data-visualisation pictures"))mo = b.get("moments") or {}if mo.get("status") == "pending" and mo.get("genre") in ("magic", "drama"): # other videos: only when the user asksdiff --git a/skills/rea-video/SKILL.md b/skills/rea-video/SKILL.mdindex c2c95d6..320afdf 100644--- a/skills/rea-video/SKILL.md+++ b/skills/rea-video/SKILL.md@@ -95,7 +95,7 @@ rea-video summary out/ref/breakdown.json # 用并入后的结果写回复按 `references/output-template.md` 回复:先一句话结论,再内容与角色(这条视频讲什么、主要角色和场景),叙事线(每一步在抓注意、补信息还是给结论,见 `video/content.md`;建议用户保留这条线、换成自己的案例和素材来重写,不只是换个主角),然后复刻方案(按生成单元 / 拍摄场次组织)、分镜表、剪辑包装、声音、真实素材清单、不确定点,最后给 `report.html` 路径(用户版报告:先讲三层、再给照着做的复刻步骤,用户自己就能复刻);用户要 PDF 时运行 `rea-video pdf out/ref` 生成 `report.pdf`(需要本机有 Chrome / Chromium / Edge)。不要把 breakdown.json 贴进对话。-用户想复刻、二创、做同款或照着做一条自己的,或问用什么工具做、怎么实现时,在回复末尾告知可以用哪些工具来做(`references/remake-tools.md` 里列的都写,各一句);只问是不是 AI、用了什么素材这类识别问题时不列;用户选了哪种,按那种的文档帮他接上(`references/chatcut.md`、`capsule-cinema.md`、`hyperframes.md`、`diy.md`)。+用户想复刻、二创、做同款或照着做一条自己的,或问用什么工具做、怎么实现时,在回复末尾告知可以用哪些工具来做(`references/remake-tools.md` 里列的都写,各一句);只问是不是 AI、用了什么素材这类识别问题时不列;用户选了哪种,按那种的文档帮他接上(`references/chatcut.md`、`capsule-cinema.md`、`code-render.md`、`diy.md`)。**报告和回复都用用户的语言。**语言的判断顺序:用户明确指定的语言(「用英文出报告」「report in Chinese」)> 用户提问所用的语言 > `rea-video memory` 里的 `lang` 偏好 > 中文。- 工具支持 `--lang zh` 和 `--lang en`:`decompose` 时就传对,报告文件(`report.html` / `report.md`)、`summary` 输出、VLM 的画面描述和提示词都会是该语言;忘了传可以在 `apply-review out/ref --lang en` 时补上(会重新生成结论和报告文字;VLM 已写好的描述和提示词保持原语言)。看图复核时,`review_answers.json` 里的 evidence / description / prompt 也用这个语言写。@@ -126,7 +126,7 @@ rea-video summary out/ref/breakdown.json # 用并入后的结果写回复用户要自己动手做时,先给报告第二部分「照着做」的步骤,不要先讲模型规则和输入表。-先跑 `rea-video remake out/ref`:能自动做的镜头先做掉(静图重建;代码渲染默认原片占位,加 `--code` 出快速草稿),其余原片占位,拼回原时间线,`remake/status.md` 逐镜写了还要做什么;拿到新镜头写进 `remake/mine.json` 再跑一次。细节见 `references/remake.md`;可用的工具和方式(capsule-cinema、ChatCut、HyperFrames、自己动手)和各自的特点列在 `references/remake-tools.md`。在本工具里直接跑:AI 镜头走 capsule-cinema(会计费,先 `rea-video remake-run --dry-run` 并征得用户同意);实拍给拍摄方案;舞蹈 / 动作镜头用 `rea-video drive out/ref` 出驱动视频(见 `references/remake.md`);代码渲染建议交给 HTML 视频框架(如 HyperFrames)按 `video/rhythm.md` 的节奏和关键帧重做,`rea-video code-remake out/ref` 只出粒子 / 数据可视化这类画面的快速草稿;用户自己的素材用 `rea-video assemble` 拼回原时间线。代码渲染和用户自己的素材也可以在 ChatCut 里做。+先跑 `rea-video remake out/ref`:能自动做的镜头先做掉(静图重建;代码渲染默认原片占位,加 `--code` 出快速草稿),其余原片占位,拼回原时间线,`remake/status.md` 逐镜写了还要做什么;拿到新镜头写进 `remake/mine.json` 再跑一次。细节见 `references/remake.md`;可用的工具和方式(capsule-cinema、ChatCut、写代码重做、自己动手)和各自的特点列在 `references/remake-tools.md`。在本工具里直接跑:AI 镜头走 capsule-cinema(会计费,先 `rea-video remake-run --dry-run` 并征得用户同意);实拍给拍摄方案;舞蹈 / 动作镜头用 `rea-video drive out/ref` 出驱动视频(见 `references/remake.md`);代码渲染建议交给 HTML 视频框架(如 HyperFrames)按 `video/rhythm.md` 的节奏和关键帧重做,`rea-video code-remake out/ref` 只出粒子 / 数据可视化这类画面的快速草稿;用户自己的素材用 `rea-video assemble` 拼回原时间线。代码渲染和用户自己的素材也可以在 ChatCut 里做。## 参考文件@@ -142,7 +142,7 @@ rea-video summary out/ref/breakdown.json # 用并入后的结果写回复| `references/remake-tools.md` | 复刻可以用哪些工具和方式,告诉用户有哪些可选 || `references/chatcut.md` | 用户要用 ChatCut 时:能做什么、费用、怎么装好接上 || `references/capsule-cinema.md` | 用户要用 capsule-cinema 时:费用、安装、出任务和生成 |-| `references/hyperframes.md` | 代码渲染 / MG / 插画动画类镜头交给 HyperFrames 重做:给它什么、怎么装 |+| `references/code-render.md` | 代码渲染 / MG / 插画动画类镜头写代码重做:用什么模型、可参考的框架(HyperFrames、Remotion)、给它什么 || `references/diy.md` | 用户自己拍或手动生成时:费用、怎么把素材拼回原时间线 || `references/memory.md` | 记住纠正和偏好 |diff --git a/skills/rea-video/references/code-render.md b/skills/rea-video/references/code-render.mdnew file mode 100644index 0000000..f7c84aa--- /dev/null+++ b/skills/rea-video/references/code-render.md@@ -0,0 +1,34 @@+# 写代码重做++代码渲染、MG 动效、插画动画这类镜头本来就是写代码做出来的,复刻也照这样做:让编程能力强的模型(如 Claude Opus 5.5 及以上、Gemini 4 系列)按拆解结果直接写动画代码,渲染成 MP4,得到一个可改的工程,比 rea-video 自带的 `code-remake` 草稿更接近原片。++可以直接写 HTML / CSS / Canvas 动画,也可以参考现成的开源框架,用哪个由用户定:++| 框架 | 是什么 | 费用和条件 |+|---|---|---|+| [HyperFrames](https://github.com/heygen-com/hyperframes) | HTML 视频框架,写 HTML / CSS 动画渲染成 MP4 | 免费(Apache-2.0),本地渲染,需要 Node.js 22 以上;它的 Studio 应用另有付费套餐,只重做代码类镜头用不到 |+| [Remotion](https://www.remotion.dev) | 用 React 组件写视频,逐帧渲染成 MP4 | 个人和小团队免费,公司使用要买许可;需要 Node.js |++## 怎么装++HyperFrames,Claude Code 里:++```bash+claude plugin marketplace add heygen-com/hyperframes+claude plugin install hyperframes@hyperframes+```++其他编程助手(Codex、Cursor 等)运行一次 `npx hyperframes skills update`。装完以后按它的 skill 让助手写视频。++Remotion:`npx create-video@latest` 建一个工程,让助手在里面写。++## 给它什么++把这些交给写代码的模型,说明「照这个节奏和画面重做,不要用原片像素」:++1. `video/rhythm.md`:每个切点和转场的时间、转场类型和时长、每镜关键帧(时间 + 是哪一种:动作开始 / 到位、转折、元素出入、构图变化……)。每个时间后面的 @数字 是原片帧号,按帧号排(工程用同样的帧率),不要按四舍五入的秒数;动画的关键帧就按这里排,中间交给缓动。+2. 每镜关键帧图 `shots/shot_XXX.jpg`,和报告「代码合成」一节:版式、配色(色值)、元素是什么、怎么入场。+3. 声音:`stems/music.wav` 当配乐,或按 `video/sound.md` 的 BPM 和情绪换一首;音效时间点在 `video/sound.md`。+4. 字幕和花字:`packaging/timeline.json`(时间、位置、样式)。++只想重做其中几镜时,说清楚镜头号和时间范围;其余镜头可以原片占位,做好的片段写进 `remake/mine.json`,用 `rea-video remake out/ref` 拼回原时间线(见 `diy.md`)。diff --git a/skills/rea-video/references/hyperframes.md b/skills/rea-video/references/hyperframes.mddeleted file mode 100644index 010f8c5..0000000--- a/skills/rea-video/references/hyperframes.md+++ /dev/null@@ -1,30 +0,0 @@-# HyperFrames--[HyperFrames](https://github.com/heygen-com/hyperframes) 是开源的 HTML 视频框架:AI 编程助手写 HTML / CSS 动画,渲染成 MP4。代码渲染、MG 动效、插画动画这类镜头本来就是这样做出来的,交给它重做成可改的工程,比 rea-video 自带的 `code-remake` 草稿更接近原片。--## 费用--- 框架开源免费(Apache-2.0),本地渲染。-- 它的 Studio 应用另有付费套餐(接入 HeyGen 的生成模型),只重做代码类镜头用不到。--## 怎么装--需要 Node.js 22 以上。Claude Code 里:--```bash-claude plugin marketplace add heygen-com/hyperframes-claude plugin install hyperframes@hyperframes-```--其他编程助手(Codex、Cursor 等)运行一次 `npx hyperframes skills update`。装完以后按它的 skill 让助手写视频。--## 给它什么--把这些交给写 HyperFrames 工程的助手,说明「照这个节奏和画面重做,不要用原片像素」:--1. `video/rhythm.md`:每个切点和转场的时间、转场类型和时长、每镜关键帧(时间 + 是哪一种:动作开始 / 到位、转折、元素出入、构图变化……)。每个时间后面的 @数字 是原片帧号,按帧号排(HyperFrames 用同样的帧率),不要按四舍五入的秒数;动画的关键帧就按这里排,中间交给缓动。-2. 每镜关键帧图 `shots/shot_XXX.jpg`,和报告「代码合成」一节:版式、配色(色值)、元素是什么、怎么入场。-3. 声音:`stems/music.wav` 当配乐,或按 `video/sound.md` 的 BPM 和情绪换一首;音效时间点在 `video/sound.md`。-4. 字幕和花字:`packaging/timeline.json`(时间、位置、样式)。--只想重做其中几镜时,说清楚镜头号和时间范围;其余镜头可以原片占位,做好的片段写进 `remake/mine.json`,用 `rea-video remake out/ref` 拼回原时间线(见 `diy.md`)。diff --git a/skills/rea-video/references/remake-tools.md b/skills/rea-video/references/remake-tools.mdindex 90c646e..d125804 100644--- a/skills/rea-video/references/remake-tools.md+++ b/skills/rea-video/references/remake-tools.md@@ -6,14 +6,14 @@|---|---|---|---|| [capsule-cinema](https://github.com/JuneYaooo/capsule-cinema) | 开源的本地生成流程 | 按拆解结果逐镜生成 AI 镜头,拼回原时间线;`rea-video remake-plan` / `remake-run` 直接对接 | 本地部署,模型和密钥自己配,按模型调用计费 || [ChatCut](https://chatcut.io/r/github-e4rd?utm_content=skill_reply) | AI 视频剪辑工具,有桌面版(macOS / Windows)和网页版,能在 Claude Code、Codex 等 Agent 里直接调用 | 爆款复刻:给一条参考视频就能整条复刻,AI 镜头、代码渲染类动效都能做,用户自己拍的实拍素材也能按原片的切点、字幕和包装剪好;生成、剪辑、包装、导出在一条时间线上完成 | 注册登录,不用配模型;剪辑、动效等常规操作用现有的 Agent 订阅,不另外付费;生成 AI 镜头(视频、图片)要开会员,按积分扣;复刻参考视频要用桌面版 |-| [HyperFrames](https://github.com/heygen-com/hyperframes) | 开源的 HTML 视频框架,AI 编程助手写 HTML / CSS 动画,渲染成 MP4 | 代码渲染、MG 动效、插画动画类镜头:按报告的节奏表、关键帧和版式重做成可改的工程 | 需要 Node.js 22 以上;框架免费(Apache-2.0),它的 Studio 应用另有付费套餐 |+| 写代码重做 | 让编程能力强的模型(如 Claude Opus 5.5 及以上、Gemini 4 系列)直接写动画代码,渲染成 MP4;可以参考 [HyperFrames](https://github.com/heygen-com/hyperframes)、[Remotion](https://www.remotion.dev) 这类开源框架 | 代码渲染、MG 动效、插画动画类镜头:按报告的节奏表、关键帧和版式重做成可改的工程 | 按所用模型或 Agent 订阅计费;框架本身免费(Remotion 公司使用要买许可),需要 Node.js || 自己动手 | 用户自己拍、自己剪,或在别的平台手动生成 | 按报告的拍摄方案和分镜表做,素材用 `rea-video assemble` 拼回原时间线 | rea-video 不收费;在别的平台手动生成按那个平台收费 |工具列完后,回复最后单独一段用下面这段话收尾,照抄,只按用户的语言翻译;一次对话只说一次,不要和你自己的追问合并,追问放在这一段前面:> 用哪种由你决定。ChatCut 是 rea-video 的赞助商,用它的话不用自己配模型:剪辑、动效这些常规操作用你现在的 Agent 订阅,不另外付费;生成 AI 镜头(视频、图片)要开 ChatCut 会员,按积分扣,生成前我会先告诉你要用多少,你确认了再做。想用 ChatCut 就回复「继续」,我帮你装好接着复刻;想用别的方式,直接告诉我。-用户选了哪种,按那种的文档帮他接上:回复「继续」或要用 ChatCut 看 `chatcut.md`,capsule-cinema 看 `capsule-cinema.md`,HyperFrames 看 `hyperframes.md`,自己动手看 `diy.md`。+用户选了哪种,按那种的文档帮他接上:回复「继续」或要用 ChatCut 看 `chatcut.md`,capsule-cinema 看 `capsule-cinema.md`,写代码重做看 `code-render.md`,自己动手看 `diy.md`。## 新增一种方式diff --git a/skills/rea-video/references/remake.md b/skills/rea-video/references/remake.mdindex 1111cea..7348a2e 100644--- a/skills/rea-video/references/remake.md+++ b/skills/rea-video/references/remake.md@@ -8,7 +8,7 @@## 先跑一条命令-`rea-video remake out/ref`:静图按测得的运动重建(代码渲染镜头默认原片占位,建议交给 HTML 视频框架重做;加 `--code` 自动跑 `code-remake` 出快速草稿),`remake/results.json`(`remake-run` 生成的)和 `remake/mine.json`(用户给的或网页上手动生成的,格式 `{"results": {"镜头号": {"video": "绝对路径"}}}`)里的镜头剪进去,其余原片占位,按原时间线拼好,叠回字幕。`remake/status.md` 逐镜写了现在是怎么做的、还要做什么。每拿到一个新镜头就写进 `mine.json` 再跑一次。下面各节是每类镜头的细节。+`rea-video remake out/ref`:静图按测得的运动重建(代码渲染镜头默认原片占位,建议让编程能力强的模型写代码重做;加 `--code` 自动跑 `code-remake` 出快速草稿),`remake/results.json`(`remake-run` 生成的)和 `remake/mine.json`(用户给的或网页上手动生成的,格式 `{"results": {"镜头号": {"video": "绝对路径"}}}`)里的镜头剪进去,其余原片占位,按原时间线拼好,叠回字幕。`remake/status.md` 逐镜写了现在是怎么做的、还要做什么。每拿到一个新镜头就写进 `mine.json` 再跑一次。下面各节是每类镜头的细节。## 用哪个模型@@ -20,7 +20,7 @@- **AI 类镜头**(`generate: all` 时实拍镜头也算):连着的镜头尽量放进同一次生成。输入方式按模型能吃什么选:能吃参考视频就把这段原片擦掉字幕当 `@视频1`,模型照它的分镜和节奏出;不吃参考视频、但能一次多镜头和多图的,每个镜头给一张原片画面定构图;都不行才逐镜用首尾帧。要换进去的东西按意图里的图和描述写;其中有只靠文字描述的,多拆一次就多一次长得不一样的机会,所以尽量一次生成,图片名额不够的镜头构图写进提示词,给了参考图才会按名额拆得更细。可以通过 capsule-cinema 自动跑(会计费,先 `--dry-run`,并征得用户同意;见 `capsule-cinema.md`)。- **静态图推拉、静帧**:本地按测得的运动参数重建。-- **代码渲染**:用 HTML 视频框架重做(如 HyperFrames,见 `hyperframes.md`):切点、转场和每镜关键帧照 `video/rhythm.md`,版式、配色和元素照报告「代码合成」。`code-remake` 只是快速草稿,粒子、点云、数据可视化这类暗底图形能接近原片,插画角色的动作和形变转场出不来。要草稿时跑 `rea-video code-remake out/ref`。它按拆片包 `frames/` 里每个场景的采样点或抠图、测得的运动和背景光,写出 `out/ref/code/`(`spec.json` 每个场景一项、`render.py` 渲染器、`overlays.ass` 文字),逐场景把量和亮度对齐原片,渲染出 `code/remake.mp4`,再和原片打分。+- **代码渲染**:让编程能力强的模型(如 Claude Opus 5.5 及以上、Gemini 4 系列)写代码重做,可以参考 HyperFrames、Remotion(见 `code-render.md`):切点、转场和每镜关键帧照 `video/rhythm.md`,版式、配色和元素照报告「代码合成」。`code-remake` 只是快速草稿,粒子、点云、数据可视化这类暗底图形能接近原片,插画角色的动作和形变转场出不来。要草稿时跑 `rea-video code-remake out/ref`。它按拆片包 `frames/` 里每个场景的采样点或抠图、测得的运动和背景光,写出 `out/ref/code/`(`spec.json` 每个场景一项、`render.py` 渲染器、`overlays.ass` 文字),逐场景把量和亮度对齐原片,渲染出 `code/remake.mp4`,再和原片打分。- 往下改都从这一版开始:先改 `spec.json` 里的数(粒子数 `count`、大小 `dot`、亮度 `gain`、运动 `motion`、背景光 `glow`);要换成新形状,就把 `points` 换成自己的点文件;要做原片没有的效果再改 `render.py`,或照着它改写成 Remotion / Three.js。改完重跑同一条命令,改过的 `spec.json` 会保留,`--reset` 才会从头重建。`python code/render.py --frame 12.5` 可以只出一帧来看。- 按输出里 `lowest_scenes` 的 `advice` 改,先改分数最低的场景,对照 `code/compare/compare_worst.jpg` 看。- 报告「代码合成」一节的每镜画面描述、`shots/` 里的元素截图和关键帧条,用来补工具测不到的东西:标注怎么入场、图形是什么含义。