pCD 1.5 - CD-audio player

Audio editors, music players, video players, burning software, etc.
Message
Author
disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#41 Post by disciple »

Great! Thanks for this Zigbert :)
I wonder why it works so much better than other players when they use digital playback...

Code: Select all

~# pcd
(gtkdialog3:28261): Gtk-WARNING **: Failed to set text from markup due to error parsing markup: Error on line 1: Character ' ' is not valid at the start of an entity name; the & character begins an entity; if this ampersand isn't supposed to be an entity, escape it as &
EXIT="Ready"
Pcd says

Code: Select all

Artist:     Don Francisco
<b><tt>Album:<span size='large' color='#15963B'>   Genesis & Job</span></tt></b>
Year:      0
I guess it probably doesn't like the "&", so we need to figure out what characters are valid in cddb fields (and cdtext if pcd will support it) :(

Also, some of what you said before seemed to imply that it should display the track length even when there is no cddb entry, and maybe also titles from CD text... was that right or did I misunderstand? Because it doesn't.
Maybe I need to look at the code when I get a chance :)
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

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

#42 Post by zigbert »

disciple
I'll put your notes on the todo-list


Sigmund

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

#43 Post by zigbert »

Version 0.3
See main post

Changelog
- Show playing song.
- Use cd-text from disc if not available from web.
- Track length in its own column.
- Show always length in list.
- Start first track if none is selected.
- cddb_query is no longer a dependency.
- Bugfix: Stop music in case stopping in pause beetween tracks.
- Bugfix: Choose a track and press play-button plays first track. (thanks to trio)

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

#44 Post by Sylvander »

Version 0.3 is better than 0.2.
If I run pCD, then put an audio CD in the drawer and close it...
Xfmedia still auto-plays the audio CD, but...
If I close Xfmedia down...
I can highlight a track in pCD and hit the Play button and it actually plays. :D

How do I change to pCD as the program to auto-run?

alex12
Posts: 82
Joined: Fri 30 Jan 2009, 03:33

#45 Post by alex12 »

zigbert wrote:Changelog
- Show playing song.
- Use cd-text from disc if not available from web.
Thanks zigbert.

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

#46 Post by 01micko »

Hmmmmm...

Working great V-0.3... but the 'read cd tex't is not working for me. That "Misdirection" cd I posted results of earlier in this thread is not showing up... it plays... but "artist=unknown"... etc.

Nice so far though 8)
Puppy Linux Blog - contact me for access

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

#47 Post by zigbert »

Mick
The only way I could test the internal CD-text (no web) was to burn my own audio-CD in Pburn with CD-text info. That worked well. It would be great to hear if pCD fails with that unique disc, or if it fails on several......


Sigmund

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

#48 Post by disciple »

Great, thanks for the new version :)
1. When I am connected to the internet, it displays the names of the songs twice, i.e.

Code: Select all

1 'Come AwayCome Away'
Could this be because it is getting the information from both the cddb and the CD-text?
2. It doesn't close everything - if run from a terminal, after I click "stop" then "quit", it keeps echoing

Code: Select all

sh: line 1: 10306 Broken pipe             cat /root/.pcd/tmp/pcd-playing 2>/dev/null
[/code]
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

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

#49 Post by zigbert »

disciple
I'm very interested in your output for the disc which has both internal cd-text and cddb info. I don't own such a cd. Could you please post it here.


Sigmund

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

#50 Post by disciple »

I'm not sure what output you mean.
This is all it says in the terminal

Code: Select all

~# pcd
cat: /root/.pcd/tmp/pcd-READ_DISC: No such file or directory
/usr/local/pcd/pcd: line 96:  9693 Killed                  cdda2wav dev=/dev/cdrom cddb=1 -info-only -no-infofile >$WORKDIR/pcd-cddb 2>&1
EXIT="Ready"
pcd-cdda

Code: Select all

