feat: add two-pass EBU R128 loudness normalization for audio extraction

This commit is contained in:
Honney OC committed 2026-09-13 20:37:40 +00:00
1 parent b752954454
commit 7df0bdbdeb
2 files changed
+108 -17

No files matched your search

+6 -1
View File
@@ -6,7 +6,7 @@
file_a = "/home/honney/Videos/Drachenzähmen/Drachenzaehmen.mp4"
file_b = "/home/honney/Videos/Drachenzähmen/How to Train Your Dragon.mkv"
# Window to extract (seconds). This is the ONLY duration needed.
duration = 90
duration = 30
# Start offset in file (seconds, 0 = file start). ffmpeg -ss before -i for fast seek.
start = 0.0
out_dir = "extracted"
@@ -20,6 +20,11 @@ channels = 1
# If extracted wavs already exist, sync test can load them directly:
# file_a_wav = "extracted/Drachenzaehmen_audio.wav"
# file_b_wav = "extracted/How to Train Your Dragon_audio.wav"
# EBU R128 loudness normalization (two-pass loudnorm)
normalize = true
target_lufs = -14 # -14 streaming, -23 broadcast
target_tp = -1.0 # true peak limit (dBTP)
target_lra = 11 # loudness range
[sync]
# Analysis window: null = use full extracted duration; otherwise limit for quick test