pMusic 6.0.0

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:

Re: message file

#1171 Post by zigbert »

shinobar wrote:Pmusic 2.6.1 has a message file at /usr/share/locale/en/LC_MESSAGES/pmusic. I think the file is better to be under the application directory, that is /usr/local/pmusic, because it is not a translation but one of the essential components.
I see... Added to todo-list (also for Pburn)


Thank you
Sigmund

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

Re: pmusic_CD fails at the first time

#1172 Post by zigbert »

shinobar wrote:Installed Pmusic 2.6.1 on lupu-528.005. LANG=en_US.
Remove /root/.pmusic.
Run 'pmusic' ... seems OK (but fails connecting to the remote server).
Insert an audio CD, and run 'pmusic_CD /dev/sr0' ...OK.

Remove /root/.pmusic.
Insert an audio CD, and run 'pmusic_CD /dev/sr0' ... Shows the window but Never plays the CD.
Stop the pmusic, re-run pmusic_CD /dev/sr0' ... OK.
Stop the pmusic, re-run 'pmusic' .. Starts in the task tray, but Never shows window.
Hmmm. waiting for more reports....

User avatar
OscarTalks
Posts: 2196
Joined: Mon 06 Feb 2012, 00:58
Location: London, England

#1173 Post by OscarTalks »

Hello Zigbert,

Just experimenting with Pmusic for listening to radio streams and pleased to say that these recent versions are working very well.

I can listen to mp3 and AAC+ streams from the direct URL and also it works if I enter the URL of a .pls playlist metafile.

I was wondering if it should be possible also to play wma streams because some radio stations do use this format?

I know Pmusic plays wma files OK, but streams seem to be a bit different. In WMP you have to use mms:// as the protocol to play a wma stream. Using http:// does not work. Do I need extra plugins or libs or something?

If I enter the URL "http://streamer5.securenetsystems.net:80/WFTL" into VLC it will play the wma stream of station WFTL in Florida. VLC media information shows the stream URL as being "mms://streamer5.securenetsystems.net/WFTL" but neither of these connect to the stream in Pmusic.

Any ideas?
Last edited by OscarTalks on Fri 01 Jun 2012, 01:22, edited 1 time in total.
Oscar in England
Image

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

Re: pmusic_CD fails at the first time

#1174 Post by shinobar »

shinobar wrote:Remove /root/.pmusic.
Insert an audio CD, and run 'pmusic_CD /dev/sr0' ... Shows the window but Never plays the CD.
Stop the pmusic, re-run pmusic_CD /dev/sr0' ... OK.
Stop the pmusic, re-run 'pmusic' .. Starts in the task tray, but Never shows window.
There may be several issues. To get it simple, I tried:
Insert an audio CD. Then,

Code: Select all

# rm -fr  ~/.pmusic
# pmusic -c
A 'Detecting CD' splash arose, and another GUI with blank playlist shows.
But never filled the playlist and never plays the CD.
The console repeats forever the following:

Code: Select all

/usr/local/pmusic/func_player: line 238: [: -lt: unary operator expected
/usr/local/pmusic/func_player: line 239: [: -lt: unary operator expected
/usr/local/pmusic/func_player: line 240: [: =: unary operator expected
Firstly, i suspected some infinity loop in the 'func_player', but...
Checked running process from another terminal, and found the 'func_cd -play_cd' and 'func_cd -read_cd' are running.

I suspect 'func_cd -read_cd' has got in an infinitive loop at line 28-40.
I looked up /root/.pmusic/tmp/cd-cddb.
It was only 1 line ( or 3 for some try) like:

Code: Select all

Type: ROM, Vendor 'PIONEER ' Model 'BD-RW   BDR-206D' Revision '1.05' MMC+CDDA
The cdda2wav should give more output. But there left only the first 1-3 lines.
I guess the cdda2wav is called from the 'func_cd -read_cd', but be killed soon by another parallel process.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

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

#1175 Post by zigbert »

OscarTalks wrote:I was wondering if it should be possible also to play wma streams
Pmusic supports whatever ffmpeg supports, and at the moment it does NOT support wma-streams. I haven't checked recent development of ffmpeg - it seems rather active - 0.11 was released the other day, and i haven't checked what news it brings.


Good to hear that (else of wma) it works for you
Sigmund

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

#1176 Post by zigbert »

shinobar
I made a check here, and run 'pmusic -c' - everything works as expected. It would be very helpful if you determined where it all goes wrong. I suspect func_cd line 38 or 53 that kills the ongoing cdda2wav when pmusic has got enough info to continue. line 38 if CD holds internal cd-text information, line 53 if not, and trying to fetch info from internet.

What if you run the cdda2wav command in terminal? - is everything ok.....


this is my /root/.pmusic/tmp/cd-cddb

Code: Select all

Type: ROM, Vendor 'ASUS    ' Model 'BW-12B1LT       ' Revision '1.03' MMC+CDDA
765952 bytes buffer memory requested, transfer size 524288 bytes, 4 buffers, 75 sectors
cdda2wav: Read TOC CD Text failed (probably not supported).
#Cdda2wav version 3.01a02_linux_2.6.35.7-smp_i686_amd-athlon-tm--ii-x2-235e-processor, real time sched., soundcard, libparanoia support
33 sectors of audio data before track #0
AUDIOtrack pre-emphasis  copy-permitted tracktype channels
      1- 9           no              no     audio    2
Table of Contents: total tracks:9, (total time 44:13.22)
  1.( 7:04.62),  2.( 4:34.43),  3.( 3:59.60),  4.( 4:20.42),  5.( 5:21.60),
  6.( 5:12.13),  7.( 3:57.45),  8.( 4:56.65),  9.( 4:45.07)

Table of Contents: starting sectors
  1.(      33),  2.(   31895),  3.(   52488),  4.(   70473),  5.(   90015),
  6.(  114150),  7.(  137563),  8.(  155383),  9.(  177648), lead-out(  199030)
CDINDEX discid: lyiUl6aboZkOwWVswJKRZTPYbAg-
CDDB discid: 0x600a5d09 CDDBP titles: resolved
CD-Text: not detected
CD-Extra: not detected
Album title: 'Perfect Strangers (Japan, P33P 50001)'	[from Deep Purple]
Track  1: 'Knocking At Your Back Door'
Track  2: 'Under The Gun'
Track  3: 'Nobody's Home'
Track  4: 'Mean Streak'
Track  5: 'Perfect Strangers'
Track  6: 'A Gypsy's Kiss'
Track  7: 'Wasted Sunsets'
Track  8: 'Hungry Daze'
Track  9: 'Not Responsible'
scanning for MCN...
Media catalog number: 0042282377722

scanning for ISRCs: 1 ...

Thank you alot
Sigmund

User avatar
Dougal
Posts: 2502
Joined: Wed 19 Oct 2005, 13:06
Location: Hell more grotesque than any medieval woodcut

#1177 Post by Dougal »

zigbert wrote:
OscarTalks wrote:I was wondering if it should be possible also to play wma streams
Pmusic supports whatever ffmpeg supports, and at the moment it does NOT support wma-streams.
WMA streams are called ASF.
My Sep. 2009 ffmpeg supports it...

Code: Select all

 ffmpeg -formats 2>&1| grep -i asf
 DE asf             ASF format
  E asf_stream      ASF format
I've been using mmsrip for downloading things served via MMS, but ffmpeg should support it (though you might want to look at this...).

BTW, you can also config the browser to launch Pmusic etc. automatically for an MMS stream...
It can be added in about:config as

Code: Select all

network.protocol-handler.app.mms string appname
(you right-click and select New->String etc.)
More simply, in the browser config directory, prefs.js should include:

Code: Select all

user_pref("network.protocol-handler.app.mms", "appname");
user_pref("network.protocol-handler.warn-external.mms", false);
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

pmusic -c fails at the first time

#1178 Post by shinobar »

zigbert wrote:I made a check here, and run 'pmusic -c' - everything works as expected.
I am on lupu-528JP(developping). Re-installed your pmusic 2.6.1.pet.
Insert an audio CD. Removed the pmusic work directry to initialize because it occurs only once at the first time.

Code: Select all

# rm -fr  ~/.pmusic
# pmusic -c
#
/usr/local/pmusic/func_player: line 238: [: -lt: unary operator expected
/usr/local/pmusic/func_player: line 239: [: -lt: unary operator expected
/usr/local/pmusic/func_player: line 240: [: =: unary operator expected

/usr/local/pmusic/func_player: line 254: /root/.pmusic/tmp/tmpPLAYLIST: No such file or directory

/usr/local/pmusic/func_player: line 238: [: -lt: unary operator expected
/usr/local/pmusic/func_player: line 239: [: -lt: unary operator expected
/usr/local/pmusic/func_player: line 240: [: =: unary operator expected

/usr/local/pmusic/func_player: line 254: /root/.pmusic/tmp/tmpPLAYLIST: No such file or directory
...(infinitive repeat)
The cdda2wav command in terminal is everything ok. But it seems killed at early stage in the above case.
Suppose it is not by the func_cd line 38 nor 53 because cdda2wav have not yet gives enough information.
I suspect another proccess. Following the 'ps' result.

Code: Select all

# ps > ps.txt
# grep pmusic ps.txt 
16383 root       0:00 /bin/sh /usr/local/pmusic/func_cd -play_cd
16459 root       0:00 /bin/sh /usr/local/pmusic/func_cd -read_cd
16460 root       0:00 /usr/local/pmusic/pmusic_tray
16470 root       0:00 /bin/bash /usr/local/pmusic/box_splash
16524 root       0:00 gtkdialog4 -p pmusic_splash --center
16642 root       0:00 gtkdialog4 -f /root/.pmusic/tmp/xml_Pmusic -G +20+20
16667 root       0:00 sh -c while [ "$I" != "100" ]; do I=`cat /root/.pmusic/tmp/splash`; echo $I; usleep 500000; done
22365 root       0:00 /bin/bash /usr/local/pmusic/func_player -playing -next
22630 root       0:00 /bin/sh /usr/local/pmusic/func_cd -read_cd
Seems running double 'func_cd -read_cd'. And runnung 'func_player -playing -next' at this stage is also questionable.
Last edited by shinobar on Sat 02 Jun 2012, 04:00, edited 1 time in total.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

Who kills cdda2wav?

#1179 Post by shinobar »

pmusic line 182-185 wrote: -c) #if used in combination with the -j switch, Keep -j before -c
$APPDIR/func_store_playlist
$APPDIR/func_cd -play_cd &
;;
pmusic line 377-380 wrote:#more firstrun - this will only run if gui shows up. It might be that first run is with parameters like --version.
if [ "$FIRSTRUN" = "true" ]; then
$APPDIR/func_player -play -autoplay &
fi
func_player line 309-315 wrote: #start new process
$APPDIR/func_kill
echo 0 > $WORKDIR/SS
echo 0 > $WORKDIR/PERCENT_BAR
#---
cp -f $WORKDIR/PLAYLIST $WORKDIR/PLAYLIST_PRESS_EVENT #fake a button click - store unique nr for ie play-icon - see -playing). $WORKDIR/PLAYLIST does not store playlist-number
$APPDIR/func_player -playing -next &
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

save cdda2wav

#1180 Post by shinobar »

I don't know what zigbert intended, but i commented out the line 377-380 of pmusic for testing.

Needed 2 more tweaks.
1. Insert sleep in the loop, func_cd line 28-40:
func_cd at line 28 wrote: while [ ! "$BREAK" ]; do sleep 1
2. Failsafe for SS:
func_player at line 130 wrote: SS=($(<"$WORKDIR/SS")) || SS=0
Works as expected for the first run of the 'pmusic -c'.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

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

#1181 Post by zigbert »

shinobar
This is very good investigation !!!!
I didn't understand the real issue - it is sure a conflict with the -c switch and the -autoplay function. I like to keep the the firstrun autoplay, so instead of comment it out I made another check that the -c switch is not used.

Line 377

Code: Select all

#more firstrun - this will only run if gui shows up. It might be that first run is with parameters like --version.
if [ "$FIRSTRUN" = "true" ] && [ "$RUN_CD" != "true" ]; then #do not run this if -c switch is used
	$APPDIR/func_player -play -autoplay &
fi
Included the extra SS-check and the sleep 1.
I guess sleep 1 is not needed in the second loop (connection to internet) because the disc is already spinning....


Just one more thing to say - THANK YOU!!!
Sigmund

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

#1182 Post by zigbert »

I'll try to upload a new version after the weekend. - some more lines to look at.


Sigmund

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

pmusic_CD at the first time looses pmusic GUI

#1183 Post by shinobar »

@zigbert
Thank you for understanding.
The background is we are developing lupu-528JP, japanese edition. I didn't include the work directory /root/.pmusic. A tester tried to play an audio CD for the first time, and found these issue. It does not occur if the work directory is already prepared. So it is not fatal but potential problem.

OK, next problem is running pmusic_CD without the work directory /root/.pmusic, looses the pmusic GUI.
Assume all the fix for the FIRSTRUN and RUN_CD issue is applied.

Code: Select all

# rm -fr ~/.pmusic
# pmusic -j -p '.CD' -c
Plays CD... OK.
Quit the pmusic.
Re-run pmusic.

Code: Select all

# pmusic
#
This time, GUI does not appear. pmusic runs in hidden.
Click the pmusc icon in the tray, but never shows the GUI windows. :(
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

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

Re: pmusic_CD at the first time looses pmusic GUI

#1184 Post by zigbert »

shinobar wrote:OK, next problem is running pmusic_CD without the work directory /root/.pmusic, looses the pmusic GUI.
Assume all the fix for the FIRSTRUN and RUN_CD issue is applied.

Code: Select all

# rm -fr ~/.pmusic
# pmusic -j -p '.CD' -c
Plays CD... OK.
Quit the pmusic.
Re-run pmusic.

Code: Select all

# pmusic
#
This time, GUI does not appear. pmusic runs in hidden.
Click the pmusc icon in the tray, but never shows the GUI windows. :(
Got it, will fix.


Thank you
Sigmund

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

#1185 Post by zigbert »

Version 2.6.2
See main post

Changelog
- Imrove detection of Audio-CD (thanks to shinobar)
- Support other users than root in pinstall script. (thanks to BarryK)
- Clear Pmusic_xml file (gtkdialog-code) if gtkdialog fails to show gui. (thanks to shinobar)
- Remove old NLS standard.
- Move native language file to /usr/local/pmusic (thanks to shinobar)
- Bugfix: Add Pmusic to Rox globicons and 'OpenWith' menu during install. (thanks to BarryK)
- Bugfix: using -c switch at first run (thanks to shinobar)
- Bugfix: Pmusic_CD saves playlist content for next run of ordinary Pmusic. (thanks to shinobar)
- Bugfix: Pmusic_CD (at first run only) corrupts xml-file for ordinary Pmusic. (thanks to shinobar)
- Bugfix: Theme GTK: Highlightning of playlist didn't follow the global gtk-theme.

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

Version 2.6.2

#1186 Post by shinobar »

zigbert wrote:Version 2.6.2
Tested on the lupu-528JP(developping). Works as expected :D
Thanks for the all fix.

Installed Version 2.6.2.
Removed /root/.pmusic to refresh.
Insert an audio CD.
Click the CD icon on the desktop.
Launches the defaultcdplayer, that is pmusic_CD.
After a while, CD plays...OK.
Quit pmusic.
Re-run the pmusic from the menu.
Shows the main windows with the Hoovers in the playlist on the right side, CD titles on the left.
Play button plays the Hoovers... OK.
The window can show and hide by the tray icon...OK.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

ffmpeg requirement

#1187 Post by shinobar »

A question:
Pmusic 2.6.2 says Required ffmpeg (>= 0.8 )

The lupu-528JP(under development) has ffmpeg 0.7.5 of the Libav version.
In what function does the pmusic 2.6.2 require ffmpeg 0.8?
(pmusic -h does not complain the ffmpeg 0.7.5.)

# ffmpeg
ffmpeg version 0.7.5, Copyright (c) 2000-2011 the Libav developers
built on May 21 2012 16:13:04 with gcc 4.4.3
configuration: --prefix=/usr --cpu=i486 --enable-shared --enable-gpl --enable-nonfree --enable-x11grab --enable-network --enable-small --enable-runtime-cpudetect --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libdc1394 --enable-libfaac --enable-libfreetype --enable-libmp3lame --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-zlib --enable-postproc --disable-debug --enable-bzlib --enable-version3 --enable-libtheora --enable-swscale
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

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

#1188 Post by zigbert »

shinobar
Now I understand why you had to set SS=0....
ffmpeg 0.8 changed the format of its terminal output. Pmusic uses this for length calculation and so on. I would expect progress-slider to fail, statusbar give wrong info, and maybe the next song in playlist won't autostart. I really don't know what would happen....


Sigmund

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

#1189 Post by zigbert »

.... Trackinfo will also partly trouble.

And maybe most important, - support of radio-streams are heavily improved.
BUT, if streamripper is installed, it will be the preferred stream-engine.


Sigmund

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

ffmpeg 0.8

#1190 Post by shinobar »

zigbert wrote:ffmpeg 0.8 changed the format of its terminal output.
Hum... it is another big issue. :roll:
The ffmpeg 0.8.x has 2 development lines, ffmpeg and libav(avconv).
Most of Puppy 5.x follows ffmpeg, but the presice (debian and ubuntu too) takes libav.
I am not sure their compatibility and have some doubt in their performance. We japanese editions stay at libav 0.7.x...
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

Post Reply