Convert .flac to .mp3 using bash.

How to convert .flac files to .mp3? Well here you find out how to do using Bash ~ Linux!

1. First, make sure you have installed the package “Lame” (Should be easy to find @ google.com for any Linux OS)
lame installed

2. Download THIS bash script and move it to the folder where the .flac files are stored.

3. Give “flac2mp3.sh” 755 rights. (chmod 755 flac2mp3.sh)

4. OK — we are in the folder where the .flac files are stored.. We have copied or moved the bash script we need to the same folder.. So now we can start converting. (See picture)
flac

5. Start the script to convert your .flac files to .mp3  (./flac2mp3.sh)
flac-converting

6. You can see the .flac files getting converted to .mp3 — All .flac files will be converted in that folder.
flac-converting2

7. When converting is done, you’ll see that the .flac files are still there. I recommend you to check if the .mp3 files work and then remove all the .flac files. (rm -f *.flac)
removeflac

8. Done. All your .flac files are just converted to .mp3
done-converting

Have fun & Please leave your thoughts in a comment!

| More

Comments

  1. 1

    Nice tutorial. Keep up the good work ;)


    Jacco
    Jun 12th, 2009