ffmpeg-normalize 1.33.1__tar.gz → 1.33.3__tar.gz
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.
- {ffmpeg_normalize-1.33.1 → ffmpeg_normalize-1.33.3}/PKG-INFO +2 -2
- {ffmpeg_normalize-1.33.1 → ffmpeg_normalize-1.33.3}/pyproject.toml +3 -2
- {ffmpeg_normalize-1.33.1 → ffmpeg_normalize-1.33.3}/src/ffmpeg_normalize/__main__.py +5 -2
- {ffmpeg_normalize-1.33.1 → ffmpeg_normalize-1.33.3}/src/ffmpeg_normalize/_media_file.py +9 -2
- {ffmpeg_normalize-1.33.1 → ffmpeg_normalize-1.33.3}/LICENSE.md +0 -0
- {ffmpeg_normalize-1.33.1 → ffmpeg_normalize-1.33.3}/README.md +0 -0
- {ffmpeg_normalize-1.33.1 → ffmpeg_normalize-1.33.3}/src/ffmpeg_normalize/__init__.py +0 -0
- {ffmpeg_normalize-1.33.1 → ffmpeg_normalize-1.33.3}/src/ffmpeg_normalize/_cmd_utils.py +0 -0
- {ffmpeg_normalize-1.33.1 → ffmpeg_normalize-1.33.3}/src/ffmpeg_normalize/_errors.py +0 -0
- {ffmpeg_normalize-1.33.1 → ffmpeg_normalize-1.33.3}/src/ffmpeg_normalize/_ffmpeg_normalize.py +0 -0
- {ffmpeg_normalize-1.33.1 → ffmpeg_normalize-1.33.3}/src/ffmpeg_normalize/_logger.py +0 -0
- {ffmpeg_normalize-1.33.1 → ffmpeg_normalize-1.33.3}/src/ffmpeg_normalize/_streams.py +0 -0
- {ffmpeg_normalize-1.33.1 → ffmpeg_normalize-1.33.3}/src/ffmpeg_normalize/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ffmpeg-normalize
|
|
3
|
-
Version: 1.33.
|
|
3
|
+
Version: 1.33.3
|
|
4
4
|
Summary: Normalize audio via ffmpeg
|
|
5
5
|
Keywords: ffmpeg,normalize,audio
|
|
6
6
|
Author: Werner Robitza
|
|
@@ -12,7 +12,6 @@ Classifier: Intended Audience :: Developers
|
|
|
12
12
|
Classifier: Topic :: Multimedia :: Sound/Audio
|
|
13
13
|
Classifier: Topic :: Multimedia :: Sound/Audio :: Analysis
|
|
14
14
|
Classifier: Topic :: Multimedia :: Sound/Audio :: Conversion
|
|
15
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
16
15
|
Classifier: Natural Language :: English
|
|
17
16
|
Classifier: Programming Language :: Python :: 3
|
|
18
17
|
Classifier: Programming Language :: Python :: 3.9
|
|
@@ -20,6 +19,7 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
20
19
|
Classifier: Programming Language :: Python :: 3.11
|
|
21
20
|
Classifier: Programming Language :: Python :: 3.12
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.13
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
23
23
|
Requires-Dist: tqdm>=4.64.1
|
|
24
24
|
Requires-Dist: colorama>=0.4.6 ; sys_platform == 'win32'
|
|
25
25
|
Requires-Dist: ffmpeg-progress-yield>=1.0.1
|
|
@@ -4,7 +4,7 @@ build-backend = "uv_build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "ffmpeg-normalize"
|
|
7
|
-
version = "1.33.
|
|
7
|
+
version = "1.33.3"
|
|
8
8
|
description = "Normalize audio via ffmpeg"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "MIT"
|
|
@@ -19,7 +19,6 @@ classifiers = [
|
|
|
19
19
|
"Topic :: Multimedia :: Sound/Audio",
|
|
20
20
|
"Topic :: Multimedia :: Sound/Audio :: Analysis",
|
|
21
21
|
"Topic :: Multimedia :: Sound/Audio :: Conversion",
|
|
22
|
-
"License :: OSI Approved :: MIT License",
|
|
23
22
|
"Natural Language :: English",
|
|
24
23
|
"Programming Language :: Python :: 3",
|
|
25
24
|
"Programming Language :: Python :: 3.9",
|
|
@@ -27,6 +26,7 @@ classifiers = [
|
|
|
27
26
|
"Programming Language :: Python :: 3.11",
|
|
28
27
|
"Programming Language :: Python :: 3.12",
|
|
29
28
|
"Programming Language :: Python :: 3.13",
|
|
29
|
+
"Programming Language :: Python :: 3.14",
|
|
30
30
|
]
|
|
31
31
|
requires-python = ">=3.9"
|
|
32
32
|
dependencies = [
|
|
@@ -65,3 +65,4 @@ check_untyped_defs = true
|
|
|
65
65
|
warn_return_any = true
|
|
66
66
|
warn_unused_ignores = true
|
|
67
67
|
show_error_codes = true
|
|
68
|
+
|
|
@@ -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
|
|
265
|
-
|
|
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
|
-
|
|
649
|
-
|
|
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:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ffmpeg_normalize-1.33.1 → ffmpeg_normalize-1.33.3}/src/ffmpeg_normalize/_ffmpeg_normalize.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|