From baff461702bd4b3a105344524d3160b3ebd0695f Mon Sep 17 00:00:00 2001 From: Phantop Date: Mon, 27 Apr 2020 10:12:04 -0400 Subject: [PATCH] Fish: optiflac VHQ soxr, don't auto resample --- .config/fish/functions/optiflac.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/fish/functions/optiflac.fish b/.config/fish/functions/optiflac.fish index 7c9701d..547325d 100644 --- a/.config/fish/functions/optiflac.fish +++ b/.config/fish/functions/optiflac.fish @@ -1,8 +1,8 @@ -# Defined in /tmp/fish.Ws9y7c/optiflac.fish @ line 2 +# Defined in /tmp/fish.yFtyWn/optiflac.fish @ line 2 function optiflac mkdir out for i in *.flac - ffmpeg -i $i -c:v copy -c:a flac -compression_level 12 -af aformat=s16:44100 -resampler soxr out/$i + ffmpeg -i $i -c:v copy -c:a flac -compression_level 12 -af aresample=resampler=soxr:precision=32:dither_method=triangular -sample_fmt s16 $argv out/$i end cd out for i in *