Convert FLAC files to MP3 in Ubuntu Command Line

First of all you will need flac & lame installed:

~# sudo apt-get install flac
~# sudo apt-get install lame

Then navigate to the directory with all of the .flac files you would like to convert:

~# cd /home/user/Music [Example]

Then run this command:

~# for f in *.flac; do flac -cd “$f” | lame -b 320 – “${f%.*}”.mp3; done

This will convert the .flac files to 320mhz .mp3

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s