pMusic 6.0.0

Audio editors, music players, video players, burning software, etc.
Message
Author
User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

Asunder playlist bug

#526 Post by don570 »

I have spent some time with Asunder. I created a playlist with Asunder.
The playlist was named Unknown Artist - Unknown Album.wav.m3u
because I don't have internet access.
Rox Filer's 'Run' feature resulted in doubling of tracks. There should only
have been only two tracks.
[urlImage[/url]

...but using Pmusic built-in file manager opened the playlist correctly.

[urlImage[/url]


I wonder what it is about that name that would do that.... the spaces or the hyphen??

____________________________________________________

My image server changed it's interface drastically, but it seems to
be working now. It's name is upmyphoto.com

wow
Posts: 1052
Joined: Fri 30 Jun 2006, 00:18
Location: Peru

#527 Post by wow »

Bug: (pmusic 1.1.1)
Image
func_lyrics wrote:wget -S --spider -T 1 puppylinux.com 2> $WORKDIR/tmp
if [ ! "`grep 'connected' $WORKDIR/tmp`" ]; then
func_lyrics 11,29 wrote:grep 'connected'
Built-in lyrics fetcher won't work if you have wget in a language different than english ('connected' = 'conectado' in spanish).

Workaround:
Image
Use the default locale without translations. func_lyric, line 28:

Code: Select all

LANG=C wget -S --spider -T 1 puppylinux.com 2> $WORKDIR/tmp
[url=http://www.puppylinux.com][img]http://i.imgur.com/M4OyHe1.gif[/img][/url]

mistfire
Posts: 1411
Joined: Wed 05 Nov 2008, 00:35
Location: PH

Drag ang drop support

#528 Post by mistfire »

Does the latest pmusic has a drag and drop support for loading the music files?

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

reply

#529 Post by don570 »

There's no drag and drop support at all due to simple code that Zigbert uses
for his projects. That's why you need to learn about 'Bookmarks' in Pmusic
and the 'Set Run' feature in Rox Filer to make the program usable.
Read those sections of the FAQ.
Last edited by don570 on Thu 12 Aug 2010, 17:18, edited 1 time in total.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

characters entered in Bash shell

#530 Post by don570 »

I read the following about Bash at
http://tldp.org/HOWTO/Unicode-HOWTO-4.html
4.1 Shells

bash

By default, GNU bash assumes that every character is one byte long and one column wide. A patch for bash 2.04, by Marcin 'Qrczak' Kowalczyk and Ricardas Cepas, teaches bash about multibyte characters in UTF-8 encoding. bash-2.04-diff

Double-width characters, combining characters and bidi are not supported by this patch. It seems a complete redesign of the readline redisplay engine is needed.

breslavian
Posts: 16
Joined: Tue 03 Aug 2010, 03:16

error

#531 Post by breslavian »

whenever I try to play some music files, I get a

/usr/local/pmusic/func: line 506: id3info: command not found

on rxvt and then it tries to play the files. On it's gui, it says bufferring ... please wait. on rxvt its says

grep: 1: No such file or directory
grep: 1: No such file or directory
grep: 1: No such file or directory
grep: 1: No such file or directory
grep: 1: No such file or directory

and so on and on and on.

I've tried to search for a similar problem but its on a quirky

http://www.murga-linux.com/puppy/viewto ... 4cd57f0c5a
tiangeng wrote:# pmusic
/usr/local/pmusic/func: line 470: id3info: command not found
/usr/local/pmusic/func_player: line 117: /root/.pmusic/tmp/exec: cannot execute binary file
and instead of line 506, it's on line 470.

the puppy i'm using is Lupu 5.1. And yes, I've installed Gnome mplayer and can even play music on Gxine as workaround for this problem. What I'm after right now, is on how to solve this kind(s) of problem(s). For academic purposes, let's just say. ::]

Anyone's help is highly appreciated.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

reply

#532 Post by don570 »

I got a mysterious buffering message and in my case it was a dumb error by
me. I had forgotten to mount my hard drive!
...but in your case it looks like ffmpeg which is the app in the background
that really is the code that runs Pmusic, is not recognizing your file.
All I can suggest is look up the manual fo ffmpeg online http://ffmpeg.org/documentation.html
but it's one of the most complex apps to understand that I've ever seen!

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

#533 Post by zigbert »

Sorry for being absence. Must deal with all your feedback tomorrow.


Sigmund

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

Re: FAQ addition

#534 Post by zigbert »

don570 wrote:Here is yet another change to faq.

Code: Select all

Q:   Is Pmusic integrated with  the program Asunder?
A:  No, but here are some tips to use Asunder better with Pmusic. First, look under Asunder's Preferences to find the "Destination Folder'.   Now launch Pmusic and make Asunder's Destination Folder a Bookmark.
Here's another tip.  Asunder has a feature  'Create M3U playlist'  available in it's preferences.  Make sure this is selected.
Also make sure that Rox Filer has it's 'Set Run Action' to open the .m3u  file extension with the command 'pmusic -a "$@"'.
This is done with a right click on the file when using Rox Filer.  Better still, use the file browser built into Pmusic to open this playlist created by Asunder.
Added!


Thanks
Sigmund

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

Re: Asunder playlist bug

#535 Post by zigbert »

don570 wrote:I have spent some time with Asunder. I created a playlist with Asunder.
The playlist was named Unknown Artist - Unknown Album.wav.m3u
because I don't have internet access.
Rox Filer's 'Run' feature resulted in doubling of tracks. There should only
have been only two tracks.
[urlImage[/url]

...but using Pmusic built-in file manager opened the playlist correctly.

[urlImage[/url]


I wonder what it is about that name that would do that.... the spaces or the hyphen??

____________________________________________________

My image server changed it's interface drastically, but it seems to
be working now. It's name is upmyphoto.com
Be sure that you have quoted the expression in rox run-action: pmusic "$1"

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

#536 Post by zigbert »

wow wrote:Use the default locale without translations. func_lyric, line 28:

Code: Select all

LANG=C wget -S --spider -T 1 puppylinux.com 2> $WORKDIR/tmp
Fixed for next release

Thanks a lot
Sigmund

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

Re: characters entered in Bash shell

#537 Post by zigbert »

don570 wrote:I read the following about Bash at
http://tldp.org/HOWTO/Unicode-HOWTO-4.html
4.1 Shells

bash

By default, GNU bash assumes that every character is one byte long and one column wide. A patch for bash 2.04, by Marcin 'Qrczak' Kowalczyk and Ricardas Cepas, teaches bash about multibyte characters in UTF-8 encoding. bash-2.04-diff

Double-width characters, combining characters and bidi are not supported by this patch. It seems a complete redesign of the readline redisplay engine is needed.
You can always 'fool' bash to work with 'any' char by adding a \ in front of the char. Our problem is that the copy/rename function works inside the gui-tags, and those (gtkdialog) are not as easy to fool. But we'll get there.......i think :D


Sigmund

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

Re: error

#538 Post by zigbert »

breslavian wrote:whenever I try to play some music files, I get a

/usr/local/pmusic/func: line 506: id3info: command not found
I see that Puppy 5.1 is missing id3info. I will inform the developers. I don't know if it is done by purpose or is simply forgotten....
breslavian wrote:
tiangeng wrote:# pmusic
/usr/local/pmusic/func: line 470: id3info: command not found
/usr/local/pmusic/func_player: line 117: /root/.pmusic/tmp/exec: cannot execute binary file
and instead of line 506, it's on line 470.
I wonder, how does your '/root/.pmusic/tmp/exec' look. What is its content, and is it set to executable?


Sigmund

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

Re: reply

#539 Post by zigbert »

but it's one of the most complex apps to understand that I've ever seen!
:D

That is why we need guis :D


Sigmund

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

Re: error

#540 Post by 01micko »

zigbert wrote:
breslavian wrote:whenever I try to play some music files, I get a

/usr/local/pmusic/func: line 506: id3info: command not found
I see that Puppy 5.1 is missing id3info. I will inform the developers. I don't know if it is done by purpose or is simply forgotten....
Hmmm.....

As you know we are building from Ubuntu binaries... the id3 libraries made it but the execs did not.. perhaps in Ubuntu they are separate packages (as many in the Ubuntu structure are) and woof just thought to look for 1 package for id3.

Duly noted and will be fixed.

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:

#541 Post by zigbert »

Thank you Mick

wow
Posts: 1052
Joined: Fri 30 Jun 2006, 00:18
Location: Peru

#542 Post by wow »

I added another server to the lyrics script, this one has some non-english lyrics (mostly in spanish).
http://lyrc.com.ar/

Code: Select all

	#lyrc.com.ar
	if [ ! "$LYRICS" ]; then
		echo 90 > $WORKDIR/splash
		TMP_ARTIST="`echo $LYRICS_SONG | tr '_' ' ' | sed -e 's/ - /_/g' | cut -d '_' -f 1 | tr ' ' _ | tr '/' '_'`"
		TMP_SONG="`echo $LYRICS_SONG | tr '_' ' ' | sed -e 's/ - /_/g' | cut -d '_' -f 2 | tr ' ' _ | tr '/' '_'`"
		wget --tries=1 -O $WORKDIR/lyrics http://lyrc.com.ar/lyric/for/$TMP_SONG/by/$TMP_ARTIST
		LYRICS="`cat $WORKDIR/lyrics | grep -A 200 -m 1 'viewvideomusic.com' | grep -B 200 -m 1 '</font>' | grep -v videomusic | grep -vi '/font'  | sed -e "s/<[^>]*>//g"`"
		echo "$LYRICS" > $WORKDIR/lyrics.latin1
		#encoding
		iconv --from-code=ISO-8859-1 --to-code=UTF-8 $WORKDIR/lyrics.latin1 > $WORKDIR/lyrics
	fi
Image

I did use iconv to encode the file, to fix this:

Code: Select all

(gtkdialog3:29322): Gtk-CRITICAL **: gtk_text_buffer_emit_insert: assertion `g_utf8_validate (text, len, NULL)' failed
Attachments
func_lyrics.tar.bz2
patched file
(1.33 KiB) Downloaded 259 times
[url=http://www.puppylinux.com][img]http://i.imgur.com/M4OyHe1.gif[/img][/url]

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

#543 Post by zigbert »

wow
This is wonderful stuff. I was not aware of iconv..... it might be helpful for other tasks as well. Will this code fail if terminal output changes to UTF-8 instead of ISO-8859-1?


Thanks a lot
Sigmund

wow
Posts: 1052
Joined: Fri 30 Jun 2006, 00:18
Location: Peru

#544 Post by wow »

I have no idea. I tested this with puppy5 and my puplet. This is what happened without using iconv in puppy5:

Image

So, that's why I decided to use iconv. I have not made futher tests at all.
[url=http://www.puppylinux.com][img]http://i.imgur.com/M4OyHe1.gif[/img][/url]

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

#545 Post by zigbert »

Version 1.2.0
See main post

Changelog
- New 'Radio' module
--> Including radio-stations organized in genre and country.
--> Generate updated radio-station-database from www. (thanks to 01micko)
- Overall improved bookmarking
--> Bookmark without using manager window
--> Bookmark files (also with timestamp) and search-strings (thanks to limmor)
--> Improvements of bookmark-manager
--> Add $HOME to bookmarks as default
--> New button in music-source window to bookmark location
- New parameter: '-t' --> set start time offset
- Options: convert underscores and %20 to blank. (thanks to don570)
- New lyrics filter: http://lyrc.com.ar (thanks to wow)
- Remember last search-text after adding song
- Click enter in search field adds song if there is only one song in add-list
- Clear history of RECENT played. See preferences. (thanks to don570)
- Download faq if not in local filesystem
- Bugfix: Remove bookmarks that contains special chars
- Bugfix: Rename bookmark doesn't delete the old
- Bugfix: Add several similar bookmarks
- Bugfix: Store playlist to history when click clear-list-button
- Bugfix: Rename '2barks.wav' to '2barks&.wav' I got '2barks2barks' in playlist (thanks to don570)
- Bugfix: Add random and then move added file in playlist
- NLS: Added $LOC136, 222, 248, 263, 265, 266, 269, 317, 468, 469, 490, 491
- NLS: Changed $LOC276

Post Reply