Page 1 of 1

ffplay.sh, audio player based on ffplay

Posted: Fri 22 Feb 2019, 04:25
by musher0
Hello all.

As the title says. It consists of a wrapper script that calls ffplay to play an audio file from
right-click from a ROX window.

I thought I'd bring out some of the "music power" hidden in Puppy. Capture and tree
attached. The tree lists the music formats this script will play.

I believe I have kept about 20 of the major ones. For other music formats you may know
and perhaps prefer, simply copy as a symlink [cp -P] file run-ffplay.sh to the sub-
directory of your choice in OpenWith.

The sound is quite good, IMO, since ffplay uses the ffmpeg libraries. It does not offer
much visual appeal. But that's the way music should be heard, isn't it: with our ears.

Enjoy.

Posted: Fri 22 Feb 2019, 04:51
by Yogi
Always looking for a small audio player. However, getting a "failed to install" error. ffplay.sh-01.pet seems to be empty.

Posted: Fri 22 Feb 2019, 04:58
by musher0
Hi Yogi.

It is a small pet. But a "failed to install" message? What Puppy are you on? Some older
Pups say that when the pet is archived as an "xz" format.

Anyway, I'll redo the pet as a gzip archive, and we'll see if the error message still
pops up. Give me a couple of minutes.

BFN.

Posted: Fri 22 Feb 2019, 05:00
by musher0
Here you go.
Keep me posted?
TIA.

Posted: Fri 22 Feb 2019, 05:37
by Yogi
musher0,

I'm using Quirky 1.1. Yeah, I know, it's old but works for me. Your updated pet installed fine into /opt/local/bin. When i right clicked on an mp3 file and tried to open with "run-ffplay.sh", nothing happens. So I went into /opt/local/bin and opened a terminal and this is the result:

# lance-ffplay.sh
bash: lance-ffplay.sh: command not found

# ffplay.sh
bash: ffplay.sh: command not found

# run-ffplay.sh
bash: run-ffplay.sh: command not found

What else can I try?

Posted: Fri 22 Feb 2019, 08:57
by Yogi
musher0,

Upon examining ffplay.sh, I noticed that it's calls /usr/bin/ffplay. Well, turns out ffplay is not installed in Quirky 1.1. Not installed in Tahr Puppy 6.0.5, either.

As a side note, if you're looking for a small audio player, you might try Herrie. It plays mp3 files and streams internet radio. Only 32K size and I've never had to install extra files to get it to run.

http://www.murga-linux.com/puppy/viewto ... d0e9becb16

Posted: Fri 22 Feb 2019, 11:31
by musher0
Hi Yogi.

You don't have ffplay, but maybe your old Quirky has avplay? If it does, maybe you can
do a symlink, like so:

Code: Select all

ln -s avplay ffplay
1
It's been a little while since I've used avplay, but I think the only difference between the
two as players is that avplay does not require the " -autoexit " parameter at the end of
the command line (in script ffplay.sh). Maybe try that.

IHTH.
~~~~~~~~~
1 -- Or change ffplay to avplay in the script, hehe.

Posted: Fri 22 Feb 2019, 16:48
by Yogi
Nope, don't have avplay either. Oh well, no big deal. But do give Herrie a try.

Thanks

Posted: Fri 22 Feb 2019, 19:27
by musher0
Yogi wrote:Nope, don't have avplay either. Oh well, no big deal. But do give Herrie a try.

Thanks
Hi Yogi.

Thanks for the tip.

I just downloaded the source for Herrie. I guess it's time to compile a new exec,
aragon's thread being so old.

Speaking of small audio players, somewhere on this bazaar of a forum you will find
an mp3 player written by technosaurus, that's barely over 8 Kb! (Note to myself: I
have to find it again.)

TWYL.