leoshaw / rubyripper

Automatically exported from code.google.com/p/rubyripper
0 stars 0 forks source link

CD-Text support. #316

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I men, im been using this project from long and rocks.

its possible to add cd-text feature ??

thks !

Original issue reported on code.google.com by afald...@gmail.com on 23 Jun 2009 at 11:36

GoogleCodeExporter commented 8 years ago
Can you give an example how you'd like to use it please?

Original comment by rubyripp...@gmail.com on 24 Jun 2009 at 5:59

GoogleCodeExporter commented 8 years ago
yap, something like EAC. it read cdtext data from drive if something available 
and 
fill disc info, ex. Album title, and track names.

for example ... cdda2wav show this data 

cdda2wav -D /dev/cdrom -J
Type: ROM, Vendor 'Optiarc ' Model 'DVD+-RW AD-7580A' Revision 'ZD04' MMC+CDDA
569344 bytes buffer memory requested, 4 buffers, 55 sectors
#icedax version 1.1.9, real time sched., soundcard, libparanoia support
AUDIOtrack pre-emphasis  copy-permitted tracktype channels
      1-12           no              no     audio    2
Table of Contents: total tracks:12, (total time 73:19.71)
  1.( 4:48.10),  2.( 8:25.36),  3.( 7:15.72),  4.( 6:40.39),  5.( 4:43.37),
  6.( 8:46.34),  7.( 5:52.14),  8.( 8:17.66),  9.( 7:41.03), 10.( 4:45.67),
 11.( 2:42.60), 12.( 3:20.08)

Table of Contents: starting sectors
  1.(       0),  2.(   21610),  3.(   59521),  4.(   92218),  5.(  122257),
  6.(  143519),  7.(  183003),  8.(  209417),  9.(  246758), 10.(  281336),
 11.(  302778), 12.(  314988), lead-out(  329996)
CDINDEX discid: Xc4FRwdnhdcymVQth6WuempZOaM-
CDDB discid: 0xa0112f0c
CD-Text: detected
CD-Extra: not detected
Album title: '20020601-outaTiME, clubbers-vol.1'    [from VA]
Track  1: 'The Supermen Lovers - Hard Stuff'
Track  2: 'Planet Funk - Inside All The People (Phunk Investigation Mix)'
Track  3: 'No Doubt - Hella Good (Roger Sanchez Dub)'
Track  4: 'Goosebump Feat Romina Johnson - Never Gonna Do (Phunk Investigation 
Dub)'
Track  5: 'Groove Armada - Tuning In (Dub Mix)'
Track  6: 'Smash Mouth - Pacific Coast Party (Lorimar Mix)'
Track  7: 'Roger Sanchez - Another Chance (Miguel Migs Remix)'
Track  8: 'Airgap - Resolve (Yoshitoshi Promo Main Mix)'
Track  9: 'M People - Rennaissance (John Digweeds Full On Mix)'
Track 10: 'Kaskade - My Time'
Track 11: 'Junior Boys – Hazel (Ewan Pearson’s Extended Disco Edit)'
Track 12: 'Jon Cutler ft E-Man – It’s Yours (Ian Pooley Main Mix)'

for VA disc is complex, 'cos whe need some kind o pattern to split artist, from 
track 
title, but form a one-artist disk will be work fine.

Original comment by afald...@gmail.com on 24 Jun 2009 at 2:05

GoogleCodeExporter commented 8 years ago
i don't say nothing. if cd-text was record proper the info shows ...

Type: ROM, Vendor 'Optiarc ' Model 'DVD+-RW AD-7580A' Revision 'ZD04' MMC+CDDA
569344 bytes buffer memory requested, 4 buffers, 55 sectors
#icedax version 1.1.9, real time sched., soundcard, libparanoia support
AUDIOtrack pre-emphasis  copy-permitted tracktype channels
      1-12           no             yes     audio    2
Table of Contents: total tracks:12, (total time 77:43.29)
  1.( 7:38.10),  2.( 6:52.04),  3.( 3:38.30),  4.( 8:20.06),  5.( 6:30.57),
  6.( 3:11.35),  7.( 8:52.65),  8.( 5:34.45),  9.( 6:16.29), 10.( 7:03.15),
 11.( 8:30.52), 12.( 5:14.56)

