Updated to "sox_ng" and changed the audio normalization to "loudnorm -18 LUFS "

This commit is contained in:
2025-09-21 20:47:18 +02:00
parent da56bc3a81
commit 8577bfcac8
4 changed files with 738 additions and 3 deletions

View File

@@ -76,7 +76,7 @@ def convert_audio_track(index, ch, lang, audio_temp_dir, source_file, should_dow
print(f" - Normalizing Audio Track #{index} with SoX...")
run_cmd([
"sox", str(temp_extracted), str(temp_normalized), "-S", "--temp", str(audio_temp_path), "--guard", "gain", "-n"
"sox", str(temp_extracted), str(temp_normalized), "--temp", str(audio_temp_path), "loudness", "-18"
])
# Set bitrate based on the final channel count of the Opus file.