The Musher0 Playlist Player, version 3
The Musher0 Playlist Player, version 3
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!
~~~~~~~~~~~~~~~~~~
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!
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.
different approach using "soX". Please see here
Edit -- May 29, 2016, The latest version, 3c, is there!
~~~~~~~~~~~~~~~~~~
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!
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.
- Attachments
-
- The_Musher0_Playlist_Player-3.pet
- The Monaco font is included.
- (46.52 KiB) Downloaded 276 times
-
- mplayer-cluster.jpg
- What it looks like.
- (59.4 KiB) Downloaded 505 times
Last edited by musher0 on Thu 08 Jun 2017, 20:21, edited 5 times in total.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
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.
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.
- Attachments
-
- mplayer-playlist3.sh(1).zip
- (2.57 KiB) Downloaded 235 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
Screenshot of the Musher0 Playlist Player. version 3, running on jwm.
- Attachments
-
- VeryBest.jpg
- (60.89 KiB) Downloaded 414 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
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.
Pet downloaded to my linux music repository.
Hey, man, keep your prejudices to yourself? Have you even tried this script?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.
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 ! / / Speaking of the devil... please see attached!
BFN / À-
- Attachments
-
- The_Musher0_Playlist_Player-3b.pet
- Latest version, fresh from the oven! / C'est tout frais sorti du four !
- (14 KiB) Downloaded 249 times
-
- Les-mots-de -Marnay.jpg
- (44.99 KiB) Downloaded 382 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
-
- Posts: 1543
- Joined: Mon 22 Feb 2016, 19:43
This comment reminded of a song I remember on the airplane on our class trip to Francemusher0 wrote:Parlant du loup... il est joint ! / / Speaking of the devil... please see attached!
https://www.youtube.com/watch?v=IhDbgmmTki0
That chorus was stuck in my head for weeks after !
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!
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
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
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
____________________________________________
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
_____________________________________________
You can remove a final slash on a folder path ...
_____________________________________________
dirname command can be useful
____________________________
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: Select all
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: Select all
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: Select all
A="/root/my stuff/audio/"; echo "$A" | sed "s/\/$//" #remove final slash
dirname command can be useful
Code: Select all
root:~# dirname "/root/my stuff/audiofile.mp3"
/root/my stuff
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.
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
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
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.
_______________________________________
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.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.
_______________________________________
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!
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
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
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.
_____________________________________________
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: Select all
# /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
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.
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.
- Attachments
-
- forrest_guitar-wallpaper-690x234b.jpg
- Sorry I forgot to include this picture the first time around.
- (36.76 KiB) Downloaded 230 times
-
- petget-dir_2016-06-02.jpg
- Do these dates and sizes jive with the ones in your version of petget?
- (107.97 KiB) Downloaded 230 times
-
- petget-script_2016-06-02.jpg
- (48.02 KiB) Downloaded 225 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
Hello again, don570.
To reply to your remark about PMusic here :
I've exiled PMusic from this Slim_6 Puppy because I think PMusic is generally a
slowpoke and a complication. Here are five reasons I hate it:
-- It takes forever to set itself up.
-- Transfering a piece of music from the left panel to the right panel to get it played
is always a "keep-your-fingers-crossed" affair.
-- You don't know if you can get the plugins to work or not -- let alone download
their last version properly.
-- In the end you don't know what button does what. They don't do what the icon
says they should be doing.
-- The help panel works when it feels like it.
My experience with PMusic has always been horrible. Why do you think I'm giving
myself the trouble of creating this music script?
I've explained differently here why I'm developing this mplayer script. (In French.)
BFN.
To reply to your remark about PMusic here :
I've exiled PMusic from this Slim_6 Puppy because I think PMusic is generally a
slowpoke and a complication. Here are five reasons I hate it:
-- It takes forever to set itself up.
-- Transfering a piece of music from the left panel to the right panel to get it played
is always a "keep-your-fingers-crossed" affair.
-- You don't know if you can get the plugins to work or not -- let alone download
their last version properly.
-- In the end you don't know what button does what. They don't do what the icon
says they should be doing.
-- The help panel works when it feels like it.
My experience with PMusic has always been horrible. Why do you think I'm giving
myself the trouble of creating this music script?
I've explained differently here why I'm developing this mplayer script. (In French.)
BFN.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
@don570
Can you check if you have the xz compression in your pup/petget? Maybe that's the
problem. The pet file I provided was compressed with the default xz option. Older
petgets do not know what to do with xz-compressed pet file.
Just a thought.
Can you check if you have the xz compression in your pup/petget? Maybe that's the
problem. The pet file I provided was compressed with the default xz option. Older
petgets do not know what to do with xz-compressed pet file.
Just a thought.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)