====== Ubuntu - CD - Write audio CD ======
===== Using cdrdao (DAO) =====
The "Disc at once" (DAO) feature allows one to burn an audio CD without the two second gap between tracks. This is most useful when copying CDs as it allows one to burn the CD to be just like the original. The **cdrdao** command uses a "table of contents" (TOC) file as shown below.
Usage:
cdrdao command [options] toc-file
Example:
cdrdao write toc-file.toc
^Command^Description^
|show-toc|Prints out table of contents (toc) then exits.|
|toc-info|Prints out short toc-file summary.|
|toc-size|Prints total number of blocks for toc.|
|read-toc|Create toc file from audio CD.|
|read-cd|Create toc and rip audio data from CD.|
|show-data|Prints out audio data and exits.|
|read-test|Reads all audio files and exits.|
|disk-info|Shows information about inserted medium.|
|unlock|Unlock drive after failed writing.|
|simulate|Shortcut for 'write --simulate'.|
|write|Writes CD.|
|copy|Copies CD.|
^Option^Description^
|--device x,y,z|Sets SCSI device of CD-writer. SCSI bus, device, lun. i.e. 0,4,0.|
|--source-device x,y,z|Sets SCSI device of CD-ROM reader. Used by 'copy'.|
|--driver driver-id|Force usage of specified driver.|
|--source-driver driver-id|Force usage of specified driver for source device. Used by 'copy'.|
|--simulate|Perform a write simulation.|
|--speed CD-speed|Set writing speed.|
|--multi|Session will not be not closed.|
|--eject|Ejects cd after writing or simulation.|
|--swap|Swap byte order of audio files.|
|--on-the-fly|No image file is created. Perform copy in process.|
|--datafile file-name|Name of toc file. Used by read-toc, read-cd and copy.|
|--buffers number|Sets fifo buffer size (min. 10, def 32).|
|--session number|Selects session for read-toc/read-cd.|
|--fast-toc|Do not extract pre-gaps and index marks.|
|--read-raw|Read raw sectors for read-cd.|
|--paranoia-mode number|DAE paranoia mode (0..3).|
|--reload|Reload the disk if necessary for writing.|
|--force|Force execution of operation.|
|-v verbose-level|Set verbose level.|
|-n|No pause before writing.|
See [[http://cdrdao.sourceforge.net/example.html|cdrdao examples]] and how to generate a toc file to control gaps (or lack thereof) during CD burn.
Create toc (table of contents file) which shows(read)/determines(write) the gaps in tracks.
cdrdao read-toc --driver generic-mmc-raw --read-raw --device 0,4,0 toc-file.toc
Sample TOC (Table Of Contents) file:
CD_DA
CATALOG "0075590506829"
// Track 1
TRACK AUDIO
NO COPY
NO PRE_EMPHASIS
TWO_CHANNEL_AUDIO
SILENCE 00:01:00
FILE "data.wav" 0 03:28:70
START 00:01:00
// Track 2
TRACK AUDIO
NO COPY
NO PRE_EMPHASIS
TWO_CHANNEL_AUDIO
FILE "data.wav" 03:28:70 02:14:45
START 00:04:52
...
..
// Track 10
TRACK AUDIO
NO COPY
NO PRE_EMPHASIS
TWO_CHANNEL_AUDIO
FILE "data.wav" 26:05:40 05:03:37
// Track 11
TRACK AUDIO
NO COPY
NO PRE_EMPHASIS
TWO_CHANNEL_AUDIO
FILE "data.wav" 31:09:02 04:50:50
Minimal example:
CD_DA
TRACK AUDIO
AUDIOFILE "song1.wav" 0
TRACK AUDIO
AUDIOFILE "song2.wav" 0
TRACK AUDIO
AUDIOFILE "song3.wav" 0
...
..
Where the "0" refers to the beginning of the file.
----
===== References =====
[[http://cdrdao.sourceforge.net/|Sourceforge: cdrdao Home Page]]
[[http://cdrdao.sourceforge.net/gcdmaster/|GcdMaster - GNOME CDRDAO GUI for CD mastering]]