pCD 1.5 - CD-audio player

Audio editors, music players, video players, burning software, etc.
Message
Author
User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#76 Post by zigbert »

The reason why pCD uses icedax is simply because cddb_query can't read cd-text ON disc.


Sigmund

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#77 Post by 01micko »

zigbert wrote:The reason why pCD uses icedax is simply because cddb_query can't read cd-text ON disc.


Sigmund
So.. what do we do? My Dino fails to read.. some sleep? :?

All CDs play perfect, OS independent it seems, do you have a suggestion?
Puppy Linux Blog - contact me for access

Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

#78 Post by Sylvander »

How about displaying the program version number on the program window?

Following the name?
In the title bar?

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#79 Post by zigbert »

Mick wrote:So.. what do we do? My Dino fails to read.. some sleep?
I think it's better that you try some sleeps with your dino. The pcd-code is VERY simple, so it should be rather easy to understand. - /usr/local/pcd/pcd. You'll find the codelines beginning with:

#read internal cd-text info
.......

and

#if no internal cd-text, try www
.....


See you tomorrow :D

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#80 Post by 01micko »

Tomorrow + 1 :lol:

I tried sleeps everywhere to no avail.

Seems the code runs ok in a term with a curios "mismatch" :?

Code: Select all

# cdda2wav dev=/dev/cdrom -cddb=1 -info-only -no-infofile
Type: ROM, Vendor 'LG      ' Model 'CD-ROM CRD-8400B' Revision '1.06' 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 42:31.32)
  1.( 5:01.22),  2.( 4:14.68),  3.( 3:38.70),  4.( 3:03.72),  5.( 4:16.73),
  6.( 2:54.60),  7.( 2:21.05),  8.( 3:43.60),  9.( 2:37.00), 10.( 3:32.25),
 11.( 3:16.29), 12.( 3:49.73)

Table of Contents: starting sectors
  1.(       0),  2.(   22597),  3.(   41715),  4.(   58135),  5.(   71932),
  6.(   91205),  7.(  104315),  8.(  114895),  9.(  131680), 10.(  143455),
 11.(  159380), 12.(  174109), lead-out(  191357)
CDINDEX discid: G93RGReSQI.IWYtqMeXYnXvIasE-
CDDB discid: 0x9f09f70c CDDBP titles: resolved
CD-Text: detected
CD-Extra: not detected
Album title: 'Nevermind'	[from Nirvana]
Track  1: 'Smells Like Teen Spirit'
Track  2: 'In Bloom'
Track  3: 'Come As You Are'
Track  4: 'Breed'
Track  5: 'Lithium'
Track  6: 'Polly'
Track  7: 'Territorial Pissings'
Track  8: 'Drain You'
Track  9: 'Lounge Act'
Track 10: 'Stay Away'
Track 11: 'On A Plain'
Track 12: 'Something In The Way'
No media catalog number present.
scanning for ISRCs: 12 ...
index scan: 1...
track mismatch: 1, in-track subchannel: 2 (index 1, sector 22596)
index scan: 2...
track mismatch: 2, in-track subchannel: 3 (index 1, sector 41714)
index scan: 3...
track mismatch: 3, in-track subchannel: 4 (index 1, sector 58134)
index scan: 4...
track mismatch: 4, in-track subchannel: 5 (index 1, sector 71931)
index scan: 5...
track mismatch: 5, in-track subchannel: 6 (index 1, sector 91204)
index scan: 6...
track mismatch: 6, in-track subchannel: 7 (index 1, sector 104314)
index scan: 7...
track mismatch: 7, in-track subchannel: 8 (index 1, sector 114894)
index scan: 8...
track mismatch: 8, in-track subchannel: 9 (index 1, sector 131679)
index scan: 9...
track mismatch: 9, in-track subchannel: 10 (index 1, sector 143454)
index scan: 10...
track mismatch: 10, in-track subchannel: 11 (index 1, sector 159229)
index scan: 12...
# 
Info comes up ok, and I tried with sleep (various amounts up to 10!) in different places where I thought it may be useful. I used a popular cd. My cd drive maybe? I'll swap it one day and have another look.

Cheers
Puppy Linux Blog - contact me for access

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#81 Post by zigbert »

Good morning Mick
I don't think a new drive will help. Your output shows that it grabs info from the web, so we must search reasons elsewhere for the buggy behavior.

Please start pCD with a inserted cd, and post the content of the following files here:
/root/.pcd/tmp/pcd-cdda
/root/.pcd/tmp/pcd-cddb
/root/.pcd/tmp/pcd-tracks

This should point us close to the failing command.


Sigmund

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#82 Post by 01micko »

Ok,

I can tell you now that things fall apart somewhere around the cd text detection.

