wavenc/main.sh

14 lines
310 B
Bash
Raw Normal View History

2024-11-26 08:21:53 +00:00
#!/usr/bin/env bash
array=("DATE" "TOTALTRACKS" "TRACKNUMBER" "ALBUM" "ARTIST" "TITLE")
for i in *.flac; do
filename=${i%.*}
flac --decode -c "$i" | wavpack -i "-" -hhb2 -y -o "$filename.wv";
done
for n in ${array[@]}; do
tag=`metaflac --show-tag=$n "$i"`;
wvtag -w "$tag" "$filename.wv" ;
done