feat: pass WAV paths as CLI args to verify_sync
This commit is contained in:
1 parent
5ec94cc4dd
commit
bfd0546717
2 files changed
+19
-12
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user