Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix capping to [1, 50] instead of [1, 7] #230

Merged
merged 1 commit into from
Apr 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ffmpeg_normalize/_streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,14 +408,14 @@ def get_second_pass_opts_ebu(self) -> str:
"Keeping target loudness range in second pass loudnorm filter"
)
input_lra = self.loudness_statistics["ebu"]["input_lra"]
if input_lra < 1 or input_lra > 7:
if input_lra < 1 or input_lra > 50:
_logger.warning(
"Input file had measured loudness range outside of [1,7] "
"Input file had measured loudness range outside of [1,50] "
f"({input_lra}), capping to allowed range"
)

self.media_file.ffmpeg_normalize.loudness_range_target = self._constrain(
self.loudness_statistics["ebu"]["input_lra"], 1, 7
self.loudness_statistics["ebu"]["input_lra"], 1, 50
)

if self.media_file.ffmpeg_normalize.keep_lra_above_loudness_range_target:
Expand Down