1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2025-11-28 23:35:46 +00:00

Fish: parallel optiflac

This commit is contained in:
Phantop 2020-07-11 01:41:32 -04:00
parent 65bfabda32
commit d53a2d5f5d

View file

@ -1,9 +1,7 @@
# Defined in /tmp/fish.yFtyWn/optiflac.fish @ line 2
# Defined in /tmp/fish.Yy0Eg4/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 aresample=resampler=soxr:precision=32:dither_method=triangular -sample_fmt s16 $argv out/$i
end
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/{}
cd out
for i in *
if test (du $i | cut -f1) -lt (du ../$i | cut -f1)
@ -14,7 +12,7 @@ function optiflac
cd ..
cp *.flac out
cd out
flacc *
ls | parallel flacc {}
for i in *
if test (du $i | cut -f1) -lt (du ../$i | cut -f1)
echo $i