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 Fri 24 Oct 2014, 16:49
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Multimedia
xhippo + lamip audio player
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Author Message
tempestuous

Joined: 10 Jun 2005
Posts: 5271
Location: Australia

PostPosted: Sat 02 Sep 2006, 20:32    Post_subject:  xhippo + lamip audio player  

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/distributions/puppylinux/pet_packages-4/xfreecd-0.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/Multimedia/xhippo+lamip.pup
xhippo-3.5-lamip.pet
Description  suits Puppy 4.x and up
pet

 Download 
Filename  xhippo-3.5-lamip.pet 
Filesize  653.48 KB 
Downloaded  414 Time(s) 

Edited_times_total
Back to top
View user's profile Send_private_message 
pakt


Joined: 04 Jun 2005
Posts: 1089
Location: Sweden

PostPosted: Sun 10 Jun 2007, 03:56    Post_subject:  

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

_________________
Testing Puppy since v0.9.2 - my desktop OS since v1.0.7
Running SlaxerPup-4.12 - Puppy with a Slackware 12.2 heart Cool
Back to top
View user's profile Send_private_message 
tempestuous

Joined: 10 Jun 2005
Posts: 5271
Location: Australia

PostPosted: Sun 10 Jun 2007, 10:04    Post_subject:  

Argh. You're always creating work for me, Paul Wink
Give me time, and I will recompile xhippo+lamip.
Back to top
View user's profile Send_private_message 
pakt


Joined: 04 Jun 2005
Posts: 1089
Location: Sweden

PostPosted: Sun 10 Jun 2007, 10:20    Post_subject:  

That's what you get for doing good work Wink

Paul

_________________
Testing Puppy since v0.9.2 - my desktop OS since v1.0.7
Running SlaxerPup-4.12 - Puppy with a Slackware 12.2 heart Cool
Back to top
View user's profile Send_private_message 
tempestuous

Joined: 10 Jun 2005
Posts: 5271
Location: Australia

PostPosted: Sat 16 May 2009, 02:14    Post_subject:  

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:
./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".
xhippo-3.5-gtk2.pet
Description 
pet

 Download 
Filename  xhippo-3.5-gtk2.pet 
Filesize  22.5 KB 
Downloaded  428 Time(s) 
mpg123-1.14.2.pet
Description 
pet

 Download 
Filename  mpg123-1.14.2.pet 
Filesize  174.71 KB 
Downloaded  560 Time(s) 

Edited_time_total
Back to top
View user's profile Send_private_message 
tempestuous

Joined: 10 Jun 2005
Posts: 5271
Location: Australia

PostPosted: Sat 16 May 2009, 02:16    Post_subject:  

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.
ogg123-1.20.pet
Description 
pet

 Download 
Filename  ogg123-1.20.pet 
Filesize  26.51 KB 
Downloaded  685 Time(s) 
Back to top
View user's profile Send_private_message 
tempestuous

Joined: 10 Jun 2005
Posts: 5271
Location: Australia

PostPosted: Sat 16 May 2009, 02:19    Post_subject:  

Here's a screen shot.
xhippo.jpg
 Description   
 Filesize   42.95 KB
 Viewed   2387 Time(s)

xhippo.jpg

Back to top
View user's profile Send_private_message 
jrb


Joined: 11 Dec 2007
Posts: 1040
Location: Smithers, BC, Canada

PostPosted: Sat 16 May 2009, 15:10    Post_subject:  

Thanks a lot tempestuous,
This is great. Very Happy 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
Back to top
View user's profile Send_private_message 
tempestuous

Joined: 10 Jun 2005
Posts: 5271
Location: Australia

PostPosted: Sat 16 May 2009, 20:13    Post_subject:  

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.
Back to top
View user's profile Send_private_message 
pakt


Joined: 04 Jun 2005
Posts: 1089
Location: Sweden

PostPosted: Tue 19 May 2009, 04:24    Post_subject:  

Nice minimalism, tempestuous Cool

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) Very Happy

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.

_________________
Testing Puppy since v0.9.2 - my desktop OS since v1.0.7
Running SlaxerPup-4.12 - Puppy with a Slackware 12.2 heart Cool
Back to top
View user's profile Send_private_message 
tempestuous

Joined: 10 Jun 2005
Posts: 5271
Location: Australia

PostPosted: Tue 19 May 2009, 07:34    Post_subject:  

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:
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.
wma9pro.jpg
 Description   
 Filesize   54.34 KB
 Viewed   2252 Time(s)

wma9pro.jpg

Back to top
View user's profile Send_private_message 
pakt


Joined: 04 Jun 2005
Posts: 1089
Location: Sweden

PostPosted: Wed 20 May 2009, 04:16    Post_subject:  

Hi tempestuous, you're as active as ever Wink

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

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:
# xhippo VeryLastDay.wma

I get many lines of errors - variations of:
Code:
[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.
wma_using_ffmpeg.png
 Description   
 Filesize   12.42 KB
 Viewed   2269 Time(s)

wma_using_ffmpeg.png


_________________
Testing Puppy since v0.9.2 - my desktop OS since v1.0.7
Running SlaxerPup-4.12 - Puppy with a Slackware 12.2 heart Cool
Back to top
View user's profile Send_private_message 
tempestuous

Joined: 10 Jun 2005
Posts: 5271
Location: Australia

PostPosted: Wed 20 May 2009, 05:27    Post_subject:  

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:
[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:
lamip -n -o oss VeryLastDay.wma
Back to top
View user's profile Send_private_message 
pakt


Joined: 04 Jun 2005
Posts: 1089
Location: Sweden

PostPosted: Wed 20 May 2009, 06:13    Post_subject:  

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:
[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:
# 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:
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' Exclamation Am I missing a package?

_________________
Testing Puppy since v0.9.2 - my desktop OS since v1.0.7
Running SlaxerPup-4.12 - Puppy with a Slackware 12.2 heart Cool
Back to top
View user's profile Send_private_message 
tempestuous

Joined: 10 Jun 2005
Posts: 5271
Location: Australia

PostPosted: Wed 20 May 2009, 06:39    Post_subject:  

pakt wrote:
I checked the contents of xhippo-3.3-gtk2.pet and it doesn't contain 'lamip' Exclamation 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.
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 2 Posts_count   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:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0958s ][ Queries: 13 (0.0056s) ][ GZIP on ]