1 | 'Come AwayCome Away'							 - 01 | (3:05)
2 | 'Cause and EffectCause and Effect'					 - 02 | (3:17)
3 | 'Restin' in JesusRestin' in Jesus'					 - 03 | (3:50)
4 | 'Forever LovedForever Loved'						 - 04 | (3:02)
5 | 'And The Spirit SingsAnd The Spirit Sings'				 - 05 | (3:43)
6 | 'Does God Still Get the BluesDoes God Still Get the Blues?'		 - 06 | (4:34)
7 | 'The FastThe Fast'							 - 07 | (3:57)
8 | 'Son of RighteousnessSon of Righteousness'				 - 08 | (4:09)
9 | 'Freedom to MoveFreedom to Move'					 - 09 | (3:17)
10 | 'Feed My SheepFeed My Sheep'						 - 10 | (4:44)
11 | 'Come Away (reprise)Come Away (reprise)'				 - 11 | (3:01)
pcd-cddb

Code: Select all

Type: ROM, Vendor 'ATAPI   ' Model 'DVD A  DH20A4P  ' Revision '9P59' MMC+CDDA
569344 bytes buffer memory requested, 4 buffers, 55 sectors
#icedax version 1.1.6, real time sched., soundcard, libparanoia support
AUDIOtrack pre-emphasis  copy-permitted tracktype channels
      1-11           no             yes     audio    2
Table of Contents: total tracks:11, (total time 40:44.31)
  1.( 3:05.36),  2.( 3:17.39),  3.( 3:50.39),  4.( 3:02.62),  5.( 3:43.16),
  6.( 4:34.42),  7.( 3:57.46),  8.( 4:09.44),  9.( 3:17.42), 10.( 4:44.31),
 11.( 3:01.09)

Table of Contents: starting sectors
  1.(       0),  2.(   13911),  3.(   28725),  4.(   46014),  5.(   59726),
  6.(   76467),  7.(   97059),  8.(  114880),  9.(  133599), 10.(  148416),
 11.(  169747), lead-out(  183331)
CDINDEX discid: VFR8Ne.9dXJOS9oaRoYupqYrCcE-
CDDB discid: 0x9c098c0b CDDBP titles: resolved
CD-Text: detected
CD-Extra: not detected
Album title: 'Come Away'	[from Don Francisco]
Track  1: 'Come AwayCome Away'							[from 01]
Track  2: 'Cause and EffectCause and Effect'					[from 02]
Track  3: 'Restin' in JesusRestin' in Jesus'					[from 03]
Track  4: 'Forever LovedForever Loved'						[from 04]
Track  5: 'And The Spirit SingsAnd The Spirit Sings'				[from 05]
Track  6: 'Does God Still Get the BluesDoes God Still Get the Blues?'		[from 06]
Track  7: 'The FastThe Fast'							[from 07]
Track  8: 'Son of RighteousnessSon of Righteousness'				[from 08]
Track  9: 'Freedom to MoveFreedom to Move'					[from 09]
Track 10: 'Feed My SheepFeed My Sheep'						[from 10]
Track 11: 'Come Away (reprise)Come Away (reprise)'				[from 11]
scanning for MCN...
No media catalog number present.

scanning for ISRCs: 1 ...
pcd-tracks

Code: Select all

 'Come AwayCome Away'							 - 01
 'Cause and EffectCause and Effect'					 - 02
 'Restin' in JesusRestin' in Jesus'					 - 03
 'Forever LovedForever Loved'						 - 04
 'And The Spirit SingsAnd The Spirit Sings'				 - 05
 'Does God Still Get the BluesDoes God Still Get the Blues?'		 - 06
 'The FastThe Fast'							 - 07
 'Son of RighteousnessSon of Righteousness'				 - 08
 'Freedom to MoveFreedom to Move'					 - 09
 'Feed My SheepFeed My Sheep'						 - 10
 'Come Away (reprise)Come Away (reprise)'				 - 11
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

#51 Post by disciple »

BTW the tracks don't all have their track numbers displayed in line - I guess because my gtk is set to use a different font (Arial). Maybe we need to either put the track numbers and times in separate columns (instead of just spacing them out), or tell pcd to use a monospace font or something.
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

#52 Post by disciple »

I see this in the terminal when I click on a track

Code: Select all