Table of Contents: starting sectors
  1.(       0),  2.(   34360),  3.(   65264),  4.(   81644),  5.(  119150),
  6.(  148457),  7.(  162817),  8.(  202782),  9.(  227877), 10.(  256106),
 11.(  287846), 12.(  326148), lead-out(  349754)
CDINDEX discid: 2lE6h1u5fDOqg9TxWvhUoA4I6QM-
CDDB discid: 0x9b12370c
CD-Text: detected
CD-Extra: not detected
Album title: 'Mayo 2003 - DanceMiX - vol.4' [from outaMiX]
Track  1: 'Together (Original Mix)'                     [from Artificial Funk]
Track  2: 'Fit Your Heart (Krikor's Extended Mix)'      [from Benjamin Diamond]
Track  3: 'Love On The Run'                             [from Chicane]
Track  4: 'Clocks (Paul + Stuart + Buey Mix)'           [from Coldplay]
Track  5: 'Dreaming Of You (Original Mix)'              [from Cue feat Lisa 
Marie 
Bonilla]
Track  6: 'Distortion'                                  [from David Guetta]
Track  7: 'Plastic Dreams I Feel Love'                  [from Jaydee vs Donna 
Summer]
Track  8: 'Who Said (Dj Vigna Remix)'                   [from Planet Funk]
Track  9: 'Think Twice'                                 [from Ralph Myerz And 
The 
Jack Herren Band]
Track 10: 'Drowsy With Hope (John Ciafone Mix)'         [from Shakedown Feat. 
Terra 
Deva]
Track 11: 'Valley Of The Sound'                         [from Slyder]
Track 12: 'Pabadam (Paul Legere Mix)'                   [from Yonderboi]

its possible to take in VA album the artists from metadata xD

Original comment by afald...@gmail.com on 24 Jun 2009 at 3:01

GoogleCodeExporter commented 8 years ago
I guess this info will only be stored on burned cd's, right?

Original comment by rubyripp...@gmail.com on 24 Jun 2009 at 3:38

GoogleCodeExporter commented 8 years ago
right xD

i give u a wiki page: http://en.wikipedia.org/wiki/CD-Text

Original comment by afald...@gmail.com on 24 Jun 2009 at 6:46

GoogleCodeExporter commented 8 years ago

Original comment by rubyripp...@gmail.com on 28 Jun 2009 at 9:28

GoogleCodeExporter commented 8 years ago
Can you please post the output of a disc with CD-text with the following 
command? You
need to have cdrdao installed ofcourse.

cdrdao read-toc --device /dev/cdrom output.toc

Original comment by rubyripp...@gmail.com on 12 Jul 2009 at 11:16

GoogleCodeExporter commented 8 years ago
A bunch of the discs I've been ripping have CD Text, despite being silver 
(pressed at
a factory).   Perhaps we can have an option to use that in naming (ala iTunes, 
but
I've never used it)?   Would be nice if freedb is down or the person is without 
an
internet connection, at least.

Original comment by mordbr...@gmail.com on 17 Jul 2009 at 11:53

GoogleCodeExporter commented 8 years ago
$ cdrdao read-toc --device /dev/hdd output.toc
Cdrdao version 1.2.2 - (C) Andreas Mueller <andreas@daneb.de>
  SCSI interface library - (C) Joerg Schilling
  Paranoia DAE library - (C) Monty

Check http://cdrdao.sourceforge.net/drives.html#dt for current driver tables.

Using libscg version 'ubuntu-0.8ubuntu1'

/dev/hdd: _NEC DVD_RW ND-3550A  Rev: 1.05
Using driver: Generic SCSI-3/MMC - Version 2.0 (options 0x0000)

Reading toc data...

Track   Mode    Flags  Start                Length
------------------------------------------------------------
 1      AUDIO   0      00:00:00(     0)     03:25:74( 15449)
 2      AUDIO   0      03:25:74( 15449)     05:55:08( 26633)
 3      AUDIO   0      09:21:07( 42082)     03:38:57( 16407)
 4      AUDIO   0      12:59:64( 58489)     04:27:30( 20055)
 5      AUDIO   0      17:27:19( 78544)     04:08:63( 18663)
 6      AUDIO   0      21:36:07( 97207)     04:50:31( 21781)
 7      AUDIO   0      26:26:38(118988)     03:04:16( 13816)
 8      AUDIO   0      29:30:54(132804)     05:00:26( 22526)
 9      AUDIO   0      34:31:05(155330)     03:09:49( 14224)
10      AUDIO   0      37:40:54(169554)     05:53:45( 26520)
Leadout AUDIO   0      43:34:24(196074)

PQ sub-channel reading (audio track) is supported, data format is BCD.
Raw P-W sub-channel reading (audio track) is supported.
Cooked R-W sub-channel reading (audio track) is supported.
Analyzing track 01 (AUDIO): start 00:00:00, length 03:25:74...
Found 31 Q sub-channels with CRC errors.
Found ISRC code.
Control nibbles of track match CD-TOC settings.
Analyzing track 02 (AUDIO): start 03:25:74, length 05:55:08...
Found 46 Q sub-channels with CRC errors.
Found ISRC code.
Control nibbles of track match CD-TOC settings.
Analyzing track 03 (AUDIO): start 09:21:07, length 03:38:57...
Found 13 Q sub-channels with CRC errors.
Found ISRC code.
Control nibbles of track match CD-TOC settings.
Analyzing track 04 (AUDIO): start 12:59:64, length 04:27:30...
Found pre-gap: 00:01:15
Found 6 Q sub-channels with CRC errors.
Found ISRC code.
Control nibbles of track match CD-TOC settings.
Analyzing track 05 (AUDIO): start 17:27:19, length 04:08:63...
Found pre-gap: 00:01:16
Found 5 Q sub-channels with CRC errors.
Found ISRC code.
Control nibbles of track match CD-TOC settings.
Analyzing track 06 (AUDIO): start 21:36:07, length 04:50:31...
Found pre-gap: 00:01:33
Found 4 Q sub-channels with CRC errors.
Found ISRC code.
Control nibbles of track match CD-TOC settings.
Analyzing track 07 (AUDIO): start 26:26:38, length 03:04:16...
Found pre-gap: 00:01:27
Found 10 Q sub-channels with CRC errors.
Found ISRC code.
Control nibbles of track match CD-TOC settings.
Analyzing track 08 (AUDIO): start 29:30:54, length 05:00:26...
Found pre-gap: 00:01:62
Found 13 Q sub-channels with CRC errors.
Found ISRC code.
Control nibbles of track match CD-TOC settings.
Analyzing track 09 (AUDIO): start 34:31:05, length 03:09:49...
Found pre-gap: 00:01:74
Found 2 Q sub-channels with CRC errors.
Found ISRC code.
Control nibbles of track match CD-TOC settings.
Analyzing track 10 (AUDIO): start 37:40:54, length 05:53:45...
Found 75 Q sub-channels with CRC errors.
Found ISRC code.
Control nibbles of track match CD-TOC settings.
Found CD-TEXT data.

Reading of toc data finished successfully.

Original comment by mordbr...@gmail.com on 18 Jul 2009 at 12:06

Attachments:

GoogleCodeExporter commented 8 years ago
There is a slight problem here, because we only know there is CD-TEXT at the 
moment
we already are going to rip. So currently the plan is:

* if the metadata is still set at default
* and there is cd-text available
* use the cd-text to update the metadata

Original comment by rubyripp...@gmail.com on 18 Jul 2009 at 7:17

GoogleCodeExporter commented 8 years ago

Original comment by comradec...@gmail.com on 11 Feb 2012 at 6:57

GoogleCodeExporter commented 8 years ago

Original comment by comradec...@gmail.com on 11 Feb 2012 at 6:57

GoogleCodeExporter commented 8 years ago
Are there any updates on this issue? I have lots of CDs with CD-Text (mostly 
concert bootlegs). It'd be cool if I didn't have to enter the data by hand 
(even though it is available).

Original comment by mni...@gmail.com on 1 Oct 2012 at 2:39

GoogleCodeExporter commented 8 years ago
I think metadata from CD-Text should be written to the cue file even if there 
is also CDDB/MusicBrainz metadata available (which of course is used to tag the 
files). Isn't the whole point of a cue file to make it possible to produce an 
exact copy of the original CD?

And yes, CD-Text is seen very commonly also on pressed CDs.

Original comment by tuomo.le...@gmail.com on 19 Oct 2013 at 11:49

GoogleCodeExporter commented 8 years ago
Hello, I have a pressed CD that is not in the CDDB database and it has a 
CD-Text. It seems like Rubyrippper is still not able to read CD-Text. I'd 
really love to use this option in such cases.

~ $ cdrdao read-toc --device /dev/cdrom output.toc
Cdrdao version 1.2.3 - (C) Andreas Mueller <andreas@daneb.de>
/dev/cdrom: HL-DT-ST DVDRAM GH24NS95    Rev: RN01
Using driver: Generic SCSI-3/MMC - Version 2.0 (options 0x0000)

Reading toc data...

Track   Mode    Flags  Start                Length
------------------------------------------------------------
 1      AUDIO   0      00:00:00(     0)     03:53:74( 17549)
 2      AUDIO   0      03:53:74( 17549)     04:01:02( 18077)
 3      AUDIO   0      07:55:01( 35626)     03:31:32( 15857)
 4      AUDIO   0      11:26:33( 51483)     06:41:58( 30133)
 5      AUDIO   0      18:08:16( 81616)     03:54:12( 17562)
 6      AUDIO   0      22:02:28( 99178)     04:33:45( 20520)
 7      AUDIO   0      26:35:73(119698)     05:44:15( 25815)
 8      AUDIO   0      32:20:13(145513)     04:46:07( 21457)
 9      AUDIO   0      37:06:20(166970)     03:17:07( 14782)
10      AUDIO   0      40:23:27(181752)     05:13:35( 23510)
11      AUDIO   0      45:36:62(205262)     03:59:18( 17943)
Leadout AUDIO   0      49:36:05(223205)

PQ sub-channel reading (audio track) is supported, data format is BCD.
Raw P-W sub-channel reading (audio track) is supported.
Cooked R-W sub-channel reading (audio track) is supported.
Analyzing track 01 (AUDIO): start 00:00:00, length 03:53:74...
Found 14 Q sub-channels with CRC errors.
Control nibbles of track match CD-TOC settings.
Analyzing track 02 (AUDIO): start 03:53:74, length 04:01:02...
Found 14 Q sub-channels with CRC errors.
Control nibbles of track match CD-TOC settings.
Analyzing track 03 (AUDIO): start 07:55:01, length 03:31:32...
Found 14 Q sub-channels with CRC errors.
Control nibbles of track match CD-TOC settings.
Analyzing track 04 (AUDIO): start 11:26:33, length 06:41:58...
Found 23 Q sub-channels with CRC errors.
Control nibbles of track match CD-TOC settings.
Analyzing track 05 (AUDIO): start 18:08:16, length 03:54:12...
Found 15 Q sub-channels with CRC errors.
Control nibbles of track match CD-TOC settings.
Analyzing track 06 (AUDIO): start 22:02:28, length 04:33:45...
Found 10 Q sub-channels with CRC errors.
Control nibbles of track match CD-TOC settings.
Analyzing track 07 (AUDIO): start 26:35:73, length 05:44:15...
Found 11 Q sub-channels with CRC errors.
Control nibbles of track match CD-TOC settings.
Analyzing track 08 (AUDIO): start 32:20:13, length 04:46:07...
Found 10 Q sub-channels with CRC errors.
Control nibbles of track match CD-TOC settings.
Analyzing track 09 (AUDIO): start 37:06:20, length 03:17:07...
Found 9 Q sub-channels with CRC errors.
Control nibbles of track match CD-TOC settings.
Analyzing track 10 (AUDIO): start 40:23:27, length 05:13:35...
Found 23 Q sub-channels with CRC errors.
Control nibbles of track match CD-TOC settings.
Analyzing track 11 (AUDIO): start 45:36:62, length 03:59:18...
Found 9 Q sub-channels with CRC errors.
Control nibbles of track match CD-TOC settings.
Found CD-TEXT data.

Original comment by k.eigh...@gmail.com on 11 Aug 2015 at 10:17