2020-07-11 05:41:32 +00:00
|
|
|
# Defined in /tmp/fish.Yy0Eg4/optiflac.fish @ line 2
|
2020-04-27 01:17:41 +00:00
|
|
|
function optiflac
|
|
|
|
mkdir out
|
2020-07-11 05:41:32 +00:00
|
|
|
ls *.flac | parallel ffmpeg-static -i {} -c:v copy -c:a flac -compression_level 12 -af aresample=resampler=soxr:precision=32:dither_method=triangular -sample_fmt s16 $argv out/{}
|
2020-04-27 01:17:41 +00:00
|
|
|
cd out
|
2020-04-27 01:21:12 +00:00
|
|
|
for i in *
|
|
|
|
if test (du $i | cut -f1) -lt (du ../$i | cut -f1)
|
|
|
|
echo $i
|
|
|
|
mv $i ../$i
|
|
|
|
end
|
|
|
|
end
|
|
|
|
cd ..
|
|
|
|
cp *.flac out
|
|
|
|
cd out
|
2020-07-11 05:41:32 +00:00
|
|
|
ls | parallel flacc {}
|
2020-04-27 01:21:12 +00:00
|
|
|
for i in *
|
2020-04-27 01:17:41 +00:00
|
|
|
if test (du $i | cut -f1) -lt (du ../$i | cut -f1)
|
|
|
|
echo $i
|
|
|
|
mv $i ../$i
|
|
|
|
end
|
|
|
|
end
|
|
|
|
cd ..
|
|
|
|
end
|