Skip to content

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 格式输出。

只有清晰度节奏、没有重复帧时只算弱证据,看图结论可改判;转码文件里原生 30fps 的镜头按手机实拍算;说明样片经过重新压缩

june9735168150f4
diff --git a/README.md b/README.md
index 7cb1ffc..11826f4 100644
--- a/README.md
+++ b/README.md
@@ -73,6 +73,8 @@ Add a video-capable model — Gemini or Doubao both work: give the agent the end
## Examples
+The sample videos in `docs/cases/videos/` are re-compressed to keep the repo small, which strips the TikTok / Douyin platform tags. Running them yourself gives different results from the reports below, especially without a vision model. Use the original platform download to reproduce.
+
<table>
<tr>
<td width="50%" valign="top">
diff --git a/docs/cases.md b/docs/cases.md
index 163f3f6..ade1e3c 100644
--- a/docs/cases.md
+++ b/docs/cases.md
@@ -2,6 +2,8 @@
7 条都是开着看图模型跑完整流程的结果,有分歧的镜头都经过 agent 看图复核。拼帧图里每格是一个镜头,色条写着制作方式、把握程度和时间;完整报告里有每个镜头的证据、提示词和复刻方案。
+`docs/cases/videos/` 里的样片为了减小仓库体积重新压缩过,平台标记(抖音 / TikTok / 微信)没有保留,还多了一层压缩痕迹。自己拿它们跑,结果会和报告有出入,不开看图模型时更明显。要复现报告,请用平台下载的原文件。
+
## 1. 原片 vs AI 复刻:TikTok 实拍 → 换产品重做
21 秒 · 原片 11 镜 / 复刻版 8 镜
diff --git a/docs/decompose.md b/docs/decompose.md
index baf50e0..187fd99 100644
--- a/docs/decompose.md
+++ b/docs/decompose.md
@@ -28,7 +28,7 @@
| 是不是一张图在推拉 | LK 光流拟合相似变换(RANSAC):内点率高、残差小、无局部运动,且运动补偿后几乎没有残余 | 高 |
| 渲染还是拍摄的纹理 | 平坦 8×8 块比例、覆盖 95% 像素所需颜色数、横竖直边比例、Immerkær 噪声 | 高(区分渲染与照片) |
| 2D 合成 / 代码动效 | 背景像素逐帧完全不变、只有局部在动 | 高 |
-| 原始帧率 | 重复帧规律(24→30 时约 20%,周期 4–6);插帧导致的清晰度周期起伏;原生 ≥48fps 且无重复帧 | 中高:生成模型输出 24/25fps,手机常拍 60fps |
+| 原始帧率 | 重复帧规律(24→30 时约 20%,周期 4–6);插帧导致的清晰度周期起伏(没有重复帧时只算弱证据:重新压缩也会造出来);原生 ≥48fps 且无重复帧 | 中高:生成模型输出 24/25fps,手机常拍 60fps |
| 实拍还是 AI 还是 3D | 传感器噪声与时域噪声、手持抖动、帧率指纹,加上 VLM 看破绽(手指、文字、物理、纹理闪烁) | 只有确定性时为中,加 VLM 后为高 |
| 元数据 | 拍摄设备 make/model;GB 45438 AIGC 隐式标识(Label 1/2/3 及服务方编码);C2PA;编辑器/渲染器签名 | 出现时很强;常被平台清除 |
| 叠加层 | 背景在动但像素冻结的边缘簇,加 OCR 文字轨(位置、是否随时间变化、是否水平) | 中高 |
diff --git a/i18n/README_zh.md b/i18n/README_zh.md
index eb5082b..4b59cc1 100644
--- a/i18n/README_zh.md
+++ b/i18n/README_zh.md
@@ -71,6 +71,8 @@ rea-video --help
## 案例
+`docs/cases/videos/` 里的样片为了减小仓库体积重新压缩过,抹掉了抖音 / TikTok 的平台标记。自己拿它们跑,结果会和下面的报告不一样,不开看图模型时尤其明显。要复现请用平台下载的原文件。
+
<table>
<tr>
<td width="50%" valign="top">
diff --git a/rea_video/classify.py b/rea_video/classify.py
index acff454..1334066 100644
--- a/rea_video/classify.py
+++ b/rea_video/classify.py
@@ -305,16 +305,19 @@ def deterministic(f: dict, overlay: dict | None = None, text: dict | None = None
resampled = (f.get("sharp_alt", 0) > 0.025 or f.get("sharp_period_ac", 0) > 0.45) and not ctx.get("transcoded")
if resampled and not pulldown and family == "dynamic":
pulldown = "interpolated"
- ev.append(T("逐帧清晰度呈周期性起伏(周期 {p} 帧,相关 {ac:.2f}):画面经过插帧/帧率转换,原始帧率更低",
- "Per-frame sharpness oscillates periodically (period {p} frames, correlation {ac:.2f}): the footage was frame-interpolated / frame-rate converted from a lower source rate",
+ ev.append(T("逐帧清晰度呈周期性起伏(周期 {p} 帧,相关 {ac:.2f}),但没有重复帧:可能是插帧/帧率转换,也可能只是重新压缩留下的节奏(去掉了平台标记的转码文件也会这样),单凭这一条不能定 AI",
+ "Per-frame sharpness oscillates periodically (period {p} frames, correlation {ac:.2f}) with no duplicate frames: frame interpolation / rate conversion, or just the rhythm of a re-encode (transcodes whose platform tags were stripped show it too); not enough on its own to call AI",
p=f.get('sharp_period'), ac=f.get('sharp_period_ac', 0)))
facts["pulldown"] = pulldown
+ # duplicate-frame pulldown is measured cadence; "interpolated" is only a sharpness rhythm, which any re-encode
+ # can fake when the platform tags that would switch it off are gone (re-compressed files, downloads with stripped metadata)
+ dup_pd = bool(pulldown) and pulldown != "interpolated"
# this shot's own cadence: a 30 fps file whose frames never repeat was captured at 30 fps (phones) rather than
# generated at 24 and pulled up. Per shot, unlike ctx["native30"], so a mixed edit (AI opener + phone footage)
# keeps the signature on the filmed shots. Platform re-encodes add a GOP sharpness rhythm, so that cue is skipped there.
facts["native_cadence"] = bool(fps and 29 <= fps <= 31 and dup < 0.02 and not pulldown
and (ctx.get("transcoded") or f.get("sharp_period_ac", 0) < 0.45))
- if pulldown:
+ if dup_pd:
ev.append(T("重复帧呈 {pd} 规律({dup:.0%},周期 {per}):原始素材为 24/25fps 后转码,常见于 AI 生成视频、3D/动画渲染或电影素材",
"Duplicate frames follow a {pd} pattern ({dup:.0%}, period {per}): a 24/25fps source transcoded up, typical of AI-generated video, 3D / animation renders or cinema footage",
pd=pulldown, dup=dup, per=per))
@@ -325,7 +328,7 @@ def deterministic(f: dict, overlay: dict | None = None, text: dict | None = None
live_hint += 0.3 * _sig((0.5 - zero) / 0.1)
live_hint += 0.6 * (1.0 if f.get("camera") == "handheld_like" else 0.0)
live_hint += 0.2 * (1.0 if dup < 0.03 else 0.0)
- live_hint -= 0.9 * (1.0 if pulldown else 0.0)
+ live_hint -= (0.9 if dup_pd else 0.3 if pulldown else 0.0)
# generators emit 24/25/30 fps; a native >=48 fps stream with no duplicated frames was
# most likely captured by a phone/camera (or screen/game capture)
native_hfr = bool(fps and fps >= 47 and dup < 0.05 and not pulldown)
@@ -347,7 +350,13 @@ def deterministic(f: dict, overlay: dict | None = None, text: dict | None = None
gen_tags0 = bool((provenance or {}).get("hints", {}).get("generator"))
degraded = bool(ctx.get("transcoded") and noise < 0.9)
facts["transcode_degraded"] = degraded
- if degraded and not pulldown and not gen_tags0 and live_hint < 0.45:
+ if degraded and not pulldown and not gen_tags0 and ctx.get("native30") and facts["native_cadence"] and live_hint < 0.55:
+ # the noise is gone but the camera cadence is not: native 30fps file, and this shot has it too
+ live_hint = 0.55
+ ev.append(T("经过平台二次转码({plat}),传感器噪声被压没了;但整片和这一镜都是原生 30fps、没有 24fps 源的重复帧,按手机实拍算",
+ "Platform transcode ({plat}) has compressed the sensor noise away, but the file and this shot are native 30fps with no 24fps-source duplicate frames: counted as phone footage",
+ plat=join(ctx.get("platform", []))))
+ elif degraded and not pulldown and not gen_tags0 and live_hint < 0.45:
# compression erased the sensor noise: its absence no longer argues for AI
live_hint = 0.45
ev.append(T("经过平台二次转码({plat}),传感器噪声被压没了:噪声类证据失效,实拍还是 AI 主要看帧率和画面内容",
@@ -387,7 +396,7 @@ def deterministic(f: dict, overlay: dict | None = None, text: dict | None = None
s["static_hold"] += 0.5 * photo
s["cg_3d"] += 0.4 * graphic * (1 - text_like) * (1 - 0.8 * max(fine_dark, fine_light, vector))
s["code_render"] += 1.2 * graphic * max(fine_dark, fine_light, vector)
- s["ai_video"] += 0.8 * photo * (1.4 if pulldown else 1.0)
+ s["ai_video"] += 0.8 * photo * (1.4 if dup_pd else 1.0)
s["live_action"] += 0.3 * photo * live_hint
else:
axis_f = 1.2 if axis > 0.38 else 0.8
@@ -405,7 +414,7 @@ def deterministic(f: dict, overlay: dict | None = None, text: dict | None = None
sat=f.get('saturation', 0), pal=pal))
s["screen_capture"] += 1.2 * graphic * text_like * (0.3 + _sig((0.12 - f.get("saturation", 0.3)) / 0.04))
s["live_action"] += 1.5 * photo * live_hint
- s["ai_video"] += 1.5 * photo * (1 - live_hint) * (1.4 if pulldown else 1.0)
+ s["ai_video"] += 1.5 * photo * (1 - live_hint) * (1.4 if dup_pd else 1.0)
# a talking-head avatar is a fixed frame; a shaking handheld camera argues for a person filming
moving_cam = RULES["avatar_moving_camera"] if f.get("camera") in ("handheld_like", "smooth_move") else 1.0
s["avatar"] += 0.6 * photo * (1 if faces > 0.6 else 0.1) * (1.0 if speech else 0.4) * (1 - live_hint) * moving_cam
diff --git a/rea_video/pipeline.py b/rea_video/pipeline.py
index 1534deb..c2ed60d 100644
--- a/rea_video/pipeline.py
+++ b/rea_video/pipeline.py
@@ -243,6 +243,13 @@ def _ai_or_live_doubt(label: str, facts: dict, prov: dict, vctx: dict, seen_live
if not seen:
return T("AI 还是 24p 相机实拍待确认:只有帧率证据(24fps 源)、没有 AIGC 标识,需要看图确认",
"AI or 24p camera footage, to confirm: only frame-rate evidence (24fps source) and no AIGC label, needs an image reader")
+ if label == "ai_video" and facts.get("pulldown") == "interpolated" and not (prov.get("hints") or {}).get("generator"):
+ # a sharpness rhythm with no duplicate frames: a re-encode whose platform tags were stripped leaves the same rhythm
+ if seen_live >= 0.5:
+ return T("AI 还是实拍待确认:只有清晰度节奏、没有重复帧(重新压缩也会留下),看图的一方认为是实拍,又没有 AIGC 标识",
+ "AI or live action, to confirm: only a sharpness rhythm and no duplicate frames (re-encodes leave it too), the image reader calls it live action, and there is no AIGC label")
+ return T("AI 还是实拍待确认:只有清晰度节奏、没有重复帧(重新压缩也会留下)、没有 AIGC 标识,需要看图确认",
+ "AI or live action, to confirm: only a sharpness rhythm, no duplicate frames (re-encodes leave it too) and no AIGC label, needs an image reader")
if not facts.get("transcode_degraded"):
return None
if label == "live_action" and not facts.get("pulldown"):
@@ -323,7 +330,8 @@ def _vlm_gate(rec: dict, vprobs: dict | None, vctx: dict) -> dict | None:
return None
# the tools' confidence only protects the AI / live axis (frame-rate evidence), not a "rendered" texture call
if (d in AI_LIVE_AXIS or v in AI_LIVE_AXIS) and not (person and d not in AI_LIVE_AXIS):
- if dp >= 0.65 and dp - sp >= 0.25: # tools are sure: frame-rate evidence beats "looks real / looks like a presenter"
+ # a sharpness rhythm alone (pulldown "interpolated", no duplicate frames) is not frame-rate evidence
+ if dp >= 0.65 and dp - sp >= 0.25 and facts.get("pulldown") != "interpolated": # tools are sure: frame-rate evidence beats "looks real / looks like a presenter"
return None
if (v == "live_action" and facts.get("transcode_degraded") and not vctx.get("native30")
and not facts.get("native_cadence")):
diff --git a/skills/rea-video/references/review.md b/skills/rea-video/references/review.md
index 633312f..95a68ef 100644
--- a/skills/rea-video/references/review.md
+++ b/skills/rea-video/references/review.md
@@ -30,3 +30,4 @@ SKILL.md 第 1 节流程的补充:看图结果怎么和工具融合,以及
- 噪声类证据失效,"没有噪声"不再说明是 AI;工具会把这类镜头标成"实拍还是 AI 待确认"。
- 仍然可靠的证据:24→30 的重复帧(生成模型多输出 24fps;整片原生 30fps、没有重复帧更像手机直出)、AIGC 隐式标识、画面内容(真手、真实环境、物理是否自然——这一条必须看图或开 VLM)。
- 证据冲突时的优先级:**规律的 24→30 重复帧 + AIGC 隐式标识**同时存在时,比"看图没发现 AI 破绽"更有分量,不要据此把镜头改判成实拍;最多写"倾向 AI,实拍待确认"。反过来,整片原生 30fps、无重复帧、无 AIGC 标识,再加上看图画面正常,才判实拍。
+- 重新压缩过、平台标记被抹掉的文件(下载工具去了元数据、仓库 `docs/cases/videos/` 的样片)不会被标成转码,但同样有假的插帧节奏。只有「清晰度周期起伏」、没有重复帧的镜头,工具会标「AI 还是实拍待确认」,看图结论可以直接改判。
diff --git a/skills/rea-video/references/taxonomy.md b/skills/rea-video/references/taxonomy.md
index 19db525..ca513e8 100644
--- a/skills/rea-video/references/taxonomy.md
+++ b/skills/rea-video/references/taxonomy.md
@@ -38,7 +38,8 @@
| 相邻帧逐像素重复、首尾无变化 | 静帧;如果是平涂渲染卡片,归为代码渲染 |
| 整帧按一个刚体变换缩放/平移,补偿后无残差,且**没有** 24fps 源的帧率痕迹 | 静态图推拉 |
| 平涂色块多、用色少、横竖直边多 | 渲染(代码或 3D);背景像素逐帧完全不变、只有局部在动 → 2D 代码动效 |
-| 约 20% 帧重复、周期 4–6(24→30),或清晰度按周期起伏(插帧) | 源是 24fps:AI 生成 / 3D / 电影素材,不是手机原生拍摄 |
+| 约 20% 帧重复、周期 4–6(24→30) | 源是 24fps:AI 生成 / 3D / 电影素材,不是手机原生拍摄 |
+| 只有清晰度按周期起伏、没有重复帧(插帧) | 弱证据:插帧和重新压缩都会造出来,要看图确认 |
| 原生 ≥48fps 且无重复、无插帧周期 | 多为手机/相机实拍 |
| 传感器噪声和时域噪声明显、手持抖动 | 实拍 |
| 平台转码文件:整片原生 30fps、实拍类镜头没有重复帧 | 倾向手机实拍(转码后噪声证据失效,以帧率为准) |
diff --git a/tests/test_transcode.py b/tests/test_transcode.py
index b15613d..63afad8 100644
--- a/tests/test_transcode.py
+++ b/tests/test_transcode.py
@@ -90,3 +90,36 @@ def test_reader_decides_when_tools_are_undecided():
assert _vlm_gate(rec, live, {"native30": False}) is None # a 0.45 lead is a call: live must be in the top two
rec["deterministic"]["probs"] = {"cg_3d": 0.35, "ai_video": 0.3, "live_action": 0.12, "code_render": 0.23}
assert _vlm_gate(rec, live, {"native30": False}) is None # the reader's pick trails by too much
+
+
+def test_sharpness_rhythm_alone_is_weak_evidence():
+ # a re-encode with its platform tags stripped: no duplicate frames, only a sharpness rhythm
+ f = dict(PHOTO, noise_sigma=0.5, sharp_period_ac=0.68, sharp_period=4)
+ probs, ev, facts = deterministic(f, provenance={}, fps=30.0, ctx={})
+ assert facts["pulldown"] == "interpolated"
+ assert not any("重复帧呈" in e or "Duplicate frames follow" in e for e in ev) # no "duplicate frames" claim at 0%
+ dup, _, _ = deterministic(dict(PHOTO, dup_ratio=0.2, dup_period=5, dup_regularity=0.6), provenance={}, fps=30.0, ctx={})
+ assert probs["ai_video"] < dup["ai_video"] # weaker than real 24->30 duplicate frames
+
+
+def test_reviewer_overrides_sharpness_rhythm_only_call():
+ from rea_video.pipeline import _ai_or_live_doubt, _vlm_gate
+
+ live = {"live_action": 0.9, "ai_video": 0.1}
+ rec = {"deterministic": {"probs": {"ai_video": 0.86, "live_action": 0.05, "cg_3d": 0.05, "avatar": 0.04},
+ "facts": {"pulldown": "interpolated"}},
+ "review": {"label_probs": live}}
+ assert _vlm_gate(rec, live, {}) == live
+ rec["deterministic"]["facts"]["pulldown"] = "24→30"
+ assert _vlm_gate(rec, live, {}) is None # duplicate-frame pulldown still protects the tools' call
+ assert _ai_or_live_doubt("ai_video", {"pulldown": "interpolated"}, {}, {})
+ assert _ai_or_live_doubt("ai_video", {"pulldown": "interpolated"}, {"hints": {"generator": ["Kling"]}}, {}) is None
+
+
+def test_transcoded_native30_shot_counts_as_phone_footage():
+ # native 30fps file, this shot has no duplicate frames, platform transcode wiped the noise
+ ctx = video_context(_shots(0.0), PROV_DOUYIN, 30.0)
+ f = dict(PHOTO, noise_sigma=0.45, temporal_noise=0.5, zero_pixel_ratio=0.6, camera="static")
+ probs, _, facts = deterministic(f, provenance=PROV_DOUYIN, fps=30.0, ctx=ctx)
+ assert facts["transcode_degraded"] and facts["native_cadence"]
+ assert probs["live_action"] > probs["ai_video"]