Richard Spencer wrote:
>
<snip>
>
> # IMG_SIZE=`mkisofs -R -q -print-size audio/ 2>&1 | sed -e "s/.* = //"`
> # echo $IMG_SIZE
> 323323
> # [ "0$IMG_SIZE" -ne 0 ] && mkisofs -r audio/ |cdrecord blank=all
> -force speed=2 dev=0,6,0 tsize=${IMG_SIZE}s -audio -pad -
>
<snip>
I don't know what exactly you try to achieve? If you want to make an
audio CD (not an CDROM containing audio files), then you do not need
mkisofs at all. mkisofs is all about CDROMs. I see three possibilities
for what you want to do:
1.) You _really_ want to make a CDROM with audio files in an ISO9660 fs:
You then simply issue
prompt$ mkisofs -R -J audio | cdrecord -v dev=0,6,0 speed=2 -
2.) You want to make an audio CD (to be played with consumer CD
players):
This will put 2 second gaps between each track.
You then need no mkisofs, only leave the audio tracks as
WAV files and issue
prompt$ cdrecord -v dev=0,6,0 speed=2 -audio audio/*.wav
or expicitly name the files in case *.wav produces the wrong
sequence...
2') Like 2, but you want fine-grained control over gaps:
Use cdrdao. The CD-Writing-HOWTO is not very good at
describing this program, but the homepage (easily found by
using a search engine) of cdrdao gives some good examples of usage.
Additionally, if you have a CDRW that has data on it, you need to first
erase it (not together with writing!): Either use
a) $ cdrecord -v blank=fast dev=0,6,0 speed=2
or
b) - if a) produces errors when writing to the erased disk -
$ cdrecord -v blank=all dev=0,6,0 speed=2
Hope this helps.
Marc
--
Marc Mutz <[EMAIL PROTECTED]> http://marc.mutz.com/Encryption-HOWTO/
University of Bielefeld, Dep. of Mathematics / Dep. of Physics
PGP-keyID's: 0xd46ce9ab (RSA), 0x7ae55b9e (DSS/DH)
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs