Skip to content

Commit

Permalink
remove warning for short files (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
slhck committed Jul 22, 2023
1 parent 344e762 commit a3d1c11
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions ffmpeg_normalize/_streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,17 +117,6 @@ def __init__(

self.duration = duration

if (
self.ffmpeg_normalize.normalization_type == "ebu"
and self.duration
and self.duration <= 3
):
_logger.warning(
"Audio stream has a duration of less than 3 seconds. "
"Normalization may not work. "
"See https://github.com/slhck/ffmpeg-normalize/issues/87 for more info."
)

@staticmethod
def _constrain(
number: float, min_range: float, max_range: float, name: str | None = None
Expand Down

0 comments on commit a3d1c11

Please sign in to comment.