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
Tidy Reel wording
junedc76bde40de6
diff --git a/docs/reel.md b/docs/reel.mdindex d648d13..7291c7c 100644--- a/docs/reel.md+++ b/docs/reel.md@@ -1,4 +1,4 @@-# Reel 拆片包:视频拆解的标准包(v1)+# Reel 拆片包:视频拆解的标准包拆一条视频,会得到两样东西:@@ -31,7 +31,7 @@```bashrea-video decompose ref.mp4 -o out/ref # 拆解时一起生成拆片包rea-video reel out/ref # 旧的输出目录,从 breakdown.json 补出拆片包-rea-video reel out/ref --check # 检查是否符合 Reel v1+rea-video reel out/ref --check # 检查是否符合 Reel 格式``````python@@ -191,7 +191,7 @@ pkg = reel.read("out/ref") # {"card": {...}, "timeline": [{"shot": 7, "star## 一致性要求-一个目录是合格的 Reel v1 拆片包,当且仅当:+一个目录是合格的 Reel 拆片包,当且仅当:1. 根目录有 `REEL.md`,前置信息符合 schema 里的 `card`。2. `REEL.md` 地图里列出的每个路径都存在。@@ -203,7 +203,7 @@ pkg = reel.read("out/ref") # {"card": {...}, "timeline": [{"shot": 7, "starschema 在 `rea_video/reel.schema.json`(JSON Schema 2020-12)。检查一个目录:```bash-rea-video reel out/ref --check # 合格时输出“符合 Reel v1”,否则逐条列出问题,退出码 1+rea-video reel out/ref --check # 合格时输出“符合 Reel 格式”,否则逐条列出问题,退出码 1```写拆片包的一方必须满足上面全部规则;读的一方遇到不认识的字段、键、主题文件时忽略,不报错。diff --git a/rea_video/cli.py b/rea_video/cli.pyindex e8707a3..63e5aed 100644--- a/rea_video/cli.py+++ b/rea_video/cli.py@@ -164,7 +164,7 @@ def cmd_reel(args) -> int:from .reel import checkerrs = check(root)- print("\n".join(errs) if errs else T("符合 Reel v1", "conforms to Reel v1"))+ print("\n".join(errs) if errs else T("符合 Reel 格式", "conforms to the Reel format"))return 1 if errs else 0b = read_json(root / "breakdown.json")set_lang(b.get("lang", "zh"))diff --git a/rea_video/reel.py b/rea_video/reel.pyindex 0efc5a4..914d15b 100644--- a/rea_video/reel.py+++ b/rea_video/reel.py@@ -316,7 +316,7 @@ def _schema_errors(data: dict, part: str, where: str) -> list[str]:def check(root: Path) -> list[str]:- """Problems that make `root` a non-conforming Reel v1 package (empty list = conforms). See docs/reel.md, “Conformance”."""+ """Problems that make `root` a non-conforming Reel package (empty list = conforms). See docs/reel.md, “Conformance”."""root = Path(root)errs: list[str] = []entry = root / ENTRYdiff --git a/rea_video/reel.schema.json b/rea_video/reel.schema.jsonindex 42449c3..f9e274a 100644--- a/rea_video/reel.schema.json+++ b/rea_video/reel.schema.json@@ -1,7 +1,7 @@{"$schema": "https://json-schema.org/draft/2020-12/schema","$id": "https://github.com/JuneYaooo/rea-video/reel.schema.json",- "title": "Reel v1 front matter",+ "title": "Reel front matter","description": "Front matter of the files in a Reel package (docs/reel.md). Unknown fields are allowed everywhere: readers ignore what they do not know.","$defs": {"version": {"const": 1},diff --git a/tests/test_reel.py b/tests/test_reel.pyindex db34daf..f16a33f 100644--- a/tests/test_reel.py+++ b/tests/test_reel.py@@ -142,8 +142,12 @@ def test_effects_found_on_their_own_track(tmp_path):def test_effects_separation_degrades_without_a_model(tmp_path, monkeypatch):+ import sys+ import types+from rea_video import effects+ monkeypatch.setitem(sys.modules, "onnxruntime", types.SimpleNamespace(InferenceSession=lambda *a, **k: None))monkeypatch.setattr(effects, "ensure_model", lambda: (_ for _ in ()).throw(OSError("offline")))got = effects.extract_effects(tmp_path / "x.wav", tmp_path)assert got["ok"] is False and "offline" in got["reason"]