Last active
August 10, 2021 00:27
-
-
Save echohack/f66f1acd35eabfc5695e to your computer and use it in GitHub Desktop.
convert_flac_to_mp3.sh
This file contains hidden or 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
# Recurse into all subdirectories of the working directory. | |
# Converts all flac into mp3 using ffmpeg | |
find . -type f -name "*.flac" -print0 | while read -d $'\0' a; do < /dev/null ffmpeg -i "$a" -qscale:a 0 "${a[@]/%flac/mp3}" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment