Skip to content

Commit

Permalink
music: upsample audio before filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
tamara-schmitz committed Aug 3, 2023
1 parent 81fbfd5 commit d662bfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions music/musicbatchconverter.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,15 +244,15 @@ 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")
args.ffargs = argcheck_ffargs("-hide_banner -map 0:a -ac 2 -c copy" +
" -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
Expand Down

0 comments on commit d662bfe

Please sign in to comment.