From f43159ae110b6064cde4b68c404d946cd04de066 Mon Sep 17 00:00:00 2001 From: Chris Busillo Date: Sat, 15 Jun 2024 21:37:24 -0400 Subject: [PATCH] do not use default frame_rate or detected frame rate. --- bd_to_avp/modules/video.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/bd_to_avp/modules/video.py b/bd_to_avp/modules/video.py index d28dd88..e08449e 100644 --- a/bd_to_avp/modules/video.py +++ b/bd_to_avp/modules/video.py @@ -14,7 +14,6 @@ def generate_ffmpeg_wrapper_command( output_path: Path, disc_color_depth: int, disc_resolution: str, - disc_frame_rate: str, bitrate: int, crop_params: str, software_encoder: bool, @@ -25,7 +24,7 @@ def generate_ffmpeg_wrapper_command( f="rawvideo", pix_fmt=pix_fmt, s=config.resolution or disc_resolution, - r=config.frame_rate or disc_frame_rate, + **({"r": config.frame_rate} if config.frame_rate else {}), ) if crop_params: stream = ffmpeg.filter(stream, "crop", *crop_params.split(":")) @@ -37,7 +36,7 @@ def generate_ffmpeg_wrapper_command( bufsize=f"{bitrate * 2}M", tag="hvc1", vprofile="main10" if disc_color_depth == 10 else "main", - r=config.frame_rate or disc_frame_rate, + **({"r": config.frame_rate} if config.frame_rate else {}), ) args = ffmpeg.compile(stream, overwrite_output=True) @@ -63,7 +62,6 @@ def split_mvc_to_stereo( left_output_path, disc_info.color_depth, disc_info.resolution, - disc_info.frame_rate, config.left_right_bitrate, crop_params, config.software_encoder, @@ -73,7 +71,6 @@ def split_mvc_to_stereo( right_output_path, disc_info.color_depth, disc_info.resolution, - disc_info.frame_rate, config.left_right_bitrate, crop_params, config.software_encoder,