Convert flac to mp3

The post is in English because it might interest other people than just Romanians.

This is a very simple bash script that can be used to batch convert flac files to mp3, so you can use them on your favorite “no flac” mp3 player. It decodes all flac files to wav, then uses lame to encode them as mp3.

The script requires flac and lame installed. It keeps the file name and changes only the extension. It does not keep any ID3 tags and does no checking or error correction. Just download the script, make it executable and run it from any directory containing flac files:

$ /path/to/flac2mp3.sh

You will get a mp3 file with the same name for each flac.

Download: flac2mp3.sh

Enjoy ;)

TwitterFacebookLinkedInGoogle ReaderYahoo MessengerEmailGoogle GmailYahoo MailPrintShare

Related posts:

  1. Convert Xmail to Dovecot users
  2. Xmail password decrypter

3 comments

  1. nu.conteaza says:

    another way to do it :

    for j in *.flac; do flac -cd “$j” | lame -h – “`basename “$j” .flac`”.mp3; done

  2. [...] Step 3 (not mandatory). You can continue by converting the flac files to mp3. [...]

Leave a Reply

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

*


9 − = six

CommentLuv badge