cat: /root/.pcd/tmp/pcd-READ_DISC: No such file or directory
/usr/local/pcd/pcd: line 95:   450 Killed                  cdda2wav dev=/dev/cdrom cddb=1 -info-only -no-infofile >$WORKDIR/pcd-cddb 2>&1
EXIT="Ready"
Type: ROM, Vendor 'ATAPI   ' Model 'DVD A  DH20A4P  ' Revision '9P59' MMC+CDDA
569344 bytes buffer memory requested, 4 buffers, 55 sectors
#icedax version 1.1.6, real time sched., soundcard, libparanoia support
AUDIOtrack pre-emphasis  copy-permitted tracktype channels
      1-11           no             yes     audio    2
Table of Contents: total tracks:11, (total time 40:44.31)
  1.( 3:05.36),  2.( 3:17.39),  3.( 3:50.39),  4.( 3:02.62),  5.( 3:43.16),
  6.( 4:34.42),  7.( 3:57.46),  8.( 4:09.44),  9.( 3:17.42), 10.( 4:44.31),
 11.( 3:01.09)

Table of Contents: starting sectors
  1.(       0),  2.(   13911),  3.(   28725),  4.(   46014),  5.(   59726),
  6.(   76467),  7.(   97059),  8.(  114880),  9.(  133599), 10.(  148416),
 11.(  169747), lead-out(  183331)
CDINDEX discid: VFR8Ne.9dXJOS9oaRoYupqYrCcE-
CDDB discid: 0x9c098c0b
CD-Text: detected
CD-Extra: not detected
Track  1: 'Come Away'                           [from 01]
Track  2: 'Cause and Effect'                    [from 02]
Track  3: 'Restin' in Jesus'                    [from 03]
Track  4: 'Forever Loved'                       [from 04]
Track  5: 'And The Spirit Sings'                [from 05]
Track  6: 'Does God Still Get the Blues'        [from 06]
Track  7: 'The Fast'                            [from 07]
Track  8: 'Son of Righteousness'                [from 08]
Track  9: 'Freedom to Move'                     [from 09]
Track 10: 'Feed My Sheep'                       [from 10]
Track 11: 'Come Away (reprise)'                 [from 11]
Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
samplefile size will be 32250668 bytes.
recording 182.8266 seconds stereo with 16 bits @ 44100.0 Hz ->'-'...
percent_done:
  0%underrun!!! (at least 747.652 ms long)
  2%
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

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

#53 Post by zigbert »

So this means that removing cddb=1 from line 56 in /usr/local/pcd/pcd fixes it......???? - not reading the web cddb info.


Sigmund

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

#54 Post by disciple »

Yes.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

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

#55 Post by zigbert »

thanks

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

#56 Post by zigbert »

Version 0.4
See main post

changelog
- Check if valid audio-CD
- Links to copy/rip CD
- Bugfix: Bad probing for CD with internal cd-text info. (thanks to disciple)
- Bugfix: kill 'while' loop when exit pCD.

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

#57 Post by ecomoney »

Coming on well zigbert! Thanks for adding the "rip" cd button.

I had a problem today with a generic "unknown artist - unknown title" disc of tracks from a jamming session I made (Im not a pirate honestly!!!!) :lol:, it did say that it was playing (via the progressbar) but no sound came out. Same cd played fine with gxine (on Puppy 4.2.1 beta 2).

Also, the shortcut that is created in /root/my-applications/bin (for the pWidgets tray) is missing a graphic icon...perhaps another opportunity to show your artistic side 01Micko?

Would it be possible to start pCD automatically when an audio CD is inserted?
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:

#58 Post by zigbert »

I forgot to mention that the 'copy CD' button will be enabled as soon as you install Pburn-2.4.0

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

#59 Post by zigbert »

Version 0.5
See main post

changelog
- Added '-D plughw' to aplay command for lower cpu usage.

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

#60 Post by 01micko »

Version 0.5 running, first run Pburn was inaccessible, second run ok, proceeded to burn that curious Misdirection CD, recognised cd text ok, all burnt ok except there is something funny with the first track, it won't play from the original cd or the copy. Some strange mispelt text appears next to the first track, misspelling of Misdirection, maybe the cd is funny, but sound and all is superb.

Here are some log files....
Attachments
Pburn.log.gz
(899 Bytes) Downloaded 438 times
Pburn1.log.gz
(5.91 KiB) Downloaded 477 times
Puppy Linux Blog - contact me for access

Post Reply