Created
January 18, 2021 14:08
-
-
Save mmai/c49e1c89e30f1516166f03ea38e0a1e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd "$1" | |
mkdir -p flacs | |
for flac in *.flac | |
do | |
out=`echo $flac | sed s/.flac/.ogg/` | |
ffmpeg -i "$flac" -map_metadata 0 "$out" | |
mv "$flac" flacs | |
done | |
cd - | |
# Search for folders containing .flac files and execute this script : | |
# fd -e flac | awk -F'/' 'BEGIN {OFS = FS} {$NF=""; print "~/softs_/flac2ogg.sh \""$0"\""}' |sort -u |grep -v flacs > todo.sh && sh ./todo.sh && rm ./todo.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment