Difference between revisions of "Gapless Audio CD Creation from MP3s"

From ArchWiki
Jump to: navigation, search
m (Gapless Audio CDs from MP3 moved to Creating gapless audio CDs from MP3 HOWTO)
(Promoted headings for a better outline.)
Line 1: Line 1:
[[Category:CD/DVD]]
+
[[Category:Audio/Video (English)]]
[[Category:Audio/Video]]
+
[[Category:HOWTOs (English)]]
  
===Setup===
+
==Setup==
 
We'll be using a few programs for this.
 
We'll be using a few programs for this.
 
  pacman -Sy lame cdrdao
 
  pacman -Sy lame cdrdao
Line 9: Line 9:
 
  write_device: "/dev/hdc"
 
  write_device: "/dev/hdc"
  
===Decode the MP3s===
+
==Decode the MP3s==
 
First of all, copy all the songs you want on the CD to a folder. It's best to rename them to reflect the order you want the tracks to be laid out (such as 01.mp3, 02.mp3, etc). Now we're going to decode all the mp3s into uncompressed wav files. Please realize that a full album can take up more than 800MB in wav files alone. This will take some time.
 
First of all, copy all the songs you want on the CD to a folder. It's best to rename them to reflect the order you want the tracks to be laid out (such as 01.mp3, 02.mp3, etc). Now we're going to decode all the mp3s into uncompressed wav files. Please realize that a full album can take up more than 800MB in wav files alone. This will take some time.
 
  mkdir wav
 
  mkdir wav
Line 16: Line 16:
 
  done
 
  done
  
===Create a Table of Contents file===
+
==Create a Table of Contents file==
 
Once finished, let's make a Table of Contents file that describes the layout of the CD.
 
Once finished, let's make a Table of Contents file that describes the layout of the CD.
 
  cd wav
 
  cd wav
Line 28: Line 28:
 
  } > toc
 
  } > toc
  
===Burn===
+
==Burn==
 
Finally, all we have to do is burn the CD.
 
Finally, all we have to do is burn the CD.
 
  cdrdao write toc
 
  cdrdao write toc

Revision as of 17:47, 7 November 2006


Setup

We'll be using a few programs for this.

pacman -Sy lame cdrdao

Let's configure cdrdao to use our CD burner. Open up /etc/cdrdao.conf (as root), and enter the /dev entry for your burner in this format:

write_device: "/dev/hdc"

Decode the MP3s

First of all, copy all the songs you want on the CD to a folder. It's best to rename them to reflect the order you want the tracks to be laid out (such as 01.mp3, 02.mp3, etc). Now we're going to decode all the mp3s into uncompressed wav files. Please realize that a full album can take up more than 800MB in wav files alone. This will take some time.

mkdir wav
for file in *.mp3 ; do
   lame --decode "$file" "wav/$file.wav"
done

Create a Table of Contents file

Once finished, let's make a Table of Contents file that describes the layout of the CD.

cd wav
{
  echo "CD_DA"
  for file in *.wav ; do
    echo "TRACK AUDIO"
    # echo "PREGAP 00:02:00"  # insert a 2-second silent gap before each track
    echo "FILE \"$file\" 0"
  done
} > toc

Burn

Finally, all we have to do is burn the CD.

cdrdao write toc