Skip to content

Instantly share code, notes, and snippets.

@vigo
Created May 5, 2013 05:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vigo/5519809 to your computer and use it in GitHub Desktop.
Save vigo/5519809 to your computer and use it in GitHub Desktop.
convert `.flac` to `.mp3` - high quality
#!/usr/bin/env bash
set -e
for flac_file in *.flac; do
f=$(basename "${flac_file}" .flac)
flac -c -d "${flac_file}" | lame --preset insane - "${f}.mp3"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment