On Mon, Apr 25, 2011 at 5:06 PM, Stephen Kell
<address@hidden> wrote:
Hi,
I'm fairly sure I've run into a bug in cd-info. For audio discs with a
trailing data track -- like a lot of CD singles and various others --
print_analysis() is skipped and no CDDB info is printed. The offending
code is around lines 1190--1245 of cd-info.c.
The test currently is that if there are no data tracks we consider cd audio. What would
be a better test? If there is only one data track after all of the audio tracks?
I don't have time to cook
up a patch right now, but I can do in a little while if need be.
What would be very helpful is to remaster this CD to make it not proprietary so we
have a sample test to work with. For example you could burn this to an image and then
make the wav part be 1 second of silence. If the data part has copyrighted text, change the text.
We want to keep the *structure* of the CD image to be about the same. The content can be totally different.
I've pasted the output for my CD of Bowie's Station to Station, which
has a data track at the end. Let me know if I can provide any other
information. Thanks (for any help, and for working on libcdio!),
Stephen.
address@hidden:/usr/local/src/libcdio-0.81$ cd-info
cd-info version 0.81 x86_64-pc-linux-gnu
Copyright (c) 2003, 2004, 2005, 2007, 2008 R. Bernstein
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
CD location : /dev/cdrom
CD driver name: GNU/Linux
access mode: ioctl
Vendor : OEM
Model : CD-ROM F564E
Revision : 1.15
Hardware : CD-ROM or DVD
Can eject : Yes
Can close tray : Yes
Can disable manual eject : Yes
Can select juke-box disc : No
Can set drive speed : No
Can read multiple sessions (e.g. PhotoCD) : Yes
Can hard reset device : No
Reading....
Can read Mode 2 Form 1 : Yes
Can read Mode 2 Form 2 : Yes
Can read (S)VCD (i.e. Mode 2 Form 1/2) : Yes
Can read C2 Errors : Yes
Can read IRSC : Yes
Can read Media Channel Number (or UPC) : Yes
Can play audio : Yes
Can read CD-DA : Yes
Can read CD-R : Yes
Can read CD-RW : Yes
Can read DVD-ROM : No
Writing....
Can write CD-RW : No
Can write DVD-R : No
Can write DVD-RAM : No
Can write DVD-RW : No
Can write DVD+RW : No
__________________________________
Disc mode is listed as: CD-DA
CD-ROM Track List (1 - 7)
#: MSF LSN Type Green? Copy? Channels Premphasis?
1: 00:02:00 000000 audio false no 2 no
2: 10:16:27 046077 audio false no 2 no
3: 14:16:72 064122 audio false no 2 no
4: 20:20:62 091412 audio false no 2 no
5: 25:54:60 116460 audio false no 2 no
6: 32:10:22 144622 audio false no 2 no
7: 40:42:42 183042 data false no
170: 43:20:16 194866 leadout (437 MB raw, 437 MB formatted)
Media Catalog Number (MCN): 0724352190607
Last CD Session LSN: 183042
audio status: no status
volume level port 0: 255 (0..255) 100 (0..100)
volume level port 1: 255 (0..255) 100 (0..100)
volume level port 2: 0 (0..255) 0 (0..100)
volume level port 3: 0 (0..255) 0 (0..100)
__________________________________
CD Analysis Report
session #2 starts at track 7, LSN: 183042, ISO 9660 blocks: 194714
ISO 9660: 194714 blocks, label `BOWIE '
_______________________________________________
Libcdio-help mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/libcdio-help