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 Thu 17 Apr 2014, 11:26
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Multimedia
PeasyMP3 - a Minimal Media Player
Post new topic   Reply to topic View previous topic :: View next topic
Page 4 of 5 [64 Posts]   Goto page: Previous 1, 2, 3, 4, 5 Next
Author Message
PaulR

Joined: 04 May 2005
Posts: 241
Location: UK

PostPosted: Fri 20 Sep 2013, 14:17    Post subject:  

Right, I've just checked the eepc again with the latest (public) version of PeasyMP3 and it's now working perfectly!

I inadvertently rebooted the machine earlier, the first reboot for several days and this seems to have cured the problem. I've tried switching between streams and between streamed media and mp3's and everything is fine.

I have access to one other machine here (a T42 Thinkpad) but haven't tried it on that yet. I'll see what happens over the weekend with the eeepc - if the problem recurs I'll edit the script and/or try the patched version and report back.

Paul
Back to top
View user's profile Send private message 
RSH


Joined: 05 Sep 2011
Posts: 2035
Location: Germany

PostPosted: Fri 04 Oct 2013, 15:59    Post subject:  

Hi.

This is the PEasy-Multimedia-Suite created from rcrsn51's different "Peasy"-Apps.

I did not change anything on the scripts.

Just packaged it, created Icons for the Applications and edited the .desktop files, to have a DE Menu Entry and the nice new Icons.

RSH
PEasyMM-Suite.pet
Description 
pet

 Download 
Filename  PEasyMM-Suite.pet 
Filesize  46.91 KB 
Downloaded  157 Time(s) 
image-2.jpg
 Description   
 Filesize   16.41 KB
 Viewed   511 Time(s)

image-2.jpg


_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 8551
Location: Stratford, Ontario

PostPosted: Fri 04 Oct 2013, 19:20    Post subject:  

Very nice! Thank you.
Back to top
View user's profile Send private message 
greengeek

Joined: 20 Jul 2010
Posts: 2083
Location: New Zealand

PostPosted: Sat 05 Oct 2013, 04:18    Post subject:  

RSH wrote:
This is the PEasy-Multimedia-Suite created from rcrsn51's different "Peasy"-Apps.


Is there a way to add Carousel to the right-click menu so that I can simply rightclick my "Music" folder and have Carousel play all of the contents in random order?

EDIT : ok - let me clarify that request... I can use the rightclick menu, then select "open with" and find carousel in the list - but in Pemasu's Upup 3.9.9.2 there is quite a lot listed in the "open with" menu so I have to scroll a lot. What I meant was - is it easy to add "Play in Carousel" to the right click menu without going the extra step into "open with"?? (hoping this description is a bit more clear...)

EDIT2 :I have previously worked out how to modify carousel so that it has the random flag "preset" (and also fewer selection windows) but just don't know how to get this modified script to "grab" the music directory that I right-click on.

The pic shows how I have modified the Carousel window, and the modified code is as follows:

EDIT: dont copy this code - it has a bug

Code:
#!/bin/sh
# rcrsn51 2013-06-15
# greengeek 2013-06-22
# - commented out RAND test. Attempt to force random mode always.
# - removed "random" checkbox
# - changed title bar to "Peasy Carousel Media Randomiser"
# - removed 5 of the original 6 "file entry" fields

export TEXTDOMAIN=peasymp3
export OUTPUT_CHARSET=UTF-8

export PIDFILE="/tmp/carousel.pid"     #for Stop
export PIDFILE2="/tmp/carousel.pid2"   #for Pause
export TMPFOLDER="/tmp/carouseltmp"   #for Random

DOPLAY () {

#if [ $RAND = "false" ]; then
#  while [ 1 ]; do
#    for DISC in "$A" "$B" "$C" "$D" "$E" "$F"; do
#      [ -z "$DISC" ] && continue
#      peasymp3 "$DISC" -b
#    done
#  done
#
#else
#
  while [ 1 ]; do
    rm -rf $TMPFOLDER
    mkdir $TMPFOLDER
    for DISC in "$A" "$B" "$C" "$D" "$E" "$F"; do
      [ -z "$DISC" ] && continue
      if [ -f "$DISC" ]; then
        ln -s "$DISC" $TMPFOLDER/$RANDOM"-""$(basename "$DISC")"
      else
        find -L "$DISC" -not -type d | while read TRACK; do
          ln -s "$TRACK" $TMPFOLDER/$RANDOM"-""$(basename "$TRACK")"
        done
      fi
    done
    peasymp3 $TMPFOLDER -b
  done
 
#fi

}
export -f DOPLAY

PLAY () {
  [ -f $PIDFILE ] && exit
  DOPLAY &
  echo $! > $PIDFILE
}
export -f PLAY

PAUSE () {
  PID=$(pidof aplay)
  [ -z "$PID" ] && PID=$(pidof mplayer| awk '{print $NF}')
  if [ -n "$PID" ]; then
    kill -STOP $PID
    echo $PID > $PIDFILE2
  fi
}
export -f PAUSE

RESUME () {
  if [ -f $PIDFILE2 ]; then
    kill -CONT $(cat $PIDFILE2) 2>/dev/null
    rm $PIDFILE2
  fi
}
export -f RESUME

NEXTTRACK () {      #skip a track
  RESUME
  killall lame aplay mplayer
}
export -f NEXTTRACK

NEXTDISC () {      #skip a disc
  RESUME
  killall peasymp3 lame aplay mplayer
}
export -f NEXTDISC

export PROG1="
<window title=\"Peasy Carousel Media Randomiser v0.0\">
<vbox>
  <frame $(gettext 'Drag your Music folder here, or browse to it...        ')>
    <hbox>
      <entry accept=\"directory\">
         <variable>A</variable>
       </entry>
      <button>
        <input file stock=\"gtk-open\"></input>
        <action type=\"fileselect\">A</action>
      </button>
    </hbox>
  </frame>
  <hbox>
    <button>
      <label>$(gettext 'Play')</label>
    </button>
    <button>
      <label>$(gettext 'Cancel')</label>
    </button>
  </hbox>
 </vbox>
</window>
"

export PROG2="
<window title=\"PeasyMP3 Carousel\">
<vbox>
  <hbox>
    <button>
      <label>$(gettext 'Pause')</label>
      <action>PAUSE</action>
    </button>
    <button>
      <label>$(gettext 'Resume')</label>
      <action>RESUME</action>
    </button>
    <button>
      <label>$(gettext 'Next Track')</label>
      <action>NEXTTRACK</action>
    </button>
    <button>
      <label>$(gettext 'Next Disc')</label>
      <action>NEXTDISC</action>
    </button>
    <button>
      <label>$(gettext 'Volume')</label>
      <action>rxvt -e alsamixer &</action>
    </button>
    <button>
      <label>$(gettext 'Quit')</label>
    </button>
  </hbox>
 </vbox>
</window>
"

[ "$(ps --no-heading -C peasymp3carousel | wc -l)" -gt 2 ] && exit
rm $PIDFILE

I=$IFS; IFS=""
for STATEMENTS in  $(gtkdialog3 --program PROG1); do
  eval $STATEMENTS
done
IFS=$I

[ "$EXIT" = "$(gettext 'Cancel')" -o "$EXIT" = "abort" ] && exit

export A B C D E F RAND
PLAY
gtkdialog3 --program PROG2

RESUME
kill $(cat $PIDFILE)
rm $PIDFILE
killall peasymp3 lame aplay mplayer
rm -rf $TMPFOLDER
Carousel_mod.jpg
 Description   
 Filesize   67.87 KB
 Viewed   424 Time(s)

Carousel_mod.jpg


Last edited by greengeek on Sat 05 Oct 2013, 15:39; edited 2 times in total
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 8551
Location: Stratford, Ontario

PostPosted: Sat 05 Oct 2013, 07:13    Post subject:  

Try this:

1. Right-click on a music folder.

2. Select Customize Menu.

3. You will see a window that probably contains Search with Pfind.

4. Drag the file /usr/sbin/peasymp3carousel into this window as a Link.

5. Rename the link Play in Carousel.

Now when you right-click on a music folder, this Play option will appear at the top of the list.
Back to top
View user's profile Send private message 
greengeek

Joined: 20 Jul 2010
Posts: 2083
Location: New Zealand

PostPosted: Sat 05 Oct 2013, 15:29    Post subject:  

Thanks rcrsn51,

