LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Batch convert MP3 and AAC files to FLAC (https://www.linuxquestions.org/questions/linux-general-1/batch-convert-mp3-and-aac-files-to-flac-551643/)

burninGpi 05-06-2007 01:38 AM

Batch convert MP3 and AAC files to FLAC
 
I'm rebuilding a music library on my kubuntu computer. My problem is that when the files were originally ripped, some (read: lots) of files were misnamed. Also, I have some in mp3 format and others in AAC (aka mp4 aka m4a).

Is there a way to recursively scan through /media/backup/Music (where my music is located) and:
  1. Perform a CDDB/MusicBrainz lookup on the file
  2. Convert each file to a FLAC file with the filename:
    Code:

    <artist> - <album> - <title>.flac
    With <artist>, <album>, and <title> replaced by the artist, album, and title from the CDDB lookup
  3. Add the info from the CDDB lookup to the appropriate fields of the new FLAC file

Any solutions would be helpful, no matter how ugly.

Sonneteer 05-07-2007 12:41 PM

The first step I would take is to use soundKonverter to convert to flac. Then use EasyTAG to do CDDB lookups to tag and rename the files.

Although converting from lossy formats into a lossless one may be more harddrive space than its worth. If you want the quality of flac files, it would be better to rerip them straight to flac (and make sure they get tagged properly in the process).

burninGpi 05-07-2007 08:01 PM

Thanks for the advice. I found CDs for as much of the music as possible, and re-ripped them to flac. I'll try soundKonverter when I get a chance.


All times are GMT -5. The time now is 06:54 AM.