** Apologies for my previous abortive post to the list...
Hello All,
I have a problem ripping an audio CD with cdda2wav. My system is
Linux 2.4.16, cdrtools-1.11 and has a Plextor CDwriter and Taeil cdrom
drive -- both IDE & setup identically. I can rip OK with the Plextor but
not with the Taeil. I have run cdda2wav with strace for diagnostic purposes.
Here is the script log from the session.
> strace -o cdda2wav.strace -tfF -s 200 cdda2wav -D0,0 -B -Owav
> Type: ROM, Vendor 'TAEIL ' Model 'CDD-7320T ' Revision '7.46' cdda2wav:
>Warning: controller returns wrong size for CD capabilities page.
> MMC+CDDA
> 724992 bytes buffer memory requested, 4 buffers, 75 sectors
> #Cdda2wav version 1.11a15_linux_2.4.16_i586_i586 real time sched. soundcard support
> AUDIOtrack pre-emphasis copy-permitted tracktype channels
> 1-16 no no audio 2
> Table of Contents: total tracks:16, (total time 40:33.15)
> 1.( 3:04.45), 2.( 2:10.25), 3.( 2:54.25), 4.( 1:50.07), 5.( 2:03.20)
> 6.( 0:50.28), 7.( 3:26.25), 8.( 3:09.50), 9.( 2:22.17), 10.( 3:06.18)
> 11.( 2:04.40), 12.( 2:19.12), 13.( 3:38.65), 14.( 1:47.13), 15.( 3:31.60)
> 16.( 2:12.15),
> Table of Contents: starting sectors
> 1.( 0), 2.( 13845), 3.( 23620), 4.( 36695), 5.( 44952)
> 6.( 54197), 7.( 57975), 8.( 73450), 9.( 87675), 10.( 98342)
> 11.( 112310), 12.( 121650), 13.( 132087), 14.( 148502), 15.( 156540)
> 16.( 172425), lead-out( 182340)
> CDINDEX discid: L8uixeoL4ZPPFIA50EWOTDKPR1E-
> CDDB discid: 0xd6097f10
> CD-Text: detected
> CD-Extra: not detected
> samplefile size will be 428863724 bytes.
> recording 2431.01999 seconds stereo with 16 bits @ 44100.0 Hz ->'audio'...
> Process 12333 attached
> percent_done:
> 0%
At this point the program stays transfixed at '0%' and most of the
functionality of the system pauses. After pressing the eject button on the
drive the following errors are generated and the system unpauses.
> cdda2wav: Input/output error. ReadCD MMC 12: scsi sendcmd: no error
> CDB: BE 04 00 00 00 00 00 00 4B 10 00 00
> status: 0x2 (CHECK CONDITION)
> Sense Bytes: 70 00 02 00 00 00 00 0A 00 00 00 00 3A 00 00 00
> Sense Key: 0x2 Not Ready, Segment 0
> Sense Code: 0x3A Qual 0x00 (medium not present) Fru 0x0
> Sense flags: Blk 0 (not valid)
> cmd finished after 18.490s timeout 300s
> 0%cdda2wav: Input/output error. ReadCD MMC 12: scsi sendcmd: no error
> Script done on Fri Mar 22 20:27:45 2002
Here is a section of the strace logfile. The problem appears that the
program is trying to read on file handle/channel '8' after it has closed
it or an I missing something? See below.
> 12332 20:27:22 munmap(0x40014000, 4096) = 0
> 12332 20:27:22 open("audio_01.wav", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 5
> 12332 20:27:22 write(5, "RIFF\344\360\217\31WAVEfmt
>\20\0\0\0\1\0\2\0D\254\0\0\20\261\2\0\4\0\20\0data\300\360\217\31", 44) = 44
> 12332 20:27:22 write(2, "samplefile size will be 428863724 bytes.\n", 41) = 41
> 12332 20:27:22 write(2, "recording 2431.01999 seconds stereo with 16 bits @ 44100.0
>Hz", 61) = 61
> 12332 20:27:22 write(2, " ->\'audio\'...", 13) = 13
> 12332 20:27:22 write(2, "\n", 1) = 1
> 12332 20:27:22 pipe([6, 7]) = 0
> 12332 20:27:22 pipe([8, 9]) = 0
> 12332 20:27:22 fork() = 12333
> 12332 20:27:22 sched_get_priority_min(0x1) = 1
> 12332 20:27:22 sched_get_priority_max(0x1) = 99
> 12332 20:27:22 geteuid() = 0
> 12332 20:27:22 getpid() = 12332
> 12332 20:27:22 sched_setscheduler(0x302c, 0x1, 0xbffff74c) = 0
> 12332 20:27:22 geteuid() = 0
> 12332 20:27:22 setresuid(ruid 4294967295, euid 0, suid 4294967295) = 0
> 12332 20:27:22 geteuid() = 0
> 12332 20:27:22 close(7) = 0
> 12332 20:27:22 close(8) = 0
^------File on handle 8 is closed here
> 12332 20:27:22 write(2, "percent_done:\n 0%", 18) = 18
> 12332 20:27:22 gettimeofday({1016828842, 295742}, NULL) = 0
> 12332 20:27:22 ioctl(4, 0x2285, 0xbffff66c) = 0
> 12332 20:27:22 gettimeofday({1016828842, 301582}, NULL) = 0
> 12332 20:27:22 gettimeofday({1016828842, 301749}, NULL) = 0
> 12332 20:27:22 ioctl(4, 0x2285 <unfinished ...>
> 12333 20:27:22 setuid(0) = 0
> 12333 20:27:22 geteuid() = 0
> 12333 20:27:22 getuid() = 0
> 12333 20:27:22 getegid() = 0
> 12333 20:27:22 getegid() = 0
> 12333 20:27:22 getgid() = 0
> 12333 20:27:22 close(6) = 0
> 12333 20:27:22 close(9) = 0
> 12333 20:27:22 read(8, <unfinished ...>
^------ But it is still trying to read on handle 8 ??!!
Here is where the drive eject button is pressed.
> 12332 20:27:40 <... ioctl resumed> , 0xbffff66c) = 0
> 12332 20:27:40 gettimeofday({1016828860, 792533}, NULL) = 0
> 12332 20:27:40 write(2, "cdda2wav: Input/output error. ReadCD MMC 12: scsi sendcmd:
>no error\nCDB: BE 04 00 00 00 00 00 00 4B 10 00 00\nstatus: 0x2 (CHECK
>CONDITION)\nSense Bytes: 70 00 02 00 00 00 00 0A 00 00 00 00 3A 00 00 00"..., 365) =
>365
> 12332 20:27:40 write(2, "\r 0%", 5) = 5
> 12332 20:27:40 write(9, "1", 1 <unfinished ...>
> 12333 20:27:40 <... read resumed> "1", 1) = 1
> 12333 20:27:40 write(5,
>"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\
> 12333 20:27:40 read(8, <unfinished ...>
> 12332 20:27:40 <... write resumed> ) = 1
Any ideas?
Thanks
Tom.
--
Tom Crane, Dept. Physics, Royal Holloway, University of London, Egham Hill,
Egham, Surrey, TW20 0EX, England.
Email: [EMAIL PROTECTED]
SPAN: 19.875
Fax: +44 (0) 1784 472794
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]