mirror of
https://github.com/Phantop/dotfiles
synced 2025-11-30 08:07:19 +00:00
Fish: parallel optiflac
This commit is contained in:
parent
65bfabda32
commit
d53a2d5f5d
|
|
@ -1,9 +1,7 @@
|
||||||
# Defined in /tmp/fish.yFtyWn/optiflac.fish @ line 2
|
# Defined in /tmp/fish.Yy0Eg4/optiflac.fish @ line 2
|
||||||
function optiflac
|
function optiflac
|
||||||
mkdir out
|
mkdir out
|
||||||
for i in *.flac
|
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/{}
|
||||||
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
|
cd out
|
||||||
for i in *
|
for i in *
|
||||||
if test (du $i | cut -f1) -lt (du ../$i | cut -f1)
|
if test (du $i | cut -f1) -lt (du ../$i | cut -f1)
|
||||||
|
|
@ -14,7 +12,7 @@ function optiflac
|
||||||
cd ..
|
cd ..
|
||||||
cp *.flac out
|
cp *.flac out
|
||||||
cd out
|
cd out
|
||||||
flacc *
|
ls | parallel flacc {}
|
||||||
for i in *
|
for i in *
|
||||||
if test (du $i | cut -f1) -lt (du ../$i | cut -f1)
|
if test (du $i | cut -f1) -lt (du ../$i | cut -f1)
|
||||||
echo $i
|
echo $i
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue