Skip to content

Instantly share code, notes, and snippets.

@jottr
Last active December 14, 2015 05:29
Show Gist options
  • Save jottr/5035733 to your computer and use it in GitHub Desktop.
Save jottr/5035733 to your computer and use it in GitHub Desktop.
Convert FLAC files contained in subfolders into VBR high quality mp3 and delete source files after transcode
find . -type f -iname '*.flac' | while read FILE; do FILENAME="${FILE%.*}"; flac -cd "$FILE" | lame -q 0 --vbr-new -V 0 - "${FILENAME}.mp3" && rm "${FILENAME}.flac"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment