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 Sun 22 Oct 2017, 09:56
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Multimedia
The Musher0 Playlist Player, version 3
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [30 Posts]   Goto page: 1, 2 Next
Author Message
musher0


Joined: 04 Jan 2009
Posts: 10981
Location: Gatineau (Qc), Canada

PostPosted: Sun 22 May 2016, 18:35    Post subject:  The Musher0 Playlist Player, version 3
Subject description: for audio files
 

Edit -- June 8, 2017. This is now "abandonware". I've continued it with a
different approach using "soX". Please see here

Edit -- May 29, 2016, The latest version, 3c, is there! Wink
~~~~~~~~~~~~~~~~~~
Hello all.

In the same spirit as yesterday's Musher0 dvd-player, here is
The Musher0 Playlist Player, version 3.

I composed this script because I got fed up with mplayer interfaces not responding
properly and not making available enough info to control the media that was playing.
Not that a lot is needed at the user end, but something is needed, by golly! Smile

You need, as dependencies:
qiv, mplayer (obvious), some incarnation of awk and the real less.

qiv is here: https://spiegl.de/qiv. I have a pet archive ready somewhere, just ask.

You can replace qiv with the Puppy defaultimageviewer, but it doesn't look as nice,
IMO. Just switch the comment signs between those two lines in the script if you
want or need to use the defaultimageviewer instead of qiv.

The four modules that make up this script are iconed in your taskbar with icons from
the brand new "Puppy Standard" icon set. (Thanks to 01micko et al.) The four
modules are: the playlist, the help panel, the cover art (if any) and mplayer.

A screen capture is attached. As you can see, the script creates an informative
cluster of somewhat overlapping windows below/around the mplayer. I reduced the
output messages of mplayer, so the listener can focus on listening and not get
distracted by the audio and technical aspects while listening to his/her music.

I decided on the cluster design because it makes it easier for the user to go from
one window to the next, especially if your window manager is set to "window focus
follows cursor".

When you install the pet, a link will be created so you can start the script from
a right-click on a folder. I thought that a *.desktop file was not necessary since
the "launch from right-click over a folder" is the desired mode of operation.

If there are no music files in the foider, the program will inform you and exit. At
present, I have set the script up to detect ogg, mp3 and flac files, but it would be a
simple matter to add other types of audio files for detection. Again, just ask.

It also defaults to English if your general system LANGuage variable is NOT set to
some variant of French. If you wish to contribute a translation in another language,
please get in touch, it will be much appreciated.

The script "cleans up after itself" when the music has finished playing. You don't
have to do it yourself. Meaning: the various windows/terminals close by them-
selves when there are no more songs or music pieces to play in the folder. If you
want to close all windows opened by the script before the music ends, bring the
mplayer terminal into focus. and hit "q" or ESCape: they'll all close.

I guess that's it. Enjoy! Or criticize! (But please tell me: thanks in advance.)

BFN.

~~~~~~~~~~~~~~~
Edit: code removed, see zip file.
The_Musher0_Playlist_Player-3.pet
Description  The Monaco font is included.
pet

 Download 
Filename  The_Musher0_Playlist_Player-3.pet 
Filesize  46.52 KB 
Downloaded  99 Time(s) 
mplayer-cluster.jpg
 Description   What it looks like.
 Filesize   59.4 KB
 Viewed   444 Time(s)

mplayer-cluster.jpg


_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)

Last edited by musher0 on Thu 08 Jun 2017, 16:21; edited 5 times in total
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 10981
Location: Gatineau (Qc), Canada

PostPosted: Sun 22 May 2016, 18:35    Post subject:  

Hello all.

Lots of improvements in this next incarnation:

-- fading when not in focus
-- now recognizes flac ogg mp3 wav wma
-- only the name of the piece in the playlist (type of file removed)

Bug still to squish:
spaces in music directories (anybody knows a good work-around?)

BFN.
mplayer-playlist3.sh(1).zip
Description 
zip

 Download 
Filename  mplayer-playlist3.sh(1).zip 
Filesize  2.57 KB 
Downloaded  93 Time(s) 

_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 10981
Location: Gatineau (Qc), Canada

PostPosted: Wed 25 May 2016, 12:50    Post subject:  

Screenshot of the Musher0 Playlist Player. version 3, running on jwm.
VeryBest.jpg
 Description   
 Filesize   60.89 KB
 Viewed   348 Time(s)

VeryBest.jpg


_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
Pelo

Joined: 10 Sep 2011
Posts: 12591
Location: Mer méditerrannée (1 kms°)

PostPosted: Thu 26 May 2016, 21:34    Post subject: screenshots are nice  

screenshots are nice. But Musher0 provides us not so easy scripts for newbies, that ones will need at least one or two hours. Bookmarked.
Pet downloaded to my linux music repository.

_________________
Passenger Pelo ! don't ask him to repair the aircraft. Don't use him as a demining dog .... pleeease.
Back to top
View user's profile Send private message Yahoo Messenger 
musher0


Joined: 04 Jan 2009
Posts: 10981
Location: Gatineau (Qc), Canada

PostPosted: Thu 26 May 2016, 22:05    Post subject:  

Pelo wrote:
screenshots are nice. But Musher0 provides us not so easy scripts for newbies, that ones will need at least one or two hours. Bookmarked.
Pet downloaded to my linux music repository.
Hey, man, keep your prejudices to yourself? Have you even tried this script?
Tout de même... Où tu l'as flanqué, ton esprit cartésien ?

This one is really easy and simple. Once installed, you right click on a music folder,
and the music in it plays! That's it!

Parlant du loup... il est joint ! / Smile / Speaking of the devil... please see attached!

BFN / À-
The_Musher0_Playlist_Player-3b.pet
Description  Latest version, fresh from the oven! / C'est tout frais sorti du four !
pet

 Download 
Filename  The_Musher0_Playlist_Player-3b.pet 
Filesize  14 KB 
Downloaded  89 Time(s) 
Les-mots-de -Marnay.jpg
 Description   
 Filesize   44.99 KB
 Viewed   329 Time(s)

Les-mots-de -Marnay.jpg


_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
Sailor Enceladus

Joined: 22 Feb 2016
Posts: 1253

PostPosted: Thu 26 May 2016, 23:02    Post subject:  

musher0 wrote:
Parlant du loup... il est joint ! / Smile / Speaking of the devil... please see attached!

This comment reminded of a song I remember on the airplane on our class trip to France

https://www.youtube.com/watch?v=IhDbgmmTki0

That chorus was stuck in my head for weeks after ! Laughing
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 10981
Location: Gatineau (Qc), Canada

PostPosted: Thu 26 May 2016, 23:36    Post subject:  

Yeah, in that particular expression, you have to translate "wolf" by "devil" !!!
(Not that it means anything!)

BFN.

_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 10981
Location: Gatineau (Qc), Canada

PostPosted: Sun 29 May 2016, 22:44    Post subject:  

Hello all.

I uploaded a new version this afternoon. Please see first post for its URL.

Enjoy!

_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 10981
Location: Gatineau (Qc), Canada

PostPosted: Tue 31 May 2016, 21:22    Post subject:  

Hello all.

I've put my universal Playlist Player project on the back-burner for now.

It's superseded for the time being by a new script that reads ogg file
directories only. It's called boU-Ogg-0.1 and can be found here.

Enjoy!

_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 4718
Location: Ontario

PostPosted: Wed 01 Jun 2016, 14:02    Post subject:  

How are you making your pet packages? ... because I get an error message
when I click on a pet.

I have to open it with Uextract utility to get the files.

________________________________________

Something that I have been looking into is a way to control a music player
from a remote PC by just using SSH.

The script wouldn't use windows . pmusic has a background mode
pmusic -b musicfile.mp3

A way of checking if a script has the background option

Code:
if [ "$1" = -b ] ; then
xmessage  launching without windows
fi


____________________________________________

Using yaf-splash on older puppies causes a lot of headaches.
In recent puppies Barry uses a link from gtkdialog-splash
which has extras features.

# yaf-splash --help

gtkdialog-splash

an easy replacement for yaf-splash in Puppy (NOT Puppy <=4.x)
mave 30.05.2010
no warranty
Thanks for Puppy!

I use the following to be as compatible as possible
Code:
root:~# yaf-splash -timeout 0 -margin 20 -outline 0 -bw 5 -placement top -bg orange -fg black -text "$(gettext 'Please wait for completion...')"  & PID=$!


_____________________________________________


You can remove a final slash on a folder path ...

Code:
A="/root/my stuff/audio/"; echo "$A" | sed "s/\/$//" #remove final slash


_____________________________________________

dirname command can be useful

Code:
root:~# dirname "/root/my stuff/audiofile.mp3"
/root/my stuff


____________________________
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 10981
Location: Gatineau (Qc), Canada

PostPosted: Wed 01 Jun 2016, 16:10    Post subject:  

Hi don570.

Thanks for taking the time to review my script. Feedbacks such as yours are
always valuable.

It's strange that you would have a problem with my pets. I type the usual
< dir2pet DirectorY > and I follow BK's prompts. The result should be "default",
run-of-the-mill, pet archives. What Puppy were you on when you did the test?

I tend to use the xz compression option, though. Is your petget up-to-date?
Older petgets don't know what to do with xz compression.

I'm not clear about the rest of your message. Are you saying that you're having
a problem with yaf-splash ? Please develop a little.

I'm not a great fan of either the new or the old yaf-splash. If push comes to
shove, I may use an old trick I know to convey messages to the user, simply with
urxvt and less.

Thanks for the reminder about the < dirname > utility. It can come in handy.
I use < awk -F"/" '{ print $NF }' > a little too much, you think?

Again, thanks. BFN.

