mirror of
https://github.com/Phantop/dotfiles
synced 2024-11-05 06:25:00 +00:00
24 lines
396 B
Bash
Executable file
24 lines
396 B
Bash
Executable file
#!/bin/sh
|
|
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
|
|
ls *.flac | parallel ffmpeg -hide_banner -i {} -c:v copy -c:a flac -compression_level 12 $@ out/{}
|
|
cd out
|
|
compare
|
|
cd ..
|
|
cp *.flac out
|
|
cd out
|
|
ls | parallel flac -f -8 -V {}
|
|
compare
|
|
cd ..
|
|
rm -r out
|