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
没看图确认过的低置信实拍镜头,素材写明「自己拍的还是影视片段,看图确认」;复核任务里整片共有的证据只写一次,打光测量值去掉括号解释和重复字段
junee1a4c5d9cc8b
diff --git a/rea_video/pipeline.py b/rea_video/pipeline.pyindex c7b8141..3fa7735 100644--- a/rea_video/pipeline.py+++ b/rea_video/pipeline.py@@ -597,6 +597,14 @@ def finalize(breakdown: dict, out: Path, engine: str | None = None) -> dict:seen or None, moving=fam != "frozen")if user.get("real_material") is not None:_user_real(rec["material"], bool(user["real_material"]))+ elif label == "live_action" and not seen and rec["base"]["confidence"] < 0.6:+ # pixels alone cannot tell the author's own footage from a cut-in film / drama clip: say so instead of+ # promising "the user's material" (still counted as real material, only the wording changes)+ note = T("(自己拍的还是影视片段,看图确认)", " (own footage or a film / drama clip, confirm by looking)")+ rec["material"]["origin_zh"] += note+ for it in rec["material"]["items"]:+ if it["kind"] == "real_footage" and it["region"] == "full":+ it["kind_zh"] += noterec["verdict"] = verdict_text(label, img_src, rec["layers"])rec.pop("ai_edits", None)if label in ("live_action", "stop_motion"):diff --git a/rea_video/review.py b/rea_video/review.pyindex 79ab270..79f1340 100644--- a/rea_video/review.py+++ b/rea_video/review.py@@ -31,7 +31,7 @@ INSTRUCTIONS = f"""你是这次的 VLM:逐个镜头看图,判断「底层画1. 先看 storyboard.jpg 建立整体印象;每个镜头看 images 里的 sheet(首/中/尾联系表,一张就够,不用另开首尾帧)。要细看时运行顶层的 zoom_cmd,把 {{start}} {{end}} {{id}} 换成该镜头的值。2. priority=high 的镜头(低置信、次选接近、转码后实拍/AI 待确认)一定要看;其余镜头也尽量都答。-3. 只依据画面证据,独立判断(这里不给 VLM 的答案,它会在融合时单独计入)。tool 一栏是确定性取证的结果,可能有误,但帧率类证据(24→30 重复帧)和 AIGC 标识可靠,+3. common_evidence 是整片共有的工具证据(帧率、转码),每镜 tool.evidence 里不再重复。只依据画面证据,独立判断(这里不给 VLM 的答案,它会在融合时单独计入)。tool 一栏是确定性取证的结果,可能有误,但帧率类证据(24→30 重复帧)和 AIGC 标识可靠,和画面印象冲突时不要轻易推翻(见 SKILL.md「平台转码视频」)。4. 看不出就把概率分散开,例如 ai_video 0.55 / live_action 0.45,并在 evidence 写清缺什么证据。5. 没看过的镜头不要填(label_probs 保持 {{}}),apply-review 会跳过它。@@ -74,6 +74,17 @@ def _tiles_cmd(video, t0: float, t1: float, every: float, out: str) -> str:return (f"rea-video tiles {shlex.quote(str(video))} --start {t0:.2f} --end {t1:.2f} --every {every:g} "f"-o {shlex.quote(out)}")+def _strip_glosses(d):+ """Measured aspect values carry a reader's gloss in brackets ("正面(光从镜头方向来…)"); the agent has the+ field guide in the instructions, so keep the value only."""+ if isinstance(d, dict): # also drop empty values and the code twin of a readable field (support / support_zh)+ return {k: _strip_glosses(v) for k, v in d.items()+ if v is not None and f"{k}_zh" not in d and f"{k}_name" not in d}+ if isinstance(d, str):+ return re.sub(r"([^()]*)|\s\([^()]*\)", "", d).strip() or d+ return d++def _priority(rec: dict, ctx: dict) -> tuple[str, list[str]]:det = (rec.get("deterministic") or {}).get("probs") or {}probs = sorted(det.items(), key=lambda kv: -kv[1])@@ -138,12 +149,22 @@ def build_tasks(breakdown: dict, out_dir: str) -> tuple[dict, dict]:pk_answers = {"stickers": [{"id": st["id"], "is_overlay": None, "what": ""} for st in sts],"text": [{"id": c["id"], "kind": ""} for c in txt[:80]], "missed": []}shoot = {s["id"]: s.pop("_shoot_like") for s in shots}+ # whole-video evidence (frame rate, transcode) repeats on most shots: state it once at the top+ from collections import Counter++ seen_in = Counter(e for s in shots for e in set(s["tool"]["evidence"]))+ common = [e for e, n in seen_in.items() if len(shots) >= 4 and n > len(shots) / 2]+ for s in shots:+ s["tool"]["evidence"] = [e for e in s["tool"]["evidence"] if e not in common]+ if "aspects" in s:+ s["aspects"] = _strip_glosses(s["aspects"])tasks = {"instructions": INSTRUCTIONS, "video": video, "storyboard": "storyboard.jpg","zoom_cmd": _tiles_cmd(video, 0, 0, 0.2, f"{out_dir}/check_ID.jpg").replace("--start 0.00 --end 0.00", "--start {start} --end {end}").replace("check_ID.jpg", "check_{id}.jpg"),"shot_aspects_template": aspects.review_template(),"video_context": {k: ctx.get(k) for k in ("transcoded", "platform", "native30", "film_hint_share") if k in ctx},"aigc": (breakdown.get("provenance") or {}).get("aigc"),+ **({"common_evidence": common} if common else {}),"shots": shots}if pk_tasks:tasks["packaging"] = pk_tasks