Page 1 of 2

xhippo + lamip audio player

Posted: Sun 03 Sep 2006, 00:32
by tempestuous
lamip is a simple audio player which can be run from the command line, or various gui's are available. But the gui's are at beta stage and are buggy, so I packaged lamip with the minimalist xhippo front end.
xhippo is very basic, but at least it provides play/pause/load/playlist funtions. Most of these functions are accessed by right-clicking in the main window.

I configured lamip with input support for:
mp3, mp4/m4a/AAC, wma, ogg, flac, and wav.

Audio CD input support was also configured in lamip, but it doesn't work! And xhippo probably wouldn't display the track names, anyway.
So for audio CD support I recommend XfreeCD, from the pet-packages-4 repository -
http://distro.ibiblio.org/pub/linux/dis ... .9.0.1.pet
You may need to check that your CD audio channel is unmuted and raised in alsamixer.

lamip's default audio output is ALSA, but this can be changed to OSS by opening /usr/local/etc/xhippo.config in Geany and changing all instances of "alsa" to "oss".

UPDATE June 2012:
Updated xhippo to version 3.5,
and repackaged as a dotpet for Puppy 4.1.x and higher. It might work in earlier puppies, I'm not sure.
But the dotpup version for older Puppies is still here -
http://puppyfiles.org/dotpupsde/dotpups ... +lamip.pup

Posted: Sun 10 Jun 2007, 07:56
by pakt
tempestuous, it seems like lamip needs the lamip-output-oss plugin to be able to run on the ebox-2300. Can this be fixed easily?

Paul

Posted: Sun 10 Jun 2007, 14:04
by tempestuous
Argh. You're always creating work for me, Paul :wink:
Give me time, and I will recompile xhippo+lamip.

Posted: Sun 10 Jun 2007, 14:20
by pakt
That's what you get for doing good work ;)

Paul

Posted: Sat 16 May 2009, 06:14
by tempestuous
Here is xhippo by itself. You can see it's very small. It uses just 1% or 2% CPU while loading/playing audio tracks. And while the track is playing the CPU usage for xhippo drops to almost zero.
I have configured it to use madplay to play mp3's, and wavplay to play wav's. Both of these applications are already contained in Puppy.
You can modify the configuration file by opening /usr/local/etc/xhippo.config in Geany. Apart from defining applications to play various audio formats, you can change settings such as your default playlist directory.

And for the ultimate in low-resource MP3 playback, here is the latest version of mpg123.
mpg123 claims to be the most efficient MP3 decoder. On my Pentium2-350 it uses 6% CPU, which is noticeably better than madplay's 11% CPU usage for the same audio file.
The source code is from http://www.mpg123.de/
This is the configuration I used:

Code: Select all

./configure --enable-network=yes --with-cpu=generic_fpu --with-audio=alsa,oss,dummy --with-default-audio=alsa --prefix=/usr --sysconfdir=/etc --localstatedir=/var --build=i486-pc-linux-gnu
To use mpg123 with xhippo, open /usr/local/etc/xhippo.config in Geany and change "type:mp3:madplay" to "type:mp3:mpg123".

Posted: Sat 16 May 2009, 06:16
by tempestuous
If you need to play Ogg Vorbis audio files Puppy 4.1.x already contains libogg and libvorbis, but is missing the ogg123 executable. I now attach it. xhippo-3.3-gtk2 is pre-configured to use it.

Posted: Sat 16 May 2009, 06:19
by tempestuous
Here's a screen shot.

Posted: Sat 16 May 2009, 19:10
by jrb
Thanks a lot tempestuous,
This is great. :D I reworked your xhippo-lamip.pet a little for ChoicePup including ogg123, a new defaultmediaplayer and MIME-types for wav, mp4 and flac. I also noticed that your symlinks in /usr/lib were broken. I fixed them in ch-xhippo-lamip.pet but you might want to have a look at yours. I also set the autostart option to "yes" and put xhippo on the right-click OpenWith menu.

