From dd19c3801aec511239ba478999b3f58fe48c9a47 Mon Sep 17 00:00:00 2001 From: Chris Busillo Date: Thu, 20 Jun 2024 19:57:00 -0400 Subject: [PATCH] use disc info instead of name to have access to color depth. --- bd_to_avp/modules/process.py | 2 +- bd_to_avp/modules/video.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bd_to_avp/modules/process.py b/bd_to_avp/modules/process.py index ca32477..223c767 100755 --- a/bd_to_avp/modules/process.py +++ b/bd_to_avp/modules/process.py @@ -68,7 +68,7 @@ def process_each() -> None: left_output_path, right_output_path = create_left_right_files( disc_info, output_folder, video_output_path, crop_params ) - mv_hevc_path = create_mv_hevc_file(left_output_path, right_output_path, output_folder, disc_info.name) + mv_hevc_path = create_mv_hevc_file(left_output_path, right_output_path, output_folder, disc_info) mv_hevc_path = create_upscaled_file(mv_hevc_path) audio_output_path = create_transcoded_audio_file(audio_output_path, output_folder) diff --git a/bd_to_avp/modules/video.py b/bd_to_avp/modules/video.py index 90e4bf5..7dc0675 100644 --- a/bd_to_avp/modules/video.py +++ b/bd_to_avp/modules/video.py @@ -247,8 +247,10 @@ def get_video_color_depth(input_path: Path) -> int | None: return None -def create_mv_hevc_file(left_video_path: Path, right_video_path: Path, output_folder: Path, disc_name: str) -> Path: - mv_hevc_path = output_folder / f"{disc_name}_MV-HEVC.mov" +def create_mv_hevc_file( + left_video_path: Path, right_video_path: Path, output_folder: Path, disc_info: DiscInfo +) -> Path: + mv_hevc_path = output_folder / f"{disc_info.name}_MV-HEVC.mov" if config.start_stage.value <= Stage.COMBINE_TO_MV_HEVC.value: combine_to_mv_hevc(left_video_path, right_video_path, mv_hevc_path)