Skip to content

Commit dde84e1

Browse files
Use processed videos from ~/videos/take-2 for audio sync
Instead of syncing the raw source videos, use the already-processed videos from take-2 directory to avoid re-processing. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent e76ec8a commit dde84e1

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

scripts/sync-second-room-audio.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
# Configuration
2626
TAGS_FILE = os.path.expanduser("~/videos/quadrant-tags.json")
2727
AUDIO_DIR = os.path.expanduser("~/downloads/Second Room Recordings/Audio")
28+
PROCESSED_VIDEO_DIR = os.path.expanduser("~/videos/take-2")
2829
OUTPUT_DIR = os.path.expanduser("~/videos/synced")
2930

3031
# Analysis settings
@@ -191,15 +192,16 @@ def main():
191192

192193
with tempfile.TemporaryDirectory() as tmpdir:
193194
for i, (name, data) in enumerate(second_room_videos.items(), 1):
194-
video_path = data["path"]
195+
# Use processed video from take-2 directory (same filename logic as process-videos.py)
196+
# Original: "2025-11-18 10-29-29.mov" -> Processed: "2025-11-18 10-29-29.mp4"
197+
processed_name = Path(name).stem + ".mp4"
198+
video_path = os.path.join(PROCESSED_VIDEO_DIR, processed_name)
199+
195200
print(f"[{i}/{len(second_room_videos)}] {name}")
196201

197202
if not Path(video_path).exists():
198-
# Try with home prefix
199-
video_path = os.path.expanduser(f"~/{video_path}")
200-
if not Path(video_path).exists():
201-
print(f" Video not found: {video_path}")
202-
continue
203+
print(f" Processed video not found: {video_path}")
204+
continue
203205

204206
print(f" Analyzing audio...")
205207
best_match, offset, score, _ = find_best_match(video_path, audio_files, tmpdir)

0 commit comments

Comments
 (0)