How to Convert .flac Files into 192Kb MP3 Files

By Lowell Heddings on August 20th, 2010

If you’ve got a whole folder of .flac files that you want to convert into MP3 files instead, you can do so with a simple command from the terminal—or if you’re using Windows, from a cygwin prompt.

find . -type f -iname '*.flac' | while read FILE; do FILENAME="${FILE%.*}"; flac -cd "$FILE" | lame -b 192 - "${FILENAME}.mp3"; done

This example uses the find command to look for all .flac folders from the current folder as well as subfolders, and then uses the lame utility to convert them.

Convert all .flac from a folder subtree in 192Kb mp3 [commandlinefu.com]

Lowell Heddings, better known online as the How-To Geek, spends all his free time bringing you fresh geekery on a daily basis. You can follow him on if you'd like.

  • Published 08/20/10
More Articles You Might Like

Enter Your Email Here to Get Access for Free:

Go check your email!