Skip to content

Instantly share code, notes, and snippets.

@echohack
Last active August 10, 2021 00:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save echohack/f66f1acd35eabfc5695e to your computer and use it in GitHub Desktop.
Save echohack/f66f1acd35eabfc5695e to your computer and use it in GitHub Desktop.
convert_flac_to_mp3.sh
# 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