complete replacement of all: did not work properly

This commit is contained in:
2025-09-22 13:39:02 +02:00
parent 1177f54996
commit 3682f17073
8 changed files with 77 additions and 74 deletions

View File

@@ -24,7 +24,7 @@ REQUIRED_TOOLS_MAP = {
"ffprobe": "extra/ffmpeg", # Part of ffmpeg package
"mkvmerge": "extra/mkvtoolnix-cli",
"mkvpropedit": "extra/mkvtoolnix-cli", # Part of mkvtoolnix-cli
"sox_ng": "extra/sox-ng",
"sox": "extra/sox",
"opusenc": "extra/opus-tools",
"mediainfo": "extra/mediainfo",
"alabamaEncoder": "pipx install alabamaEncoder"
@@ -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_ng", "--show-progress", str(temp_extracted), str(temp_normalized), "--temp", str(audio_temp_path), "loudness", "-18"
"sox", str(temp_extracted), str(temp_normalized), "-S", "--temp", str(audio_temp_path), "--guard", "gain", "-n"
])
# Set bitrate based on the final channel count of the Opus file.