feat: pass WAV paths as CLI args to verify_sync

This commit is contained in:
Honney OC committed 2026-09-14 02:36:34 +00:00
1 parent 30015d5cad
commit eaa23604a5
2 files changed
+19 -12

No files matched your search

+3
View File
@@ -432,6 +432,8 @@ class SyncWindow(QtWidgets.QMainWindow):
import subprocess
script = os.path.join(os.path.dirname(__file__), "verify_sync.py")
cmd = [sys.executable, script, "--config", "config.toml",
"--a", self.video_a, "--b", self.video_b,
"--wav-a", self.a_path, "--wav-b", self.b_path,
"--lag", f"{self.lag_sec:.6f}", "--mode", "short"]
print(f"Launching: {' '.join(cmd)}")
subprocess.Popen(cmd, cwd=os.path.dirname(os.path.abspath(__file__)))
@@ -454,6 +456,7 @@ class SyncWindow(QtWidgets.QMainWindow):
# Launch verify in full mode
cmd2 = [sys.executable, verify_script, "--config", "config.toml",
"--a", self.video_a, "--b", self.video_b,
"--lag", f"{self.lag_sec:.6f}", "--mode", "full"]
print(f"Launching: {' '.join(cmd2)}")
subprocess.Popen(cmd2, cwd=script_dir)