User Tools

Site Tools


ubuntu:cd:write_audio_cd

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
CommandDescription
show-tocPrints out table of contents (toc) then exits.
toc-infoPrints out short toc-file summary.
toc-sizePrints total number of blocks for toc.
read-tocCreate toc file from audio CD.
read-cdCreate toc and rip audio data from CD.
show-dataPrints out audio data and exits.
read-testReads all audio files and exits.
disk-infoShows information about inserted medium.
unlockUnlock drive after failed writing.
simulateShortcut for 'write –simulate'.
writeWrites CD.
copyCopies CD.
OptionDescription
–device x,y,zSets SCSI device of CD-writer. SCSI bus, device, lun. i.e. 0,4,0.
–source-device x,y,zSets SCSI device of CD-ROM reader. Used by 'copy'.
–driver driver-idForce usage of specified driver.
–source-driver driver-idForce usage of specified driver for source device. Used by 'copy'.
–simulatePerform a write simulation.
–speed CD-speedSet writing speed.
–multiSession will not be not closed.
–ejectEjects cd after writing or simulation.
–swapSwap byte order of audio files.
–on-the-flyNo image file is created. Perform copy in process.
–datafile file-nameName of toc file. Used by read-toc, read-cd and copy.
–buffers numberSets fifo buffer size (min. 10, def 32).
–session numberSelects session for read-toc/read-cd.
–fast-tocDo not extract pre-gaps and index marks.
–read-rawRead raw sectors for read-cd.
–paranoia-mode numberDAE paranoia mode (0..3).
–reloadReload the disk if necessary for writing.
–forceForce execution of operation.
-v verbose-levelSet verbose level.
-nNo pause before writing.

See 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

ubuntu/cd/write_audio_cd.txt · Last modified: 2020/07/15 09:30 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki