ffmpeg-normalize 1.33.1__py3-none-any.whl → 1.33.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -261,8 +261,11 @@ def create_parser() -> argparse.ArgumentParser:
261
261
  Whether the audio should not increase in loudness.
262
262
 
263
263
  If the measured loudness from the first pass is lower than the target
264
- loudness then normalization pass will be skipped for the measured audio
265
- source.
264
+ loudness then normalization will be skipped for the audio source.
265
+
266
+ For EBU normalization, this compares input integrated loudness to the target level.
267
+ For peak normalization, this compares the input peak level to the target level.
268
+ For RMS normalization, this compares the input RMS level to the target level.
266
269
  """
267
270
  ),
268
271
  )
@@ -645,8 +645,15 @@ class MediaFile:
645
645
  ebu_pass_2_stats = list(
646
646
  AudioStream.prune_and_parse_loudnorm_output(output).values()
647
647
  )
648
- for idx, audio_stream in enumerate(self.streams["audio"].values()):
649
- audio_stream.set_second_pass_stats(ebu_pass_2_stats[idx])
648
+ # Only set second pass stats if they exist (they might not if all streams were skipped with --lower-only)
649
+ if len(ebu_pass_2_stats) == len(self.streams["audio"]):
650
+ for idx, audio_stream in enumerate(self.streams["audio"].values()):
651
+ audio_stream.set_second_pass_stats(ebu_pass_2_stats[idx])
652
+ else:
653
+ _logger.debug(
654
+ f"Expected {len(self.streams['audio'])} EBU pass 2 statistics but got {len(ebu_pass_2_stats)}. "
655
+ "This can happen when normalization is skipped (e.g., with --lower-only)."
656
+ )
650
657
 
651
658
  # warn if self.media_file.ffmpeg_normalize.dynamic == False and any of the second pass stats contain "normalization_type" == "dynamic"
652
659
  if self.ffmpeg_normalize.dynamic is False:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ffmpeg-normalize
3
- Version: 1.33.1
3
+ Version: 1.33.2
4
4
  Summary: Normalize audio via ffmpeg
5
5
  Keywords: ffmpeg,normalize,audio
6
6
  Author: Werner Robitza
@@ -1,14 +1,14 @@
1
1
  ffmpeg_normalize/__init__.py,sha256=l0arjiMMBNbiH3IH67gT6SdZjPGAVLAdorUx38dNtvE,508
2
- ffmpeg_normalize/__main__.py,sha256=tUb8aJN0zh1F-QCYwg4vZlGwxqbMd3r4JgUv-5YIjvU,20720
2
+ ffmpeg_normalize/__main__.py,sha256=UJIaAel7DSWd0eJr0FlZupsaHvj4wwrQsWd7fmBWB8s,20965
3
3
  ffmpeg_normalize/_cmd_utils.py,sha256=1JspVpguAPsq7DqvyvjUNzHhVv8J3X93xNOMwito_jY,5284
4
4
  ffmpeg_normalize/_errors.py,sha256=brTQ4osJ4fTA8wnyMPVVYfGwJ0wqeShRFydTEwi_VEY,48
5
5
  ffmpeg_normalize/_ffmpeg_normalize.py,sha256=_ZK2P3kAM0mnxY3iCYH61T6jhMndTdO2Rqh03vJo7rY,11852
6
6
  ffmpeg_normalize/_logger.py,sha256=3Ap4Fxg7xGrzz7h4IGuNEf0KKstx0Rq_eLbHPrHzcrI,1841
7
- ffmpeg_normalize/_media_file.py,sha256=pPRPNs1oxpMC6f_Cgsu8F9mMJlncjw6OP0cDk9rQMPY,26387
7
+ ffmpeg_normalize/_media_file.py,sha256=eJt9uNXmJheSH4B0ZZARFPMOwN0BGGXOELhcDpWmeew,26860
8
8
  ffmpeg_normalize/_streams.py,sha256=hYqQiiVMJd-TrreHbrQertUnc4lQ9BPvBmDPKSr4o70,21596
9
9
  ffmpeg_normalize/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
- ffmpeg_normalize-1.33.1.dist-info/licenses/LICENSE.md,sha256=ig-_YggmJGbPQC_gUgBNFa0_XMsuHTpocivFnlOF4tE,1082
11
- ffmpeg_normalize-1.33.1.dist-info/WHEEL,sha256=NHRAbdxxzyL9K3IO2LjmlNqKSyPZnKv2BD16YYVKo18,79
12
- ffmpeg_normalize-1.33.1.dist-info/entry_points.txt,sha256=1bdrW7-kJRc8tctjnGcfe_Fwx39z5JOm0yZnJHnmwl8,69
13
- ffmpeg_normalize-1.33.1.dist-info/METADATA,sha256=KycBJs9LX83nBZE0Aw81cf1Mep1KUDYVxjSHjQKKm80,11374
14
- ffmpeg_normalize-1.33.1.dist-info/RECORD,,
10
+ ffmpeg_normalize-1.33.2.dist-info/licenses/LICENSE.md,sha256=ig-_YggmJGbPQC_gUgBNFa0_XMsuHTpocivFnlOF4tE,1082
11
+ ffmpeg_normalize-1.33.2.dist-info/WHEEL,sha256=F3mArEuDT3LDFEqo9fCiUx6ISLN64aIhcGSiIwtu4r8,79
12
+ ffmpeg_normalize-1.33.2.dist-info/entry_points.txt,sha256=1bdrW7-kJRc8tctjnGcfe_Fwx39z5JOm0yZnJHnmwl8,69
13
+ ffmpeg_normalize-1.33.2.dist-info/METADATA,sha256=vv7kx0ptEuNiUEmFsJiDNugpkueKAvBjTAKUSSm9aZ4,11374
14
+ ffmpeg_normalize-1.33.2.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: uv 0.8.14
2
+ Generator: uv 0.8.16
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any