Showing posts with label HOWTO. Show all posts
Showing posts with label HOWTO. Show all posts

20090124

HOWTO: Burning A Gapless Audio CD With A Data Track, In Linux

I had a pretty miserable time getting this to work.

Many of the popular CD burning applications, like k3b, advertise being able to burn so-called CD-Extra CDs, but none of them actually work. Some forget the data track. Others forget the gapless part.

Here's how you do it:

1) Convert your audio files to CD-quality .wavs

2) Make a tracklist.toc file
If your wavs happen to be named 01.wav and 02.wav, then your tracklist.toc would look like this:

// tracklist.toc
CD_ROM_XA

TRACK AUDIO
COPY
AUDIOFILE "01.wav" 0

TRACK AUDIO
COPY
AUDIOFILE "02.wav" 0




3) Burn the gapless audio tracks in multisession mode
cdrdao write --multi -n tracklist.toc

4) Make a datatrack.iso of your data
If you have one file, dvj.tar.gz, then, with the half-burned CD still in the shut drive, the proper command is:
mkisofs -J -r -V "dvj source code" -C `cdrecord -msinfo` -o datatrack.iso dvj.tar.gz

5) Burn datatrack.iso after the audio, and close the CD
cdrecord -v -eject release.iso