_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 4718
Location: Ontario

PostPosted: Wed 01 Jun 2016, 16:48    Post subject:  

I've been using Barry's 64 bit Xerus distro from a USB card adaptor.
It doesn't have mplayer installed so I should switch over to slacko.
It's rather odd that it won't install a pet package. I'll try again and report.

_______________________________________

I mentioned yaf-splash because if the options aren't compatible, then
older versions of Puppy linux will just ignore the line of code and
continue on with the rest of program.

Try running your program on Precise puppy for instance.

_______________________________________
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 10981
Location: Gatineau (Qc), Canada

PostPosted: Wed 01 Jun 2016, 22:09    Post subject:  

don570 wrote:
I've been using Barry's 64 bit Xerus distro from a USB card adaptor.
It doesn't have mplayer installed so I should switch over to slacko.
It's rather odd that it won't install a pet package. I'll try again and report.
_______________________________________

I mentioned yaf-splash because if the options aren't compatible, then
older versions of Puppy linux will just ignore the line of code and
continue on with the rest of program.

Try running your program on Precise puppy for instance.
_______________________________________
Hi don570.

Sorry, "Barry's 64 bit Xerus distro" is not a Puppy. So your criticism doesn't count.

BK created Puppy, but he also removed himself from it. His new Quirky product is
getting farther and farther from Puppy as years go by. That's ok, but let's compare
oranges with oranges, shall we?

For the time being, Puppy is still the standard and Puppy is more popular than
Quirky. So Quirky should be adapting to Puppy, not the other way around. Please
re-test with a "Puppy petget" and a "Puppy yaf-splash" on a real Puppy. Slacko is
a real Puppy.

I'll do more tests of this script on the whole bunch of Puppies I have installed on
my various computers, but when it's more or less the final version, not now. I'm still
developing it.

As I said, if push comes to shove, I'll use the sure-fire urxvt+less trick I know to
convey messages to the user. For now, the new yaf-splash is doing an ok job of it,
even if I don't necessarily like it.

Besides, I've been developing this on a Slim_6, which is a derivative of the latest
Slacko-6.3 32 bit. I don't think any I could use a "Puppier" Puppy than this! Smile

Do you have any criticism on the "substance" of the script? Up until now, you've
concentrated on two "cosmetic" aspects. Thanks in advance.

BFN.

_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 4718
Location: Ontario

PostPosted: Thu 02 Jun 2016, 18:05    Post subject:  

It's important that pet packages install even if they don't run
in Barry K's distros

I've been trying the pet package with some other distros

fluppy ,racy, raring. gave this warning window



Tahrpup 5.8.3 and a version of slacko did open it, but Barry K didn't develop it.

______________________________________

I think that the flaw could be the pet2tgz script.

It does create an archive but there's nothing inside.

I'll report this to uextract developer to see if he knows the problem.
An old version of uextract will open the pet package when using
fluppy ,racy, raring.
Also I get this error when I use the terminal.

Code:

# /root/my-applications/bin/mplayer-playlist3c.sh /root/puppy-reference/audio/NewDir


urxvt: rxvt_img::new_from_file: Failed to open file '/root/my-documents/My-images/partition/forrest_guitar-wallpaper-690x234b.jpg': No such file or directory


_____________________________________________
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 10981
Location: Gatineau (Qc), Canada

PostPosted: Thu 02 Jun 2016, 20:19    Post subject:  

Hi don 570.

Thanks for the various feedbacks. Have you read my post here?
I've stopped development of this script for a little while.

I hate to be side-tracked like this with this petget bug. What version of petget do
you have?

The last entry about an edit in my version -- signed by BK, incidentally --
is dated 12-10-11.

Two screen caps attached. They're self-explanatory.

To be thorough, we should get someone else to confirm the presence of this bug.
I'll ask if maybe augras on the French side has a minute. He's usually pretty thorough.

If it's only my pet archive, it's not so bad, but if there's something fishy in the
PPM, or in the Woof-CE repo it came from, that can be quite a can of worms.
~~~~~~~~~~~~~
Also attached is the guitar background picture for urxvt. Sorry for having forgotten
to include it in the initial package.

BFN.
forrest_guitar-wallpaper-690x234b.jpg
 Description   Sorry I forgot to include this picture the first time around.
 Filesize   36.76 KB
 Viewed   168 Time(s)

forrest_guitar-wallpaper-690x234b.jpg

petget-dir_2016-06-02.jpg
 Description   Do these dates and sizes jive with the ones in your version of petget?
 Filesize   107.97 KB
 Viewed   164 Time(s)

petget-dir_2016-06-02.jpg

petget-script_2016-06-02.jpg
 Description   
 Filesize   48.02 KB
 Viewed   166 Time(s)

petget-script_2016-06-02.jpg


_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [30 Posts]   Goto page: 1, 2 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.0813s ][ Queries: 14 (0.0063s) ][ GZIP on ]