Skip to content

Commit

Permalink
do not use default frame_rate or detected frame rate.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbusillo committed Jun 16, 2024
1 parent e3b2bb9 commit f43159a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions bd_to_avp/modules/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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(":"))
Expand All @@ -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)
Expand All @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit f43159a

Please sign in to comment.