Skip to content

Instantly share code, notes, and snippets.

@Sam-R
Created June 29, 2016 16:36
Show Gist options
  • Save Sam-R/e07818cacfbd465c4292a87f3e48baf0 to your computer and use it in GitHub Desktop.
Save Sam-R/e07818cacfbd465c4292a87f3e48baf0 to your computer and use it in GitHub Desktop.
Bash convert FLAC to MP3 using lame on Ubuntu 14.04/Mint 17
#
# Original code copied from @ http://www.boback.com/2013/how-to-convert-flac-to-mp3-ubuntu-command-line/
#
# Install lame and flac
sudo apt-get install lame flac
# For each file in the current directory, pass it through lame and output as MP3
for f in *.flac; do flac -cd "$f" | lame -b 320 - "${f%.*}".mp3; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment