diff --git a/anime_audio_helper.py b/anime_audio_helper.py index d8190bc..cc74499 100755 --- a/anime_audio_helper.py +++ b/anime_audio_helper.py @@ -53,8 +53,7 @@ def convert_audio_track(index, ch, lang, audio_temp_dir, source_file, should_dow print(f" - Extracting Audio Track #{index} to FLAC...") ffmpeg_args = [ - "ffmpeg", "-v", "quiet", "-stats", "-y", "-i", str(source_file), - "-map", f"0:{index}", "-map_metadata", "-1" + "ffmpeg", "-v", "quiet", "-stats", "-y", "-i", str(source_file), "-map", f"0:{index}" ] if should_downmix and ch >= 6: if ch == 6: @@ -82,16 +81,14 @@ def convert_audio_track(index, ch, lang, audio_temp_dir, source_file, should_dow else: # Not downmixing (or source is already stereo or less). # Base bitrate on the source channel count. - if ch == 1: # Mono - bitrate = "64k" - elif ch == 2: # Stereo + if ch == 2: # Stereo bitrate = "128k" elif ch == 6: # 5.1 Surround bitrate = "256k" elif ch == 8: # 7.1 Surround bitrate = "384k" - else: # Other layouts - bitrate = "192k" # Fallback + else: # Mono or other layouts + bitrate = "96k" # A sensible default for mono. print(f" - Encoding Audio Track #{index} to Opus at {bitrate}...") run_cmd([