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

Keep pitch frames steady and clarify Windows setup

june2901858590cd
diff --git a/rea_video/speakers.py b/rea_video/speakers.py
index a556d88..3037333 100644
--- a/rea_video/speakers.py
+++ b/rea_video/speakers.py
@@ -290,7 +290,7 @@ def _pitch(x: np.ndarray, ranges: list[tuple[float, float]]) -> dict:
# The diarization model can report a turn ending in padding past the real audio.
start = max(0, int(a * SR))
end = min(len(x), int(b * SR))
- for s in range(start, end - frame + 1, frame):
+ for s in range(start, end - frame, frame):
seg = x[s:s + frame]
if np.sqrt(np.mean(seg ** 2)) < 0.01:
continue
diff --git a/skills/rea-video/references/setup.md b/skills/rea-video/references/setup.md
index c922519..848af91 100644
--- a/skills/rea-video/references/setup.md
+++ b/skills/rea-video/references/setup.md
@@ -18,7 +18,7 @@ New-Item -ItemType Directory -Force "$HOME\.claude\skills" | Out-Null
New-Item -ItemType Junction -Path "$HOME\.claude\skills\rea-video" -Target "$PWD\skills\rea-video"
```
-Windows 上 `pip` 用的是 PATH 里第一个 Python:同时装过 3.8 和 3.12 的机器上,默认解释器低于 3.10 时这一步会直接报 `requires a different Python: 3.8.10 not in '>=3.10'`。先 `py -0p` 看有哪些版本,再用 `py -3.12 -m pip install ".[ocr]"`。
+Windows 上 `pip` 用的是 PATH 里第一个 Python:同时装过 3.8 和 3.12 的机器上,默认解释器低于 3.10 时这一步会直接报 `requires a different Python: 3.8.10 not in '>=3.10'`。先 `py -0p` 看有哪些版本,再用 `py -3.12 -m pip install ".[ocr]"`;装完找不到 `rea-video` 命令时,用 `py -3.12 -m rea_video` 运行。
`Junction` 不需要管理员权限(`SymbolicLink` 需要);仓库路径带中文或空格不用特殊处理。`rea-video pdf` 会用 `Program Files` 或 `%LOCALAPPDATA%` 下的 Chrome / Edge,装在别处就设 `REA_CHROME`。