I have tested it on mp3, mp4, ogg, flac, wma and wav files. It works beautifully. It will become the new default in ChoicePup.

Thanks again, J

Posted: Sun 17 May 2009, 00:13
by tempestuous
Oops, I keep forgetting that emelFM2 fails to copy symlinks correctly. The error will affect only AAC and FLAC playback.

So I just fixed xhippo-lamip.pet and uploaded again.
Anyone who downloaded this package before now (May 17 2009) please download the fixed version.

Posted: Tue 19 May 2009, 08:24
by pakt
Nice minimalism, tempestuous 8)

I tested xhippo, ogg123 and mpg123 on the eBox-2300 (running upup-473 from a USB stick).

xhippo + madplay used ~26% cpu
xhippo + mpg123 used ~21% cpu
xhippo + ogg123 used ~24% cpu

Very nice results on that low-powered machine (200 MHz Vortex86 CPU) :D
jrb wrote:I have tested it on mp3, mp4, ogg, flac, wma and wav files.
jrb, how did you get xhippo to play wma ? Almost all of my music is in wma format. This is because my music players unfortunately only support mp3 or wma and I can squeeze in nearly twice as many wma files in these devices at roughly the same quality.

Posted: Tue 19 May 2009, 11:34
by tempestuous
Hi pakt, hope you're well.
pakt wrote:jrb, how did you get xhippo to play wma ?
This version of lamip definitely includes WMA input support, but the problem is there are 2 variants of the most recent WMA codec: WMA9 and WMA9-pro. See attached image from the official M$ Windows Media Encoder application.

I just tested lamip now. It plays WMA9 audio files, but not WMA9-pro.

I understand that lamip's WMA support is based on ffmpeg code. And even though this lamip package is almost 3 years old it seems that a recent ffmpeg still doesn't play WMA9-pro, because I just tried this in Puppy 4.1.2 -

Code: Select all

ffmpeg -i <mywmafile> -f au - | aplay
Again, WMA9 audio files were OK, but not WMA9-pro.

I also tried gxine, it also wouldn't play WMA9-pro.

The only way I know to play WMA9-pro audio files in Linux is with MPlayer and the (Windows) extra-codecs pack - specifically this involves the Windows file wma9dmod.dll.

Posted: Wed 20 May 2009, 08:16
by pakt
Hi tempestuous, you're as active as ever ;)

Unfortunately, my chronic fatigue and resulting lack of concentration keep me from working as much with Puppy as I'd like :roll:

Thanks for the info regarding WMA9-pro, but the wma files I tested xhippo with were just ordinary cbr wma files. They play with gxine but not xhippo in Puppy 4.12.

If I try to play the wma, located in the root directory, with xhippo in a terminal like this:

Code: Select all

# xhippo VeryLastDay.wma
I get many lines of errors - variations of:

Code: Select all

[Invalid UTF-8] Couldn't find "/root/\xc2\xf3\x86\xcc\xb1u\xb6\xf9\x01*\x15Y1\x0c\xc4\x18\x10R\x05\xc1\x84\x9d\xc2P&\xa8\x04\x14\x86\x84\xa0\xa1(H\x14\x02JA 2\x02\xba*n\xe3\x10\xa0\x1c\xf5$BMH=l\x99\xd3 \x13".
[Invalid UTF-8] Couldn't find "/root/\x0b\xa93\xb0".
[Invalid UTF-8] Couldn't find "/root/`E\xe14\xb0*".
Playing an ogg file the same way works fine.

Running the wma file in a terminal using ffmpeg also works. I've attached a screenshot showing that it plays.

Posted: Wed 20 May 2009, 09:27
by tempestuous
Hi pakt,
I must say that I have never before launched xhippo by specifying an individual music file from the commandline! It seems somewhat counter-intuitive to the concept of having a gui interface.

