Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 22 Dec 2014, 18:57
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Multimedia
pMusic 4.4.6
Post new topic   Reply to topic View previous topic :: View next topic
Page 79 of 125 [1866 Posts]   Goto page: Previous 1, 2, 3, ..., 77, 78, 79, 80, 81, ..., 123, 124, 125 Next
Author Message
zigbert


Joined: 29 Mar 2006
Posts: 5815
Location: Valåmoen, Norway

PostPosted: Thu 31 May 2012, 14:17    Post subject: Re: message file  

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

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
zigbert


Joined: 29 Mar 2006
Posts: 5815
Location: Valåmoen, Norway

PostPosted: Thu 31 May 2012, 14:18    Post subject: Re: pmusic_CD fails at the first time  

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....
_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
OscarTalks

Joined: 05 Feb 2012
Posts: 939
Location: London, England

PostPosted: Thu 31 May 2012, 19:12    Post subject:  

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?

_________________
Oscar in England


Last edited by OscarTalks on Thu 31 May 2012, 21:22; edited 1 time in total
Back to top
View user's profile Send private message 
shinobar


Joined: 28 May 2009
Posts: 2631
Location: Japan

PostPosted: Thu 31 May 2012, 20:43    Post subject: Re: pmusic_CD fails at the first time  

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:
# 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:
/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:
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.

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send private message Visit poster's website 
zigbert


Joined: 29 Mar 2006
Posts: 5815
Location: Valåmoen, Norway

PostPosted: Fri 01 Jun 2012, 12:40    Post subject:  

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

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
zigbert


Joined: 29 Mar 2006
Posts: 5815
Location: Valåmoen, Norway

PostPosted: Fri 01 Jun 2012, 12:49    Post subject:  

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:
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

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
Dougal


Joined: 19 Oct 2005
Posts: 2505
Location: Hell more grotesque than any medieval woodcut

PostPosted: Fri 01 Jun 2012, 15:53    Post subject:  

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:
 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:
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:
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
Back to top
View user's profile Send private message 
shinobar


Joined: 28 May 2009
Posts: 2631
Location: Japan

PostPosted: Fri 01 Jun 2012, 22:28    Post subject: pmusic -c fails at the first time  

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:
# 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:
# 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.

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html

Last edited by shinobar on Sat 02 Jun 2012, 00:00; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
shinobar


Joined: 28 May 2009
Posts: 2631
Location: Japan

PostPosted: Fri 01 Jun 2012, 23:32    Post subject: Who kills cdda2wav?  

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 &

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send private message Visit poster's website 
shinobar


Joined: 28 May 2009
Posts: 2631
Location: Japan

PostPosted: Fri 01 Jun 2012, 23:52    Post subject: save cdda2wav  

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'.

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send private message Visit poster's website 
zigbert


Joined: 29 Mar 2006
Posts: 5815
Location: Valåmoen, Norway

PostPosted: Sat 02 Jun 2012, 02:31    Post subject:  

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:
#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

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
zigbert


Joined: 29 Mar 2006
Posts: 5815
Location: Valåmoen, Norway

PostPosted: Sat 02 Jun 2012, 02:38    Post subject:  

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


Sigmund

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
shinobar


Joined: 28 May 2009
Posts: 2631
Location: Japan

PostPosted: Sat 02 Jun 2012, 04:15    Post subject: pmusic_CD at the first time looses pmusic GUI  

@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:
# rm -fr ~/.pmusic
# pmusic -j -p '.CD' -c

Plays CD... OK.
Quit the pmusic.
Re-run pmusic.
Code:
# pmusic
#

This time, GUI does not appear. pmusic runs in hidden.
Click the pmusc icon in the tray, but never shows the GUI windows. Sad

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send private message Visit poster's website 
zigbert


Joined: 29 Mar 2006
Posts: 5815
Location: Valåmoen, Norway

PostPosted: Sat 02 Jun 2012, 04:20    Post subject: Re: pmusic_CD at the first time looses pmusic GUI  

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:
# rm -fr ~/.pmusic
# pmusic -j -p '.CD' -c

Plays CD... OK.
Quit the pmusic.
Re-run pmusic.
Code:
# pmusic
#

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


Thank you
Sigmund

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
zigbert


Joined: 29 Mar 2006
Posts: 5815
Location: Valåmoen, Norway

PostPosted: Sat 02 Jun 2012, 15:40    Post subject:  

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.

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 79 of 125 [1866 Posts]   Goto page: Previous 1, 2, 3, ..., 77, 78, 79, 80, 81, ..., 123, 124, 125 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Multimedia
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1385s ][ Queries: 12 (0.0217s) ][ GZIP on ]