Last active
August 29, 2015 14:01
-
-
Save loderunner/7c96b772053063ba2a3d to your computer and use it in GitHub Desktop.
Converts all flac files in the directory to high-quality mp3
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
#!/bin/sh | |
# Converts all flac files in the directory to high-quality mp3 | |
for flacfile in *.flac | |
do | |
flac --decode "$flacfile" | |
wavfile="${flacfile:0:(${#flacfile}-4)}wav" | |
lame -b320 -q0 -ms "$wavfile" | |
rm "$wavfile" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment