pCD has long delay before playing CD (Solved)

Moderator: Forum moderators

Post Reply
User avatar
greengeek
Posts: 1384
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 535 times
Been thanked: 192 times

pCD has long delay before playing CD (Solved)

Post by greengeek »

I am using zigbert's pCD cd player (currently using Tahr 32) and experiencing a long delay before it will start playing an audio CD.

I have a suspicion that this may be due to freedb database having gone offline earlier this year and I would like to update the pCD utility with the gnudb.org database address that fredx181 recently brought to my attention as the new database location for rippers etc.

Does anyone know where the correct config file is for pCD please? (Or is freedb.org specified within the code itself?)

cheers!

ps: /usr/local/pcd/func seems to contain code for cddb lookup but I cant see freedb.org coded in there anywhere...

EDIT : pCD seems to contain a ripping function so I am wondering if pCD relies on something already coded into cdda2wav - maybe the freedb.org address is specified somewhere outside of pCD.

It seems that freedb.org is compiled into cdda2wav but can be overwritten by the cddb-server parameter at run time.
If pCD is calling cdda2wav than maybe this parameter needs to be passed by pCD to cdda2wav. Unless there is some way to set an environmental variable permanently for cdda2wav.

Here is an example of the syntax that seems to work to get cdda2wav to access the database:

root# cdda2wav dev=/dev/sr0 cddb=0 -cddbp-server=gnudb.gnudb.org
Type: ROM, Vendor 'PLDS ' Model 'DVD+-RW DS-8A3S ' Revision 'HD12' MMC+CDDA
569344 bytes buffer memory requested, transfer size 131072 bytes, 4 buffers, 55 sectors
cdda2wav: Read TOC CD Text failed (probably not supported).
#Cdda2wav version 3.01a25_linux_3.14-inside-t2-sandbox_i686_i386, real time sched., soundcard, libparanoia support
AUDIOtrack pre-emphasis copy-permitted tracktype channels
1-33 no no audio 2
Table of Contents: total tracks:33, (total time 65:38.70)
1.( 2:28.47), 2.( 1:59.05), 3.( 1:37.73), 4.( 2:50.74), 5.( 2:40.66),
6.( 3:20.62), 7.( 3:10.05), 8.( 3:37.24), 9.( 2:24.45), 10.( 2:03.24),
11.( 1:21.28), 12.( 1:43.62), 13.( 1:57.66), 14.( 2:11.38), 15.( 2:21.32),
16.( 2:33.59), 17.( 2:02.06), 18.( 1:18.34), 19.( 1:24.20), 20.( 2:38.52),
21.( 1:00.25), 22.( 1:16.39), 23.( 1:49.52), 24.( 1:03.42), 25.( 0:55.12),
26.( 1:37.52), 27.( 1:55.67), 28.( 1:03.20), 29.( 2:05.24), 30.( 0:59.43),
31.( 1:31.40), 32.( 2:45.14), 33.( 1:48.18)

Table of Contents: starting sectors
1.( 0), 2.( 11147), 3.( 20077), 4.( 27425), 5.( 40249),
6.( 52315), 7.( 67377), 8.( 81632), 9.( 97931), 10.( 108776),
11.( 118025), 12.( 124128), 13.( 131915), 14.( 140756), 15.( 150619),
16.( 161226), 17.( 172760), 18.( 181916), 19.( 187800), 20.( 194120),
21.( 206022), 22.( 210547), 23.( 216286), 24.( 224513), 25.( 229280),
26.( 233417), 27.( 240744), 28.( 249436), 29.( 254181), 30.( 263580),
31.( 268048), 32.( 274913), 33.( 287302), lead-out( 295420)
CDINDEX discid: Y3GIcIaHjAODg0i6k6G2856KXbc-
CDDB discid: 0xea0f6221 CDDBP titles: resolved
CD-Text: not detected
CD-Extra: not detected
Album title: 'Children's TOP 100 (Disc 1 of 3)' [from Early Learning Centre]
Track 1: 'The bare necessities'
Track 2: 'Yellow bird'
Track 3: 'Humpty Dumpty'
Track 4: 'Whistle while you work'
Track 5: 'The animals went in two by two'
Track 6: 'I'd like to teach the world to sing'
Track 7: 'The owl and the pussycat'
Track 8: 'Mud, mud, glorious mud'
Track 9: 'Jimmy crack corn'
Track 10: 'Oh dear what can the matter be'
Track 11: 'Kookaburra'
Track 12: 'Girls and boys come out to play'
Track 13: 'One potato two potato'
Track 14: 'Inchworm'
Track 15: 'There was an old lady who swalloed a fly'
Track 16: 'Farmyard cabaret'
Track 17: 'Chip chop chip chop chipper chopper Joe'
Track 18: 'Hickory Dickory Dock'
Track 19: 'Five brown eggs in a nest of hay'
Track 20: 'Santa's Elves'
Track 21: 'Little Miss Muffet'
Track 22: 'I went to visit a farm one day'
Track 23: 'You can't keep a horse in a lighthouse'
Track 24: 'Daddy wouldn't buy me a bow-wow'
Track 25: 'Little Jack Horner'
Track 26: 'Brown bear's snoring'
Track 27: 'Ugly bug ball'
Track 28: 'One little cockerel'
Track 29: 'Little boxes'
Track 30: 'I'm a hippopotamus'
Track 31: 'Frog went a courtin''
Track 32: 'Day Oh!'
Track 33: 'Hot cross buns'
samplefile size will be 26217788 bytes.
recording 148.6266 seconds stereo with 16 bits @ 44100.0 Hz ->'audio'...
percent_done:
100% track 1 'The bare necessities' recorded successfully
root#

