Skip to content

Commit

Permalink
use disc info instead of name to have access to color depth.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbusillo committed Jun 20, 2024
1 parent fe1bfcb commit dd19c38
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bd_to_avp/modules/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 4 additions & 2 deletions bd_to_avp/modules/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit dd19c38

Please sign in to comment.