From d662bfed38f3ca933af2b24251226b631b101f6a Mon Sep 17 00:00:00 2001 From: Tamara Schmitz Date: Thu, 3 Aug 2023 04:14:29 +0200 Subject: [PATCH] music: upsample audio before filtering --- music/musicbatchconverter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/music/musicbatchconverter.py b/music/musicbatchconverter.py index e5897c3..ca168ce 100755 --- a/music/musicbatchconverter.py +++ b/music/musicbatchconverter.py @@ -244,7 +244,7 @@ def argcheck_preset(string) -> int: " -c:a libopus -b:a 192k -vbr 2 -frame_duration 120 " + " -metadata REPLAYGAIN_ALBUM_GAIN=0 -metadata REPLAYGAIN_ALBUM_PEAK=0.99" + " -metadata REPLAYGAIN_TRACK_GAIN=0 -metadata REPLAYGAIN_TRACK_PEAK=0.99" + - " -af aresample=osf=flt:osr=48000:filter_type=kaiser,dynaudnorm=r=-18dB") + " -af aresample=osf=flt:osr=192000:filter_type=kaiser,dynaudnorm=r=-18dB") if args.preset == 4: # normalized args.ofm = argcheck_ofm("mka") @@ -252,7 +252,7 @@ def argcheck_preset(string) -> int: " -c:a libopus -b:a 192k -vbr 2 -frame_duration 120" + " -metadata REPLAYGAIN_ALBUM_GAIN=0 -metadata REPLAYGAIN_ALBUM_PEAK=0.99" + " -metadata REPLAYGAIN_TRACK_GAIN=0 -metadata REPLAYGAIN_TRACK_PEAK=0.99" + - " -af aresample=osf=flt:osr=48000:filter_type=kaiser,alimiter=limit=-1.0dB:level=off:attack=2:release=50:level_in=") + " -af aresample=osf=flt:osr=192000:filter_type=kaiser,alimiter=limit=-1.0dB:level=off:attack=2:release=50:level_in=") if args.preset == 11: # Flac