If anyone wants to make it really easy to get their music / media folder playing randomly using rightclick and a slightly modified version of peasymp3carousel this way seems to work perfectly now for me:

1) Install the rcrsn51 / RSH pet shown a couple of posts above.
2) Grab the peasy media carousel randomiser script I have attached to this post and put it into /usr/sbin alongside the other peasy files (remove the false gx suffixes...). Rightclick the script, choose "permissions" and click yes to accept the change to make it executable.
3) Right click your music folder and select "customize menu" and two windows will open up:
- the first window is an advisory notice which will coach you to drag a symlink into the other window. (Read / understand it then just click ok)
- the second window is the "SendTo/.inode_directory" which handles the rightclick functions.
4) Open up /usr/sbin and drag the "peasymediacarouselrandomiser" file into the "SendTo/.inode_directory" and choose "Link Relative"

Now you can get your music folder paying randomly by rightclicking it, and choosing "peasymediacarouselrandomiser" from the menu. Just click play.

Easy peasy.

(This version has been modified to only display a single directory chooser as that is all that is necessary when using the right click. If you want the six-directory-chooser version you just use the standard peasymp3carousel as I have not modified that)
peasymediacarouselrandomiser.false_gz_.gz
Description 
gz

 Download 
Filename  peasymediacarouselrandomiser.false_gz_.gz 
Filesize  5.41 KB 
Downloaded  134 Time(s) 
Back to top
View user's profile Send private message 
greengeek

Joined: 20 Jul 2010
Posts: 2083
Location: New Zealand

PostPosted: Sun 06 Oct 2013, 03:46    Post subject:  

PaulR wrote:
Another thought occurred to me - would it be possible to detect when the program was fed a directory from a customised Rox context menu and if so automatically start playing? I can thing of no logical reason not to do this from the users perspective!

Obviously my modifications are not official in any way - but I think my latest mod has achieved what you are looking for (which is exactly what I was wanting too...)

The attached modified version of peasy carousel allows you to right click your music directory and it will automatically play all of the contents (including subdirectories) in random order. (user no longer needs to click the "play" button)

Steps as follows:

1) Install the rcrsn51 / RSH pet shown a couple of posts above.
2) Grab the peasy media randomiser autoplay script I have attached to this post and put it into /usr/sbin alongside the other peasy files (remove the false gx suffixes...). Rightclick the script, choose "permissions" and click yes to accept the change to make it executable.
3) Right click your music folder and select "customize menu" and two windows will open up:
- the first window is an advisory notice which will coach you to drag a symlink into the other window. (Read / understand it then just click ok)
- the second window is the "SendTo/.inode_directory" which handles the rightclick functions.
4) Open up /usr/sbin and drag the "peasymediarandomiser_autoplay" file into the "SendTo/.inode_directory" and choose "Link Relative"

Now you can get your music folder paying randomly by rightclicking it, and choosing "peasymediarandomiser_autoplay" from the menu. No need to click play - it starts playing automatically.

Very easy.
peasymediarandomiser_autoplay.removefalsegz.gz
Description 
gz

 Download 
Filename  peasymediarandomiser_autoplay.removefalsegz.gz 
Filesize  3.7 KB 
Downloaded  128 Time(s) 
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 8551
Location: Stratford, Ontario

PostPosted: Sun 06 Oct 2013, 13:33    Post subject:  

OK. I see where you guys want to take this. Wink

So I stripped more unnecessary code out of your Randomizer and packaged it as PeasyMP3 AutoPlay. The PET also sets up the ROX right-click menu.

There is no Multimedia menu entry because it doesn't make sense to run it that way.

[Edit] This feature is now included in the main package.

Last edited by rcrsn51 on Mon 11 Nov 2013, 09:55; edited 1 time in total
Back to top
View user's profile Send private message 
greengeek

Joined: 20 Jul 2010
Posts: 2083
Location: New Zealand

PostPosted: Sun 06 Oct 2013, 13:35    Post subject:  

Thanks! Much appreciated. I hate having to rely on my own dangerous hacking Smile
Back to top
View user's profile Send private message 
greengeek

Joined: 20 Jul 2010
Posts: 2083
Location: New Zealand

PostPosted: Mon 07 Oct 2013, 14:45    Post subject:  

Hi rcrsn51,

I think your autoplay pet should become a standard part of every puppy. It is such an easy way to get a music collection playing without any drama or delay.

