diff --git a/scripts/asr_processor.py b/scripts/asr_processor.py index 345e2f77..63d35c2f 100755 --- a/scripts/asr_processor.py +++ b/scripts/asr_processor.py @@ -181,7 +181,12 @@ def run_asr(video_path, output_path, uuid: str = "", fps: float = None): if fps is not None: print(f"[ASR] Using CLI-provided FPS: {fps}", file=sys.stderr) else: - cut_path_check = output_path.replace(".asr.json", ".cut.json") + # Use uuid to construct CUT path (output_path may have .tmp suffix from executor) + output_dir = os.path.dirname(output_path) + if uuid and output_dir: + cut_path_check = os.path.join(output_dir, f"{uuid}.cut.json") + else: + cut_path_check = output_path.replace(".asr.json", ".cut.json") fps = get_fps_from_cut(cut_path_check) if fps: print(f"[ASR] FPS from CUT: {fps}", file=sys.stderr) diff --git a/src/core/processor/executor.rs b/src/core/processor/executor.rs index ed0f66fd..790b667b 100644 --- a/src/core/processor/executor.rs +++ b/src/core/processor/executor.rs @@ -502,6 +502,7 @@ impl PythonExecutor { cmd.process_group(0); tracing::info!("[{}] Starting: {:?}", log_prefix, script_name); + tracing::info!("[{}] Full command: {:?}", log_prefix, cmd); let mut child = cmd .spawn()