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

@@ -32,7 +32,7 @@ class Tee:
def check_tools():
"""Checks if all required command-line tools are in the system's PATH."""
required_tools = ["ffmpeg", "ffprobe", "mkvmerge", "sox_ng", "opusenc", "mediainfo"]
required_tools = ["ffmpeg", "ffprobe", "mkvmerge", "sox", "opusenc", "mediainfo"]
print("--- Prerequisite Check ---")
all_found = True
for tool in required_tools:
@@ -80,7 +80,7 @@ def convert_audio_track(stream_index, channels, temp_dir, source_file, should_do
# Step 2: Normalize the track with SoX
print(" - Normalizing with SoX...")
run_cmd(["sox_ng", "--show-progress", str(temp_extracted), str(temp_normalized), "--temp", str(temp_dir), "loudness", "-18"])
run_cmd(["sox", str(temp_extracted), str(temp_normalized), "-S", "--temp", str(temp_dir), "--guard", "gain", "-n"])
# Step 3: Encode to Opus with the correct bitrate
bitrate = "192k" # Fallback