Last edited by greengeek on Thu Dec 03, 2020 7:50 am, edited 2 times in total.
User avatar
greengeek
Posts: 1384
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 535 times
Been thanked: 192 times

Re: pCD has long delay before playing CD

Post by greengeek »

Got it!
Had to modify /usr/local/pcd/func around line 40

Change:

Code: Select all

cdda2wav dev=$DEVICE -cddb=1 -info-only -no-infofile > $WORKDIR/pcd-cddb 2>&1 &

to

Code: Select all

cdda2wav dev=$DEVICE -cddb=1 -cddbp-server=gnudb.gnudb.org -info-only -no-infofile > $WORKDIR/pcd-cddb 2>&1 &
User avatar
mikewalsh
Moderator
Posts: 6158
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 795 times
Been thanked: 1981 times

Re: pCD has long delay before playing CD (Solved)

Post by mikewalsh »

@greengeek :-

Ian:-

I believe if you look in /usr/share/glib-2.0/schemes, you may find an XML file for freedb.org. I'm not saying it's relevant to your situation, but it may be worth investigating?

Mike. ;)

User avatar
greengeek
Posts: 1384
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 535 times
Been thanked: 192 times

Re: pCD has long delay before playing CD (Solved)

Post by greengeek »

mikewalsh wrote: Fri Dec 04, 2020 1:18 pm

I believe if you look in /usr/share/glib-2.0/schemes, you may find an XML file for freedb.org. I'm not saying it's relevant to your situation, but it may be worth investigating?

Hmmm, i am currently testing a Tahr32 and i don't see anything here for freedb on my version. Here is the list of files i see there:
(maybe there is an entry within one of those files...)

Code: Select all

10_gsettings-desktop-schemas.gschema.override
10_libgtk-3-common.gschema.override
app.gtkhash.gschema.xml
gschemas.compiled
org.gnome.desktop.a11y.applications.gschema.xml
org.gnome.desktop.a11y.gschema.xml
org.gnome.desktop.a11y.keyboard.gschema.xml
org.gnome.desktop.a11y.magnifier.gschema.xml
org.gnome.desktop.a11y.mouse.gschema.xml
org.gnome.desktop.background.gschema.xml
org.gnome.desktop.datetime.gschema.xml
org.gnome.desktop.default-applications.gschema.xml
org.gnome.desktop.enums.xml
org.gnome.desktop.input-sources.gschema.xml
org.gnome.desktop.interface.gschema.xml
org.gnome.desktop.lockdown.gschema.xml
org.gnome.desktop.media-handling.gschema.xml
org.gnome.desktop.notifications.gschema.xml
org.gnome.desktop.privacy.gschema.xml
org.gnome.desktop.screensaver.gschema.xml
org.gnome.desktop.search-providers.gschema.xml
org.gnome.desktop.session.gschema.xml
org.gnome.desktop.sound.gschema.xml
org.gnome.desktop.thumbnail-cache.gschema.xml
org.gnome.desktop.thumbnailers.gschema.xml
org.gnome.desktop.wm.keybindings.gschema.xml
org.gnome.desktop.wm.preferences.gschema.xml
org.gnome.Evince.gschema.xml
org.gnome.system.locale.gschema.xml
org.gnome.system.proxy.gschema.xml
org.gtk.Settings.ColorChooser.gschema.xml
org.gtk.Settings.FileChooser.gschema.xml

It would be nice if it was simple to set a global file that could redirect freedb to gnudb - but i suspect a more piecemeal approach may be needed. I did hear back from Heiko regarding the best way to get cdda2wav updated and i have posted his reply here

Post Reply

Return to “Tahr”