First of all, "~/.pcd/pcd-cdda" just says "1 | Track1 | (5.01)" etcetera through to track 12.
"pcd-cddb" says a bunch of stuff but most important at line 17 , then

Code: Select all

CD-text: detected
CD-extra: not detected
scanning for MCN...
No media catalog number present.

scanning for ISRCs: 1 ...
Therefore "~/.pcd/tracks" is blank.

I commented out all refs to cd text down to line 56 (and made necessary adjustments :wink: ) in /usr/local/pcd/pcd and lo and behold I got the text displaying, so the internet looked up the cd just fine.

Would a CD from 1991 (Nirvana-Nevermind) have CD text? Did they do that back then?

Hope this helps.
Puppy Linux Blog - contact me for access

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#83 Post by zigbert »

Mick
Since you have a disc with ORIGINAL cd-text information, it would be very helpful to look at the pcd-cddb file. The best would be to compare the file with the one you get when you commented out lines (till line 56). I have only used internal cd-text for discs that I have written in Pburn.


I thought this happened with every disc ????


Sigmund

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#84 Post by 01micko »

Hi Sigmund,

What I will do is run several tests on different CDs. I'll run in terminal, only the cd text command (the commented lines, maybe one by one :wink: ) on a disc I know has cd text (remember that "Misdirection" one?) and several discs.

Then I will run pCD with and without the commented lines and post 2 lots of files with the results of all CDs.

These tests will pinpoint where the error lies. And I may even try another drive too!

This will be time consuming, so it will wait until the weekend. :)

Cheers
Puppy Linux Blog - contact me for access

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#85 Post by 01micko »

AAArrrrrrrrgggghhhhh! :evil:

Sigmund!

I should have went with my gut feeling in the first place on the Dino! The drive.... yes, replaced with an old burner I had lying around and poked in that "Misdirection" CD and up comes the tracklist! Playing as I type. :twisted:

Anyway, I did all the tests I outlined before I replaced the drive including running various variants of the command

Code: Select all

cdda2wav dev=$DEVICE -info-only -no-infofile
and it seemed more and more likely to me that it was the drive.

:oops: BUT I just this minute realised I am running the pcd modified file! Just tried OFFLINE too! It reads the text by default. The one where I comment the lines and mod as such:

Code: Select all

#read internal cd-text info
#cdda2wav dev=$DEVICE -info-only -no-infofile > $WORKDIR/pcd-cddb 2>&1 &
#while [ ! "$BREAK" ]; do
	#is disc an audio-CD
#		ERROR="No valid audio-CD inserted"
#		BREAK=true
#	fi
	#don't run complete cdda2wav check. kill it when we got enough
#	if [ "`grep ISRC $WORKDIR/pcd-cddb`" ] || [ "`grep 'load cdrom' $WORKDIR/pcd-cddb`" ] ; then
#		BREAK=true
#		for I in `ps | grep cdda2wav | awk '{print $1}'`; do kill -9 $I 2> /dev/null; done
#	fi
#done
#if [ "`grep 'load cdrom' $WORKDIR/pcd-cddb`" ]; then
#	ERROR="No disc inserted"
#fi

#if no internal cd-text, try www
#if [ "`grep 'CD-Text: not detected' $WORKDIR/pcd-cddb`" ]; then
	cdda2wav dev=$DEVICE -cddb=1 -info-only -no-infofile > $WORKDIR/pcd-cddb 2>&1 &
	while [ ! "$BREAK2" ]; do
		#don't run complete cdda2wav check. kill it when we got enough
		if [ "`grep ISRC $WORKDIR/pcd-cddb`" ] || [ "`grep 'load cdrom' $WORKDIR/pcd-cddb`" ] ; then
			BREAK2=true
			for I in `ps | grep cdda2wav | awk '{print $1}'`; do kill -9 $I 2> /dev/null; done
		fi
	done
#fi
lines 36 to 63 inclusive.

I just tested "Slayer-Reign In Blood" which has no text that I'm aware of and it doesn't show OFF line but as soon as I reconnected and read the disc it shows.

Maybe this info could be useful to you.

Obviously still need to check if we have a valid audio CD. I'm not sure how to re-work that part of the code, so I just commented it out for now.

Not much use to post the results now, but if you want them I'll post.

Cheers mate.

Mick

EDIT: Just reverted back to the original code. It seems to work fine. It was just the drive at fault.
Last edited by 01micko on Sun 07 Jun 2009, 04:21, edited 2 times in total.
Puppy Linux Blog - contact me for access

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#86 Post by 01micko »

Sigmund,

As a final sanity check I ran this code in a terminal with the "Misdirection" CD inserted.

Code: Select all