I decided to try it across a range of puppies to see how compatible it is and here is what I found:

Worked perfectly on:
Slacko 5.3
Upup 3.9.9.2
SolidPup Lite3 RC2
Slimpup 3.7
Studio 1337
Wary 5.2.2
Pulp03 (based on pup 4.12)

LupuPlusLibre 528.005.001 worked ok but there seemed to be a very long delay before the first media file would play

Puppy 431 and Akita Beta9 both worked fine for audio - but both seemed to lack inbuilt flv player so they couldnt display my flv music vids.

Racy5.3 was pretty faulty - it would display the flv files ok but there was no sound. Also it would not go into subdirectories - it would only play the "loose" files in the top level directory. (The flvs would play correctly including sound if I just clicked on the file itself so maybe this was just a peculiarity of my savefile)

Just one question to clarify: is it true that the autoplay pet relies on the peasymp3 pet (or peasyMMSuite) to be already installed first? ie: the autoplay pet is not intended to be a standalone utility is it?
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 8551
Location: Stratford, Ontario

PostPosted: Mon 07 Oct 2013, 16:05    Post subject:  

Quote:
Just one question to clarify: is it true that the autoplay pet relies on the peasymp3 pet (or peasyMMSuite) to be already installed first? ie: the autoplay pet is not intended to be a standalone utility is it?

Correct. Like the Carousel, it is a front-end for PeasyMP3.

And PeasyMP3 is a front-end for a number of Linux media tools, including MPlayer. Not all Puppies will have a version of MPlayer that can handle flv's.

Regarding Racy: I can't see why it wouldn't drill down into subfolders, unless there is something wrong with its "find" command. I will test this.

[Edit] I checked this in Racy 5.3 with a directory tree of MP3 files and it worked fine. Also, FLVs played OK, but I had to turn up the sound volume.
Back to top
View user's profile Send private message 
greengeek

Joined: 20 Jul 2010
Posts: 2083
Location: New Zealand

PostPosted: Tue 08 Oct 2013, 04:30    Post subject:  

rcrsn51 wrote:
Regarding Racy: I can't see why it wouldn't drill down into subfolders, unless there is something wrong with its "find" command. I will test this.

[Edit] I checked this in Racy 5.3 with a directory tree of MP3 files and it worked fine. Also, FLVs played OK, but I had to turn up the sound volume.

Thanks for testing this. I've gone back for a closer look and now realise that my Racy53 installation is based on jrb's Racy-Baby-Barebones cutdown version (including a savefile that is of uncertain make-up) so I guess I shouldn't have included those results.

I'm glad your pet works on so many puppies because it turns out my hacked version of carousel doesn't Smile My hack only seems to work on recent puppies (maybe something to do with gtk versions, I don't really know...)
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 8551
Location: Stratford, Ontario

PostPosted: Tue 08 Oct 2013, 08:22    Post subject:  

PeasyMP3_Progs v4.3 is posted on page 1. It incorporates the above AutoPlay feature.
Back to top
View user's profile Send private message 
robwoj44

Joined: 08 Aug 2008
Posts: 330
Location: Warsaw

PostPosted: Mon 04 Nov 2013, 15:55    Post subject:  

I added to PeasyMP3 the possibility to play the modules - Sound/Noise/Protracker (MOD), Scream Tracker 3 (S3M), Fast Tracker II (XM), Impulse Tracker (IT), DIGI Booster (DIGI),
DigiBooster Pro (DBM), OctaMED (MED), SoundFX (SFX).
Here you can find the modules:
http://www.modules.pl/
http://modarchive.org/
You need xmp from http://www.murga-linux.com/puppy/viewtopic.php?t=45902
peasymp3_progs-4.3.pet
Description  PeasyMP3
pet

 Download 
Filename  peasymp3_progs-4.3.pet 
Filesize  4.42 KB 
Downloaded  131 Time(s) 
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 8551
Location: Stratford, Ontario

PostPosted: Fri 17 Jan 2014, 22:21    Post subject:  

PeasyMP3 v3.8 is posted on the first page. Thank you to vovchik for the hint here.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 4 of 5 [64 Posts]   Goto page: Previous 1, 2, 3, 4, 5 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.1034s ][ Queries: 13 (0.0142s) ][ GZIP on ]