[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: "Burn" CD audio to a file



At 02:32 PM 11/25/02 -0500, sean finney wrote:
>well, i've never tried this (but have used it for other things), but
>try mounting it on a loopback device and playing it from that.
>
>example:
>
># losetup /dev/loop0 cdimage.iso
>$ cdplay -d /dev/loop0
>
># losetup -d /dev/loop0
>
>i know this works for programs like dd, but i'm not sure whether or
>not it would work for cdplay.  lemme know if it works :)

I had tried earlier to get dd to copy directly without luck.

  dd if=/dev/sr0 of=cdimage 

or 

  dd if=/dev/scd0 of=cdimage

But that results in:

Nov 25 12:29:14 laptop kernel: SCSI cdrom error : host 0 channel 0 id 0 lun
0 return code = 28000000
Nov 25 12:29:14 laptop kernel: ILI Current sd0b:00: sense key Illegal Request
Nov 25 12:29:14 laptop kernel: Additional sense indicates Illegal mode for
this track
Nov 25 12:29:14 laptop kernel:  I/O error: dev 0b:00, sector 0
Nov 25 12:29:14 laptop kernel: SCSI cdrom error : host 0 channel 0 id 0 lun
0 return code = 28000000
Nov 25 12:29:14 laptop kernel: ILI Current sd0b:00: sense key Illegal Request
Nov 25 12:29:14 laptop kernel: Additional sense indicates Illegal mode for
this track
Nov 25 12:29:14 laptop kernel:  I/O error: dev 0b:00, sector 4

But I'm able to use cdrdao and cdparanoia to rip from that device without
problem.  Anyone else able to copy a cd image to disk?

Again, my goal is not to rip a CD image so I can play it.  Rather the goal
is to "burn" with cdrdao to a file where I can then pre-view it
(specifically after making changes to the TOC sheet cdrdao uses to build
the CDR).  This is also on a machine that's not running X so I can't use a
graphical track editor program to preview TOC changes.

Using dd to save the image to disk is just a good test to see if I can then
mount the disk image on a loopback device and play it with something like
cdplay.  

Getting cdrdao to write to a disk image is another issue.  I don't know
much about the audio cd format, but it would need to write the TOC and the
raw audio data to the disk file, I believe.

Thanks,
-- 
Bill Moseley
mailto:moseley@hank.org



Reply to: