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

Move flow diagrams under docs/flow

junee2acf601d212
diff --git a/.gitignore b/.gitignore
index 9a932ed..ec8cdce 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,13 +2,14 @@
out/
__pycache__/
*.egg-info/
+build/
+dist/
+.ruff_cache/
.pytest_cache/
.venv/
*.pyc
*.log
eval/media/
-.tmp_v06/
-.v08tmp/
.env
.env.*
!.env.example
diff --git a/README.md b/README.md
index fbf962d..14eb385 100644
--- a/README.md
+++ b/README.md
@@ -177,7 +177,7 @@ Real-asset detection is 97–99%; on nine hand-labelled clips, shot boundaries r
## How it works
-![rea-video pipeline](docs/rea-flow_en.svg)
+![rea-video pipeline](docs/flow/rea-flow_en.svg)
1. Split: cut the video into shots and split the audio into voice, music and effects.
2. Gather evidence: measure (frame cadence, sensor noise, whether the whole image moves as one flat plane, AIGC tags in the metadata), look (hands, text, physics) and listen (BPM, key, singing vs speech).
diff --git a/docs/rea-flow.svg b/docs/flow/rea-flow.svg
similarity index 100%
rename from docs/rea-flow.svg
rename to docs/flow/rea-flow.svg
diff --git a/docs/rea-flow_bn.svg b/docs/flow/rea-flow_bn.svg
similarity index 100%
rename from docs/rea-flow_bn.svg
rename to docs/flow/rea-flow_bn.svg
diff --git a/docs/rea-flow_de.svg b/docs/flow/rea-flow_de.svg
similarity index 100%
rename from docs/rea-flow_de.svg
rename to docs/flow/rea-flow_de.svg
diff --git a/docs/rea-flow_en.svg b/docs/flow/rea-flow_en.svg
similarity index 100%
rename from docs/rea-flow_en.svg
rename to docs/flow/rea-flow_en.svg
diff --git a/docs/rea-flow_es.svg b/docs/flow/rea-flow_es.svg
similarity index 100%
rename from docs/rea-flow_es.svg
rename to docs/flow/rea-flow_es.svg
diff --git a/docs/rea-flow_fr.svg b/docs/flow/rea-flow_fr.svg
similarity index 100%
rename from docs/rea-flow_fr.svg
rename to docs/flow/rea-flow_fr.svg
diff --git a/docs/rea-flow_ja.svg b/docs/flow/rea-flow_ja.svg
similarity index 100%
rename from docs/rea-flow_ja.svg
rename to docs/flow/rea-flow_ja.svg
diff --git a/docs/rea-flow_ko.svg b/docs/flow/rea-flow_ko.svg
similarity index 100%
rename from docs/rea-flow_ko.svg
rename to docs/flow/rea-flow_ko.svg
diff --git a/docs/rea-flow_pt.svg b/docs/flow/rea-flow_pt.svg
similarity index 100%
rename from docs/rea-flow_pt.svg
rename to docs/flow/rea-flow_pt.svg
diff --git a/docs/rea-flow_ru.svg b/docs/flow/rea-flow_ru.svg
similarity index 100%
rename from docs/rea-flow_ru.svg
rename to docs/flow/rea-flow_ru.svg
diff --git a/docs/rea-flow_tr.svg b/docs/flow/rea-flow_tr.svg
similarity index 100%
rename from docs/rea-flow_tr.svg
rename to docs/flow/rea-flow_tr.svg
diff --git a/docs/rea-flow_vi.svg b/docs/flow/rea-flow_vi.svg
similarity index 100%
rename from docs/rea-flow_vi.svg
rename to docs/flow/rea-flow_vi.svg
diff --git a/i18n/README_bn.md b/i18n/README_bn.md
index b9008aa..96afdae 100644
--- a/i18n/README_bn.md
+++ b/i18n/README_bn.md
@@ -177,7 +177,7 @@ rea-video বিনামূল্যে ও ওপেন সোর্স। স
## কীভাবে কাজ করে
-![rea-video পাইপলাইন](../docs/rea-flow_bn.svg)
+![rea-video পাইপলাইন](../docs/flow/rea-flow_bn.svg)
1. ভাগ করা: ভিডিওকে শটে কাটা, আর অডিওকে কণ্ঠ, মিউজিক আর ইফেক্টে আলাদা করা।
2. প্রমাণ জোগাড়: মাপা (ফ্রেমের ছন্দ, সেন্সর নয়েজ, পুরো ছবিটা একটি সমতল প্লেনের মতো একসাথে নড়ে কি না, মেটাডেটায় AIGC ট্যাগ), দেখা (হাত, লেখা, পদার্থবিদ্যা) আর শোনা (BPM, স্কেল, গান নাকি কথা)।
diff --git a/i18n/README_de.md b/i18n/README_de.md
index 1ced8eb..2311613 100644
--- a/i18n/README_de.md
+++ b/i18n/README_de.md
@@ -177,7 +177,7 @@ Echte Assets werden zu 97–99 % erkannt; bei neun von Hand annotierten Clips we
## Wie es funktioniert
-![rea-video-Pipeline](../docs/rea-flow_de.svg)
+![rea-video-Pipeline](../docs/flow/rea-flow_de.svg)
1. Zerlegen: Video in Shots schneiden, Ton in Stimme, Musik und Effekte trennen.
2. Belege sammeln: Frames vermessen (Frame-Takt, Sensorrauschen, ob sich das ganze Bild wie eine einzige Ebene verschiebt, AIGC-Tags in den Metadaten), Bilder anschauen (Hände, Text, Physik), hinhören (BPM, Tonart, Gesang oder Sprache).
diff --git a/i18n/README_es.md b/i18n/README_es.md
index 45877b2..8b3592b 100644
--- a/i18n/README_es.md
+++ b/i18n/README_es.md
@@ -177,7 +177,7 @@ La detección de material real acierta entre un 97 y un 99 %; en nueve clips ano
## Cómo funciona
-![Pipeline de rea-video](../docs/rea-flow_es.svg)
+![Pipeline de rea-video](../docs/flow/rea-flow_es.svg)
1. Separar: corta el vídeo en planos y divide el audio en voz, música y efectos.
2. Reunir evidencias: mide los fotogramas (cadencia, ruido del sensor, si toda la imagen se desplaza como un único plano, etiquetas AIGC en los metadatos), mira las imágenes (manos, texto, física) y escucha el audio (BPM, tonalidad, si se canta o se habla).
diff --git a/i18n/README_fr.md b/i18n/README_fr.md
index a33e0b5..6a8980e 100644
--- a/i18n/README_fr.md
+++ b/i18n/README_fr.md
@@ -177,7 +177,7 @@ La détection des assets réels atteint 97 à 99 % ; sur neuf clips annotés à
## Comment ça marche
-![Pipeline rea-video](../docs/rea-flow_fr.svg)
+![Pipeline rea-video](../docs/flow/rea-flow_fr.svg)
1. Découpage : la vidéo est coupée en plans, et le son séparé en voix, musique et effets.
2. Collecte des indices : mesures sur les images (cadence d'images, bruit du capteur, image entière qui bouge d'un bloc comme un seul plan, tags AIGC dans les métadonnées) ; examen visuel (mains, texte, physique) ; écoute (BPM, tonalité, chant ou parole).
diff --git a/i18n/README_ja.md b/i18n/README_ja.md
index bd9a57e..919743f 100644
--- a/i18n/README_ja.md
+++ b/i18n/README_ja.md
@@ -177,7 +177,7 @@ rea-video は無料のオープンソースです。スポンサーの支援で
## 仕組み
-![rea-video のパイプライン](../docs/rea-flow_ja.svg)
+![rea-video のパイプライン](../docs/flow/rea-flow_ja.svg)
1. 分割:動画をショットに切り分け、音声を声・音楽・効果音に分けます。
2. 手がかり集め:フレームを測り(フレーム間隔、センサーノイズ、画面全体が 1 枚の平面としてパンしているか、メタデータの AIGC タグ)、画像を見て(手、文字、物理的なおかしさ)、音を聴きます(BPM、キー、歌か話し声か)。
diff --git a/i18n/README_ko.md b/i18n/README_ko.md
index e2a8bc8..b64f74f 100644
--- a/i18n/README_ko.md
+++ b/i18n/README_ko.md
@@ -177,7 +177,7 @@ rea-video는 무료 오픈소스입니다. 스폰서의 지원으로 꾸준히
## 작동 방식
-![rea-video 파이프라인](../docs/rea-flow_ko.svg)
+![rea-video 파이프라인](../docs/flow/rea-flow_ko.svg)
1. 분할: 영상을 샷 단위로 자르고, 오디오는 음성·음악·효과음으로 나눕니다.
2. 근거 수집: 프레임을 측정하고(프레임 케이던스, 센서 노이즈, 화면 전체가 하나의 평면처럼 패닝하는지, 메타데이터의 AIGC 태그), 이미지를 보고(손, 글자, 물리 법칙), 소리를 듣습니다(BPM, 키, 노래인지 말인지).
diff --git a/i18n/README_pt.md b/i18n/README_pt.md
index b7fc414..7531a00 100644
--- a/i18n/README_pt.md
+++ b/i18n/README_pt.md
@@ -177,7 +177,7 @@ A detecção de material real fica entre 97% e 99%; em nove clipes anotados à m
## Como funciona
-![Pipeline do rea-video](../docs/rea-flow_pt.svg)
+![Pipeline do rea-video](../docs/flow/rea-flow_pt.svg)
1. Dividir: corta o vídeo em planos e separa o áudio em voz, música e efeitos.
2. Juntar evidências: mede os quadros (cadência de quadros, ruído do sensor, se a imagem inteira se desloca como um único plano, tags de AIGC nos metadados); olha as imagens (mãos, texto, física); ouve o áudio (BPM, tom, se é canto ou fala).
diff --git a/i18n/README_ru.md b/i18n/README_ru.md
index 6c1c1ab..e411aeb 100644
--- a/i18n/README_ru.md
+++ b/i18n/README_ru.md
@@ -177,7 +177,7 @@ rea-video бесплатный и открытый. Спонсоры помог
## Как это устроено
-![Конвейер rea-video](../docs/rea-flow_ru.svg)
+![Конвейер rea-video](../docs/flow/rea-flow_ru.svg)
1. Нарезка: видео делится на кадры, звук — на голос, музыку и эффекты.
2. Сбор доказательств: замеры по кадрам (частота смены кадров, шум сенсора, двигается ли вся картинка как одна плоскость, метки AIGC в метаданных); анализ изображения (руки, текст, физика); анализ звука (BPM, тональность, пение или речь).
diff --git a/i18n/README_tr.md b/i18n/README_tr.md
index 048721a..6a08dbc 100644
--- a/i18n/README_tr.md
+++ b/i18n/README_tr.md
@@ -177,7 +177,7 @@ Gerçek materyal tespiti %97–99; elle etiketlenmiş dokuz klipte çekim sını
## Nasıl çalışır
-![rea-video iş akışı](../docs/rea-flow_tr.svg)
+![rea-video iş akışı](../docs/flow/rea-flow_tr.svg)
1. Ayır: videoyu çekimlere böl ve sesi konuşma, müzik ve efektler olarak ayır.
2. Kanıt topla: ölç (kare temposu, sensör gürültüsü, görüntünün tamamının tek bir düz düzlem gibi hareket edip etmediği, meta verideki AIGC etiketleri), bak (eller, yazılar, fizik) ve dinle (BPM, ton, şarkı mı konuşma mı).
diff --git a/i18n/README_vi.md b/i18n/README_vi.md
index 6ad9a64..2b570cc 100644
--- a/i18n/README_vi.md
+++ b/i18n/README_vi.md
@@ -177,7 +177,7 @@ Nhận diện tư liệu thật đạt 97–99%; trên 9 clip gắn nhãn thủ
## Cơ chế hoạt động
-![Quy trình rea-video](../docs/rea-flow_vi.svg)
+![Quy trình rea-video](../docs/flow/rea-flow_vi.svg)
1. Tách lớp: cắt video thành từng shot và tách âm thanh thành 3 track gồm lời thoại, nhạc nền và hiệu ứng.
2. Thu thập bằng chứng: đo đạc thông số (nhịp lặp khung hình, nhiễu cảm biến, xem toàn khung hình có chuyển động như một mặt phẳng hay không, thẻ AIGC trong metadata), nhìn ảnh (bàn tay, chữ viết, quy luật vật lý) và lắng nghe âm thanh (BPM, giọng điệu, hát hay nói).
diff --git a/i18n/README_zh.md b/i18n/README_zh.md
index 1f5112b..5829c5a 100644
--- a/i18n/README_zh.md
+++ b/i18n/README_zh.md
@@ -177,7 +177,7 @@ rea-video 免费开源,赞助商的支持让它能持续维护。
## 怎么判断的
-![rea-video 流程](../docs/rea-flow.svg)
+![rea-video 流程](../docs/flow/rea-flow.svg)
1. 切镜头:把视频按镜头切开,声音拆成人声、配乐、音效。
2. 取证据:测画面(帧率规律、噪点、是不是整张图在推拉、文件里有没有 AIGC 标识);看图(手指、文字、物理细节对不对);听声音(BPM、调性、是唱还是说)。
diff --git a/scripts/render_flow_svg.py b/scripts/render_flow_svg.py
index 1f4fd81..45c41e1 100644
--- a/scripts/render_flow_svg.py
+++ b/scripts/render_flow_svg.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
-"""生成 README 用的流程图 docs/rea-flow.svg(中文)和 docs/rea-flow_en.svg(英文)和 docs/rea-flow_ja.svg(日文),以及韩 / 俄 / 西 / 葡 / 法 / 德 / 越 / 孟加拉版 docs/rea-flow_{ko,ru,es,pt,fr,de,vi,bn}.svg。
+"""生成 README 用的流程图 docs/flow/rea-flow.svg(中文)和 docs/flow/rea-flow_en.svg(英文)和 docs/flow/rea-flow_ja.svg(日文),以及韩 / 俄 / 西 / 葡 / 法 / 德 / 越 / 孟加拉版 docs/flow/rea-flow_{ko,ru,es,pt,fr,de,vi,bn}.svg。
-用法:python3 scripts/render_flow_svg.py [输出目录,默认 docs]
+用法:python3 scripts/render_flow_svg.py [输出目录,默认 docs/flow]
画的是一个具体例子:一条带货视频切成 5 个镜头 + 声音,每列一个镜头,每行一步
(切开 / 取证据 / 判断 / 复刻方案)。改文案改顶部的 ZH / EN / JA / KO / RU / ES / PT / FR / DE / VI / BN 字典即可。
@@ -807,7 +807,7 @@ def build(S, lang):
if __name__ == "__main__":
- out = Path(sys.argv[1]) if len(sys.argv) > 1 else Path(__file__).resolve().parent.parent / "docs"
+ out = Path(sys.argv[1]) if len(sys.argv) > 1 else Path(__file__).resolve().parent.parent / "docs" / "flow"
(out / "rea-flow.svg").write_text(build(ZH, "zh"), encoding="utf-8")
(out / "rea-flow_en.svg").write_text(build(EN, "en"), encoding="utf-8")
(out / "rea-flow_ja.svg").write_text(build(JA, "ja"), encoding="utf-8")