feat: add linear loudnorm option to set lra up to target, then keep input lra #229
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This aims to fix #227
Adds Option
--keep-lra-above-loudness-range-target
that may be used instead of--keep-loudness-range-target
.the new option
--keep-lra-above-loudness-range-target
sets loudness range target (e.g. the default7.0
) for all input files that already have an LRA of less than the loudness range target. But behaves the same as--keep-loudness-range-target
for higher input LRAsThis automatically solves an issue with
--keep-loudness-range-target
for input files with LRA less than1
, whereffmpeg
only allowsLRA
within the range[1, 50]
.The usage of both flags together is restricted with raising an error, as for
LRA
lower than the set--loudness-range-target
one flag would else need to be silently ignored.I hope it is ok, that I added a description of this option to the
argparser
and the ReadMe.I tried to pick up your style. Please feel free to correct anything that does not fit your point of view. I will correct it. In case of necessary corrections please tell me if I should force push the changes to the same commit (in order to not create multiple commits) or if I should simply do another commit.
Hope you like it :)