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,