Web Projects Consulting

Convert Folder with flac Files to mp3

Sometimes you get all that music in flac format which is not understandable by hardware players, so you need the mp3s. Just cd to a directory which contains them and issue the following command:

for file in *.flac; do $(flac -cd "$file" | lame -h -V 0 - "${file%.flac}.mp3"); done

One thought on “Convert Folder with flac Files to mp3

  1. Russ

    1. This works really well. However, you fail to mention you must install these tools first in order for this to work:

    # yum install flac lame id3lib

    2. What quality of mp3 does this convert to? I would hope the highest. They do still sound really good after converting. Let me know, thanks.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.