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
Join a detector transition at the start of a survey one
juned6701abe8bb4
diff --git a/rea_video/survey.py b/rea_video/survey.pyindex dbb3433..3e9397c 100644--- a/rea_video/survey.py+++ b/rea_video/survey.py@@ -997,7 +997,10 @@ def build_timeline(track: FrameTrack, shots: list[Shot], found: dict, meta: dictfor s in shots[1:]:t = s.startinside = [c for c in cuts if c["span"][1] - c["span"][0] > 2 * edge and c["span"][0] + edge < t < c["span"][1] - edge]- at_edge = [c for c in cuts if c not in inside and c["span"][0] - edge <= t <= c["span"][1] + edge and c["span"][1] > c["span"][0]]+ # a cut on a transition's first or last frame is a change of its own next to it; only a detector "transition"+ # (whip, dissolve, ...) where the transition starts is the same change, seen from its first frame+ at_edge = [c for c in cuts if c not in inside and c["span"][0] - edge <= t <= c["span"][1] + edge and c["span"][1] > c["span"][0]+ and not (s.transition_in not in (None, "cut", "start", "flash") and t <= c["span"][0] + edge)]if inside or (not at_edge and any(c["span"][0] - near <= t <= c["span"][1] + near for c in cuts)):for c in inside: # the survey found the same change: take the detector's exact framec.update(frame=s.start_frame, t=round(t, 3), by="survey+tool")