cdda2wav dev=/dev/cdrom -cddb=1 -info-only -no-infofile
and it works. The Misdirection tracklist is detected. However, the command doesn't stop... it keeps looping :? Perhaps another option is needed?

I suppose the original code is just fine :) . All good now on the Dino in Upup.

Cheers
Puppy Linux Blog - contact me for access

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#87 Post by zigbert »

Version 0.8
See main post

changelog
- Set cdrom speed to 2x for silence. (thanks to dogone)
- Theme integration with Pmusic

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

#88 Post by ecomoney »

One of the main issues my users report running puppy compared to Windows is that, when inserting a cd it is not clear how to play it. Users are used to this behaviour, which exists on many other linux distributions too, as well as Windows.

Would there be a way for puppy to detect that an audio CD has been inserted and launch pCD automatically?
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#89 Post by zigbert »

Would there be a way for puppy to detect that an audio CD has been inserted and launch pCD automatically?
That would be a job for Barrys pup_event manager.


Sigmund

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#90 Post by disciple »

Users are used to this behaviour
Most of the (Windows) users I know despise this new behaviour and disable it. Computers should not do things unless they are told to - it is much better to have a straightforward way to play and open discs manually (like clicking "My Computer" and clicking on the disc).

Maybe we are all technophiles or control freaks compared to you English :)
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

#91 Post by Sylvander »

I like the "Autoplay" feature; if I don't want a disk to autoplay I just hold the [Shift] key while the disk is being detected after closing the drawer.

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

#92 Post by ecomoney »

If a person inserts an Audio CD, its a pretty fair bet they either wish to either play it or rip it to the Hard Drive, or why else insert it? As Puppy is a Distro that should be "friendly to linux newbies", then should it not also "assume no prior linux knowledge"?.

Having the ability to (easily) switch this behavior off (by use of a tick box in the dialogue that appears when an audio CD is inserted perhaps) could be a feature.

A very simple text based mockup of a possible gui dialogue....

Code: Select all


                         Puppy CD Manager
                         -----------------------

                 O      Copy CD to HD with.......[Dropdown]
               
                 *       Play CD with..................... .[Dropdown]

                 O      Make a copy of this CD
            
                            [X]      Dont show this again 

        [    Cancel      ]                       [          OK          ]

The dialogue would store the users preferences (which apps to use) and whether to show itself upon inserting a CD at all. The dropdowns could detect common ripping/playing programs (with pCD as failsafe default) perhaps by employing the bash "which" command..i.e

which mplayer
which gxine
which beepMP

..etc


My users (none of whom are computer professionals or enthusiasts) tell me that it is difficult to work oput how to play a CD using puppy. Could PCD make the necessary changes to the event manager via its options dialogue, and the dialogue above, to enable this to happen?
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#93 Post by disciple »

If a person inserts an Audio CD, its a pretty fair bet they either wish to either play it or rip it to the Hard Drive, or why else insert it?
Actually, normally when I insert a disc I want to do something with it, but not immediately. Don't ask me why :)

The (windows) users I am talking about who want to be in control of their computer aren't enthusiasts or IT people... but I guess a lot of them are people like engineers, for whom the computer is a tool.
My users (none of whom are computer professionals or enthusiasts) tell me that it is difficult to work oput how to play a CD using puppy.
It might be less automated than recent versions of Windows, but I can't see how it can be difficult - Puppy's menu is actually sorted into logical categories, and CD playing only makes sense in the multimedia menu, so surely anyone who can read would find it there easily?
Also, the most recent Puppy I downloaded has desktop drive icons, which automatically launch gxine to play CDs when you click on them - has that been dropped or something?
Could PCD make the necessary changes to the event manager via its options dialogue, and the dialogue above, to enable this to happen?
The event manager could do with a bit of an overhaul to improve things like you suggest, but I think Zigbert is right and it should definitely be separate. The user should be able to choose what programs it calls. Go ahead and package us an upgrade for it :)[/b]
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#94 Post by disciple »

if I don't want a disk to autoplay I just hold the [Shift] key while the disk is being detected after closing the drawer.
Now that sounds like a feature that is "difficult to work out". It is impossible to work out - you have to be told. Or do they have a tooltip or something to tell you?
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

#95 Post by Sylvander »

Way back in Xmas 1996 my son gave me a present of "Windows 95 for dummies".

I made a list on paper of all such features of Win95 [they generally apply to later Windows versions also].
Still have it within arms reach of the PC.
Says page 251 has the info on this.
The book is also within arms reach, and page 251 does indeed have this info. :D

I imagine the Windows Help system would tell of this.

Asked at the biggest/best bookstore in Edinburgh for a book on Puppy Linux and the assistant knew nothing of any such thing. :(

Post Reply