getting closer with sync issues
This commit is contained in:
+3
-3
@@ -393,7 +393,7 @@ def encode_dvr_distributed(input_file, output_dir, workers, segment_seconds=60,
|
||||
safe_log_info(f"Distributed encode: {input_path} -> {output_path} (workers: {workers})")
|
||||
print(f"{Colors.BLUE}Distributed encode (HEVC): {input_path.name}{Colors.ENDC}")
|
||||
remote_ffmpeg = remote_ffmpeg_path or os.environ.get("DISTRIBUTED_REMOTE_FFMPEG_PATH")
|
||||
distributed_encode(
|
||||
ok = distributed_encode(
|
||||
workers,
|
||||
str(input_path),
|
||||
str(output_path),
|
||||
@@ -405,10 +405,10 @@ def encode_dvr_distributed(input_file, output_dir, workers, segment_seconds=60,
|
||||
probe_path=probe_path,
|
||||
remote_ffmpeg_path=remote_ffmpeg,
|
||||
)
|
||||
if output_path.exists():
|
||||
if ok and output_path.exists():
|
||||
safe_log_info(f"Successfully encoded: {output_path}", f"{Colors.GREEN}Successfully encoded: {output_path}{Colors.ENDC}")
|
||||
else:
|
||||
safe_log_error("Distributed encode did not produce output", f"{Colors.RED}Distributed encode did not produce output{Colors.ENDC}")
|
||||
safe_log_error("Distributed encode did not produce output (see [4/4] ERROR above)", f"{Colors.RED}Distributed encode did not produce output{Colors.ENDC}")
|
||||
except Exception as e:
|
||||
safe_log_error(f"Distributed encode failed: {e}", f"{Colors.RED}Distributed encode failed: {e}{Colors.ENDC}")
|
||||
finally:
|
||||
|
||||
Reference in New Issue
Block a user