But I tried it just now with a WMA file, and it worked just fine. Well actually, the WMA file didn't play immediately, it simply loaded into the xhippo window ready to play. Then when I clicked on the song it played.
pakt wrote:

Code: Select all

[Invalid UTF-8] Couldn't find ..
Whoa. Could that be a locale/character set issue? Is your Puppy set for Swedish locale?

Of course, with my package xhippo is just a gui for lamip. Can you play the file directly with lamip? Try this -

Code: Select all

lamip -n -o oss VeryLastDay.wma

Posted: Wed 20 May 2009, 10:13
by pakt
tempestuous wrote:I must say that I have never before launched xhippo by specifying an individual music file from the commandline! It seems somewhat counter-intuitive to the concept of having a gui interface.
lol, running in a terminal was just to get any error messages :wink:

When I drop the wma in the xhippo gui then click on the file, it just displays 'Stopped'.
tempestuous wrote:
pakt wrote:

Code: Select all

[Invalid UTF-8] Couldn't find ..
Whoa. Could that be a locale/character set issue? Is your Puppy set for Swedish locale?
I haven't changed the locale from default

Code: Select all

# set|grep LANG  
LANG=en_US
#
I have, however, set the keyboard layout to Swedish, but should that make any difference?
tempestuous wrote:Of course, with my package xhippo is just a gui for lamip. Can you play the file directly with lamip? Try this -

Code: Select all

lamip -n -o oss VeryLastDay.wma
Umm, that command doesn't work for me. I checked the contents of xhippo-3.3-gtk2.pet and it doesn't contain 'lamip' :!: Am I missing a package?

Posted: Wed 20 May 2009, 10:39
by tempestuous
pakt wrote:I checked the contents of xhippo-3.3-gtk2.pet and it doesn't contain 'lamip' :!: Am I missing a package?
Yes, you need xhippo-lamip.pet

xhippo-3.3-gtk2.pet is the gui only, configured to used whatever commandline applications are already in Puppy. But of course, there's no commandline application in Puppy to play AAC/MP4's.

Posted: Wed 20 May 2009, 11:16
by pakt
Ah, I missed that package at the top of the thread - didn't look close enough and thought it was an earlier package :oops:

Ok, I installed xhippo-lamip.pet and the wma plays as it should :P

Only negative thing is that I now have two xhippo entries in the Multimedia menu. Could that be due to installing the packages in the wrong order?

Posted: Wed 20 May 2009, 11:50
by tempestuous
Those two dotpet packages each had their own *.desktop file, so I suggest you first delete /usr/share/applications/xhippo-3.3-gtk2.desktop.

JWM's configuration file has already been updated with 2 xhippo entries, so I suggest you next modify /root/.jwmrc in Geany to delete one of the entries.
Restart X and you should be good.

Posted: Wed 20 May 2009, 12:16
by pakt
Ok, tempestuous, all is good now :wink: Thanks

BTW, I'm running big_bass' SlaxerPup-4.12 (2.6.27.7 SMP kernel) at the moment and xhippo runs fine in it.

Hmm, I wonder if xhippo runs with a lower CPU load in this puplet compared to Barry's stock 4.12?

Well, running on my 2.66GHz Core2Duo box, top reports 0% CPU for lamip when running either aac, ogg or wma files! I should check on the eBox-2300 instead. I'll check and report back...

Posted: Tue 19 Jun 2012, 04:56
by tempestuous
UPDATE June 2012:
Both xhippo dotpet packages now updated to version 3.5; the gui+lampi backend package in the 1st post, and the gui-only package in the 5th post.
The main difference, apparently, is improved ID3 tag reading.
And the location of the configuration file has changed - /usr/local/etc/xhippo.config

I also updated the mpg123 dotpet to version 1.14.2.

Posted: Thu 21 Jun 2012, 13:12
by tempestuous
Here are two 48x48 desktop icons that you could consider using for xhippo.