libcdio-devel
[Top][All Lists]
Advanced

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

[Libcdio-devel] cdio_get_cdtext always returns NULL


From: Ulrich Eckhardt
Subject: [Libcdio-devel] cdio_get_cdtext always returns NULL
Date: Sat, 08 Sep 2012 18:34:28 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120825 Thunderbird/15.0

Hi,

i have tried to update my cd-player plugin for the Linux-VDR (http://www.uli-eckhardt.de/vdr/cdplayer.en.shtml) to the new API of libcdio 0.84. I have tested this problem with a current 64Bit OpenSUSE 12.2.

I use the following code to access the cd-text information:

#if LIBCDIO_VERSION_NUM > 83
    pCdio = cdio_open(FileName.c_str(), DRIVER_UNKNOWN);
#else
    pCdio = cdio_open(FileName.c_str(), DRIVER_DEVICE);
#endif
    if (pCdio == NULL) {
        mState = BCDIO_FAILED;
        txt = tr("Can not open");
        mErrtxt = txt  + " " + FileName;
esyslog("%s %d Can not open %s", __FILE__, __LINE__, FileName.c_str());
        return false;
    }
#if LIBCDIO_VERSION_NUM > 83
    pCdioCdtext = cdio_get_cdtext(pCdio);
    if (pCdioCdtext == NULL) {
        dsyslog ("No CD-Text available");
    }
#endif

cdio_get_cdtext returns here always NULL, even if the CD has cd-text information. I have performed a test with cd-info and there the same problems seems to exist.

The output of the old cd-info 0.83:

----------------------------------------------------------------------
cd-info version 0.83 i686-pc-linux-gnu
Copyright (c) 2003, 2004, 2005, 2007, 2008, 2011 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                      : VBOX
Model                       : CD-ROM
Revision                    : 1.0
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                     : Yes

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                        : Yes

Writing....
  Can write CD-RW                         : Yes
  Can write DVD-R                         : Yes
  Can write DVD-RAM                       : Yes
  Can write DVD-RW                        : No
  Can write DVD+RW                        : No
__________________________________

Disc mode is listed as: CD-DA
CD-ROM Track List (1 - 12)
  #: MSF       LSN    Type   Green? Copy? Channels Premphasis?
  1: 00:02:00  000000 audio  false  no    2        no
  2: 03:15:33  014508 audio  false  no    2        no
  3: 05:36:51  025101 audio  false  no    2        no
  4: 08:16:65  037115 audio  false  no    2        no
  5: 12:24:69  055719 audio  false  no    2        no
  6: 16:39:73  074848 audio  false  no    2        no
  7: 20:07:03  090378 audio  false  no    2        no
  8: 23:45:39  106764 audio  false  no    2        no
  9: 27:35:33  124008 audio  false  no    2        no
 10: 30:57:29  139154 audio  false  no    2        no
 11: 34:48:22  156472 audio  false  no    2        no
 12: 38:00:59  170909 audio  false  no    2        no
170: 41:57:45  188670 leadout (423 MB raw, 423 MB formatted)
Media Catalog Number (MCN): 0000000000000
TRACK  1 ISRC: GASBF0401403
TRACK  2 ISRC: GASBF0401377
TRACK  3 ISRC: GASBF0401378
TRACK  4 ISRC: GASBF0401380
TRACK  5 ISRC: GASBF0401386
TRACK  6 ISRC: GASBF0401401
TRACK  7 ISRC: GASBF0401402
TRACK  8 ISRC: GASBF0401387
TRACK  9 ISRC: GASBF0401404
TRACK 10 ISRC: GASBF0401407
TRACK 11 ISRC: GASBF0401389
TRACK 12 ISRC: GASBF0401393
Last CD Session LSN: 0
audio status: no status
volume level port 0: 216 (0..255)  84 (0..100)
volume level port 1: 216 (0..255)  84 (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

CD-TEXT for Disc:
        TITLE: The Stranglers
CD-TEXT for Track  1:
        TITLE: Golden Boy
CD-TEXT for Track  2:
        TITLE: waltzinblack
CD-TEXT for Track  3:
        TITLE: Valley Of The Birds
CD-TEXT for Track  4:
        TITLE: always the sun
CD-TEXT for Track  5:
        TITLE: golden brown
CD-TEXT for Track  6:
        TITLE: Summer In The City
CD-TEXT for Track  7:
        TITLE: Wonderful Land
CD-TEXT for Track  8:
        TITLE: Lies And Deception
CD-TEXT for Track  9:
        TITLE: Money
CD-TEXT for Track 10:
        TITLE: Paradise Row
CD-TEXT for Track 11:
        TITLE: all day and all of the night
CD-TEXT for Track 12:
        TITLE: no more heroes
----------------------------------------------------------------------

For the same CD with cd-info 0.84 the following output without CD-Text is displayed:

----------------------------------------------------------------------
address@hidden:/tmp> cd-info --no-cddb
cd-info version 0.84git x86_64-suse-linux-gnu
Copyright (c) 2003, 2004, 2005, 2007, 2008, 2011, 2012 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                      : TSSTcorp
Model                       : CDDVDW SH-S202J
Revision                    : SB01
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                     : Yes

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                        : Yes

Writing....
  Can write CD-RW                         : Yes
  Can write DVD-R                         : Yes
  Can write DVD-RAM                       : Yes
  Can write DVD-RW                        : No
  Can write DVD+RW                        : No
__________________________________

Disc mode is listed as: CD-DA
CD-ROM Track List (1 - 12)
  #: MSF       LSN    Type   Green? Copy? Channels Premphasis?
  1: 00:02:00  000000 audio  false  no    2        no
  2: 03:15:33  014508 audio  false  no    2        no
  3: 05:36:51  025101 audio  false  no    2        no
  4: 08:16:65  037115 audio  false  no    2        no
  5: 12:24:69  055719 audio  false  no    2        no
  6: 16:39:73  074848 audio  false  no    2        no
  7: 20:07:03  090378 audio  false  no    2        no
  8: 23:45:39  106764 audio  false  no    2        no
  9: 27:35:33  124008 audio  false  no    2        no
 10: 30:57:29  139154 audio  false  no    2        no
 11: 34:48:22  156472 audio  false  no    2        no
 12: 38:00:59  170909 audio  false  no    2        no
170: 41:57:45  188670 leadout (423 MB raw, 423 MB formatted)
Media Catalog Number (MCN): 0000000000000
TRACK  1 ISRC: GASBF0401403
TRACK  2 ISRC: GASBF0401377
TRACK  3 ISRC: GASBF0401378
TRACK  4 ISRC: GASBF0401380
TRACK  5 ISRC: GASBF0401386
TRACK  6 ISRC: GASBF0401401
TRACK  7 ISRC: GASBF0401402
TRACK  8 ISRC: GASBF0401387
TRACK  9 ISRC: GASBF0401404
TRACK 10 ISRC: GASBF0401407
TRACK 11 ISRC: GASBF0401389
TRACK 12 ISRC: GASBF0401393
Last CD Session LSN: 0
audio status: no status
volume level port 0: 216 (0..255)  84 (0..100)
volume level port 1: 216 (0..255)  84 (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
No CD-TEXT on Disc.
----------------------------------------------------------------------

Best Regards
Uli
--
Ulrich Eckhardt                  http://www.uli-eckhardt.de

Ein Blitzableiter auf dem Kirchturm ist das denkbar stärkste
Misstrauensvotum gegen den lieben Gott. (Karl Krauss)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]