1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-12-25 22:47:39 +00:00
dotfiles/.local/bin/optiflac

24 lines
396 B
Plaintext
Raw Normal View History

2020-10-13 20:14:57 +00:00
#!/bin/sh
2020-08-04 03:17:43 +00:00
compare() {
for i in *
do
if [ `du "$i" | cut -f1` -lt `du ../"$i" | cut -f1` ]
then
echo $i
mv "$i" ../"$i"
fi
done
}
mkdir out
2020-09-29 20:45:25 +00:00
ls *.flac | parallel ffmpeg -hide_banner -i {} -c:v copy -c:a flac -compression_level 12 $@ out/{}
2020-08-04 03:17:43 +00:00
cd out
compare
cd ..
cp *.flac out
cd out
ls | parallel flac -f -8 -V {}
compare
cd ..
rm -r out