Douglas Royds wrote:
Volker Kuhlmann wrote:
On Fri 16 May 2008 17:05:37 NZST +1200, Douglas Royds wrote:
I tried burning an audio + data CD with the following command:
cdrecord -v -eject dev=/dev/cdrw -audio -pad *.wav -data
filename.iso
I see on http://linux.about.com/od/nwb_guide/a/gdenwb01t82_3.htm
that they put the data and audio options the other way round:
cdrecord -v speed=2 dev=0,0,0 -data cd_image -audio track*
The data is required to be track 1, the remaining tracks may be audio.
I believe I did this once and it worked.
Volker
Seemed to do the job, thanks:
cdrecord -v -eject dev=/dev/cdrw -data filename.iso -audio -pad *.wav
I hadn't realised that the order was important. Ubuntu Hardy now does
two things when I pop this CD in the hole:
* Opens Nautilus, looking at the data session
* Opens Rhythmbox, and plays the music
I'll drop the CD into a conventional CD player later, and check that
it plays OK.
It didn't. My conventional CD player couldn't find the audio (others
might). In summary, here's what I found with mixed-mode CDs:
* cdrecord dev=/dev/cdrw -audio -pad *.wav -data filename.iso
o CD player plays this fine
o Neither Ubuntu Hardy nor Win2K can mount the data session,
but both see the music OK
* cdrecord dev=/dev/cdrw -data filename.iso -audio -pad *.wav
o Ubuntu Hardy plays the music and mounts the data session,
but ...
o My CD player couldn't find the audio
I have had some success with a "CD Extra". This is a multi-session disk,
in which the first session is audio, and the second data:
1. cdrecord -v dev=/dev/cdrw -multi -audio -pad *.wav
2. cdrecord dev=/dev/cdrw -msinfo
3. mkisofs -rJ -V Volume_name -o data.iso -C 0,22222 *.mp3
4. cdrecord -v -eject dev=/dev/cdrw data.iso
where
* -multi Fixate in a way that allows additional sessions later
* -msinfo Retrieve multi session info
* -rJ Rock Ridge and Joliet extensions for long filenames
* -C CDextra or image of a higher level session
* 0,22222 Start and end sector numbers, returned by -msinfo
This "CD Extra" plays OKish:
* Ubuntu Hardy
o Rhythmbox opens and plays the CD audio automatically
o Data session did not mount automatically, and I couldn't
find any guified way of doing so. CLI to the rescue:
+ mount /dev/cdrw /mnt/temp -t iso9660
+ I had to specify the fs type, unusually for a CD-ROM.
Perhaps it was confused by the audio data tracks
+ Once mounted, I could browse the data tracks as
normal, and, ahem, play the MP3s at the same time as
the CD audio was playing. Why? Because I could.
* Win2K
o Mounted the data session automatically
o Audio could be played using WinAmp
* Conventional CD player
o I assume it'll play OK - I haven't tried it yet
I found a good description of all this at
http://www.cdrfaq.org/faq03.html#S3-14:
"Subject: [3-14] How do I put audio and data on the same CD?
(2001/01/10)
There are two ways to do this. The first is to put the data on track
1 of the CD, and audio on the next several tracks (discs created
this way are referred to as "mixed-mode" CDs). The CD-ROM drive will
automatically look at track 1 and ignore all other tracks, so you'll
be able to get at the data and -- depending on the operating system
-- will be able to play the audio tracks. Remember that all of the
tracks, both audio and data, need to be recorded in a single
session. See section (3-2).
The down side of this is that audio CD players may attempt to play
track 1, which can be obnoxious or downright harmful to audio
equipment. Most modern CD players are smart enough to ignore data
tracks, so this won't usually be a problem.
The other approach is to create a multisession disc with the audio
tracks in the first session and the data track in the second. This
is how CD Extra (the format formerly known as CD Plus) works. Audio
CD players only look at the first session, and CD-ROM drives are
(supposed to) start with the last session, so it all works out. Sony
Music has some pages at http://www.cdextra.com/.
Kudos to Andy McFadden for his clear and comprehensive writing.
Looks like K3b supports CD Extra out of the box -
http://k3b.plainblack.com/about
=======================================================================
This email, including any attachments, is only for the intended
addressee. It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
altered or corrupted during transmission.
=======================================================================