fix: always use 640k bitrate

This commit is contained in:
2026-01-23 12:21:25 +01:00
parent 70c3ab084b
commit d6bccdc088

View File

@@ -80,7 +80,7 @@ def convert(file: Path):
# Only re-encode AAC 5.1 or 7.1 # Only re-encode AAC 5.1 or 7.1
if s["codec_name"] == "aac" and s.get("channels") in (6, 8): if s["codec_name"] == "aac" and s.get("channels") in (6, 8):
codec_map[s["index"]] = "eac3" codec_map[s["index"]] = "eac3"
target_bitrates[s["index"]] = "640k" if s["channels"] == 6 else "1024k" target_bitrates[s["index"]] = "640k"
has_aac_multichannel = True has_aac_multichannel = True
else: else:
codec_map[s["index"]] = "copy" codec_map[s["index"]] = "copy"