maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   xmms now available (https://talk.maemo.org/showthread.php?t=11892)

free 2007-11-18 03:51

xmms now available
 
1 Attachment(s)
XMMS

Quote:

Originally Posted by Friedrich Nietzsche , a long time ago (1844-1900)
Without music the life would be a mistake.
Sans la musique, la vie serait une erreur.



Mp3, Ogg, Wav and Flac support
Equalizer (10 - 31 bands)
Visualisation plugins
Skins
etc..

Tested on OS2007/OS2008/Diablo


n770 users:
* The module xmms-mad should be installed for playing mp3. Then when running xmms, use mad plugin for output.
* Ogg is very slow, nearly unusable.

Quote:

Configuration:
Install path: /usr
Current xmms /usr/bin/xmms
Build OSS plugin: no
Build esd plugin: yes
Build ALSA plugin: yes
Build mikmod plugin: no
Build Ogg Vorbis plugin: yes
Build OpenGL plugins: no
Pthread flag: -lpthread
Use one plugin dir: no
Allow user plugin dir: yes

In case of problem, read the complete thread, a lot of people contributed for improvements and also, Read The Fine Manual:
http://xmms.org/docs/readme.php


To download, add the repository in my signature.
Happy listening!

dblank 2007-11-18 04:10

Re: xmms now available
 
Edit: looks like your links should be using hyphens rather than underscores

Got it running, but it defaults to the disk writer plugin as it can't load libesdout.so:
/usr/lib/xmms/Output/libesdout.so: undefined symbol: esd_get_latency

linuxrebel 2007-11-18 07:30

Re: xmms now available
 
Cool it installs without a problem, runs, but the following.....

1. no sound ...
2. no text on file buttons
3. the IT has no concept of Z order and windowing (but combiined with E17 hmm)

free 2007-11-18 13:17

Re: xmms now available
 
Quote:

Originally Posted by dblank (Post 96554)
Edit: looks like your links should be using hyphens rather than underscores

Yep, a server side script on my webserver changed the _ and + to -. I was not aware of this. Corrected. I guess I should have tried at least once what I posted :o
Quote:

Got it running, but it defaults to the disk writer plugin as it can't load libesdout.so:
/usr/lib/xmms/Output/libesdout.so: undefined symbol: esd_get_latency
Yes, on my n800 it also defaulted at the first launch to disk writer. I went in the configuration (tap on the little O) and go to preferences, then in Audio Plugins, for output, select eSound Output Plugin, the other one probably writes wav file directy (example for recording radios on disk)

But I don't experience the problem you mention.
Could you tell me what version of osso-esd you are using?
That's what I have:
/tmp $ apt-cache policy osso-esd
osso-esd:
Installed: 0.52-3
Candidate: 0.52-3
Version table:
*** 0.52-3 0
500 http://repository.maemo.org bora/free Packages
100 /var/lib/dpkg/status
0.17-1 0
500 http://repository.maemo.org mistral/free Packages
I could remove this latency stuff but not before I understand what's going on.
Are you using any effect plugins? Like the Echo Plugin?

Thanks a lot for the feedback.

I'd like that more people try it. Am I the only one for who it works?? :(

free 2007-11-18 13:23

Re: xmms now available
 
Quote:

Originally Posted by linuxrebel (Post 96597)
Cool it installs without a problem, runs, but the following.....

1. no sound ...
2. no text on file buttons
3. the IT has no concept of Z order and windowing (but combiined with E17 hmm)

1. maybe you are using the disk writter output plugin? At first start, it defaults to this output plugin, you need to select esd. Then tell me if you get the same problem as dblank
2. I only had problems with other language, that's why I removed completly the broken i18n (I say broken because on debian it's the same). File buttons, you mean in playlist, these 3 little stuffs when you tap + FILE ? Hum I tried all buttons, I don't have a problem.
Can you please post the result of
$locale
3. Z order, z order .. what's that :) The fact that new window open behind older ones? I discovered this problem now, when you configure a plugin, its configuration window goes behind (still accessible if you close the one in front). I have no way of checking in e17 at the moment.

Thanks for the feedback.

It would be great if people tell us which device it is and which OS.

I'll try to see if some crazy plugins visualisation works (geiss,.. without gl). Much harder I guess.

ArnimS 2007-11-18 13:27

Re: xmms now available
 
nice job. i tried building xmms and variants (xmms2, beep media player etc) and failed :(

howdidyoudoit?

free 2007-11-18 13:47

Re: xmms now available
 
Quote:

nice job.
Yes but does it work? :D

How I did it:
First, I'm running Linux *debian* on my pc. That helps a lot!

In debian (out of itchy and scratchy)
cd ~/src_sbox (this is a link to ~/src in scratchbox)
apt-get source libglib1.2-dev libgtk1.2-dev libogg-dev libvorbis-dev xmms

In scratchbox:
export CFLAGS="-O2 -fomit-frame-pointer -mcpu=arm1136jf-s -mfpu=vfp -mfloat-abi=softfp"
cd src
cd libglib1.2-dev
fakeroot debian/rules binary
cd ..
dpkg -i libglib*deb
cd libgtk1.2-dev
fakeroot debian/rules binary
cd ..
dpkg -i libgtk*deb
cd libvorbis-dev
fakeroot debian/rules binary
cd ..
dpkg -i libvorbis*deb
cd libogg-dev
fakeroot debian/rules binary
cd ..
dpkg -i libogg*deb
cd xmms-blabla
DEB_BUILD_OPTIONS="-no-oss -no-nls" fakeroot debian/rules binary
cd ..
dpkg -i xmms*deb

At this step, we know it installs in scratchbox.
Let's try it on the n800.
In debian
scp *.deb user@n800:/media/mmc2/deb

On the n800
cd /media/mmc2/deb
sudo gainroot
dpkg -i *.deb
LANG=C xmms


debian/rules specific:
1)
When you get COMPAT error, you have to add
export DH_COMPAT=4 in debian/rules
2) When you get error about incorrect substitutions (ex xmms-dev depends on xmms), you have to replace
Depends: xmms (= ${binary:Version}) by
Depends: xmms (= ${Source-Version})
3) I remove the line dh_installman. Hackers don't read docs.

xmms specific:
Some files are missing :
* install.sh, take it from another package (I took it from bonnie as I packaged it)
* depcomp, this is part of the autotools and on scratchbox they are not at the standard place.
cd /usr/share
ln -s /scratchbox/tools/autotools/automake-1.9/share/automake-1.9/ autotools-10
(cause xmms searches them in /usr/share/autotools-10 and scratchbox has them in /scratchbox/tools/autotools/automake-1.9/share/automake-1.9). This hack is a bit awfull.

xmms config, I changed debian/rules to:

I hard-coded no-alsa in configure (didn't find a way to pass it to ./configure)

That's about it..

TA-t3 2007-11-18 19:38

Re: xmms now available
 
Quote:

Originally Posted by free (Post 96672)
When you get COMPAT error, you have to add
export DH_COMPAT=4 in debian/rules

Instead you can just edit debian/compat and change 5 to 4
(it's a little file with only that number in)

Quote:

3) I remove the line dh_installman. Hackers don't read docs.
Small correction, hackers don't _write_ docs.. ;)

free 2007-11-18 19:41

Re: xmms now available
 
Thanks TA-t3 for the compat file. Didn't know this way.

Hummmm not keen on trying xmms? Too many dependencies? Or you already have your lovely app for doing this?

Without feedback, it's boring. Not one person told me that it was working. :(

Whoooo wants to buy my xmms? Whoo? :D

Thanks again for the comments

yerga 2007-11-18 20:08

Re: xmms now available
 
2 Attachment(s)
free,

Works for me. Xmms always will be the best player at the world ;)

Although I haven't font in the gtk1.2 menus. Are empty.
I set the sound output for so many years using xmms in the desktop that I know all menus.

In addition, xmms moves by the hildon-desktop only lacks an icon for that to minimize is not lost.
Status Docklet plugin? Now that the OS2008 supports status icons (see Pidgin).

Attached a screenshot with xmms running in n800, OS2008, and other with menu problem.

free 2007-11-18 20:30

Re: xmms now available
 
Thanks yerga! Good screenshot!

Ok first information it works in OS2008, was not sure.

Second yes, minimizing you loose the application. I have no clue how to do this but I'll reread what you said and search. ALso needs a launcher, this should be fixed with a freedesktop standard menu. I'll dig into this.

Third this empty menu..
Either a font problem or an internationalization problem.. I guess
Can you run it with LANG=C in front, as I said in the first post?

Can you give me the output of "locale" so that I try to reproduce the problem?
This should be easy to fix.

It's stupid but I didn't put the internationalization because my ISP won't allow me to post more than 1.5Meg/ file..

lardman 2007-11-18 21:27

Re: xmms now available
 
tremor (integer only) uses less CPU than vorbis (even with vfp). (Check the maemo-developer list from early in the year just after the N800 came out - we benchmarked the two along with other things).

So you should still use tremor rather than vorbis for ogg decoding.

yerga 2007-11-18 21:46

Re: xmms now available
 
Quote:

Originally Posted by free (Post 96816)
Thanks yerga! Good screenshot!

Ok first information it works in OS2008, was not sure.

Second yes, minimizing you loose the application. I have no clue how to do this but I'll reread what you said and search. ALso needs a launcher, this should be fixed with a freedesktop standard menu. I'll dig into this.

Third this empty menu..
Either a font problem or an internationalization problem.. I guess
Can you run it with LANG=C in front, as I said in the first post?

Can you give me the output of "locale" so that I try to reproduce the problem?
This should be easy to fix.

It's stupid but I didn't put the internationalization because my ISP won't allow me to post more than 1.5Meg/ file..

Thank you, with LANG=C it works.
It sure was for internationalization. My locale is mixed, en_GB and es_ES:
Quote:

LANG=es_ES
LC_CTYPE="es_ES"
LC_NUMERIC="es_ES"
LC_TIME="es_ES"
LC_COLLATE="es_ES"
LC_MONETARY="es_ES"
LC_MESSAGES=en_GB
LC_PAPER="es_ES"
LC_NAME="es_ES"
LC_ADDRESS="es_ES"
LC_TELEPHONE="es_ES"
LC_MEASUREMENT="es_ES"
LC_IDENTIFICATION="es_ES"
LC_ALL=
You could hosted this in garage.maemo.org. There would have no problems with space.

free 2007-11-18 21:53

Re: xmms now available
 
Quote:

Originally Posted by lardman (Post 96827)
tremor (integer only) uses less CPU than vorbis (even with vfp). (Check the maemo-developer list from early in the year just after the N800 came out - we benchmarked the two along with other things).

So you should still use tremor rather than vorbis for ogg decoding.

Ok thanks for the valuable info. I'll make a new version then.

And yes, I'll mirror it on garage as soon as I've made a launcher.
For the i18n, a lot are fuzzy translations, I'm not very happy with this.
Good at least I know it works with the above limitations.
Thanks

dblank 2007-11-19 05:26

Re: xmms now available
 
Quote:

Originally Posted by free (Post 96661)
But I don't experience the problem you mention.
Could you tell me what version of osso-esd you are using?
That's what I have:
/tmp $ apt-cache policy osso-esd
osso-esd:
Installed: 0.52-3
Candidate: 0.52-3

Doh.. I just realized this was for Bora, and not Chinook :o

I've got osso-esd 0.52-8, so I'm guessing esd_get_latency got removed at some point after 0.52-3, or something :)

Edit: /usr/lib/libesd.so.0.2.35 does contain esd_get_latency, I'm not sure why it's not being loaded.

I don't have ESD as an output plugin option in the prefs, probably because I'm getting that unresolved symbol, for whatever reason.

Edit 2: ok, I'm a dummy.. I had another version of libesd in /usr/local/lib that was loading, xmms is working great now that I've removed it :)

yerga 2007-11-19 08:35

Re: xmms now available
 
I use Chinook, and my osso-esd is 0.52-8, and I haven't sound problems with esd output in xmms.

linuxrebel 2007-11-20 04:18

Re: xmms now available
 
First ... Yes doing diskwriter related change did remove the problem with sound.

Second the LANG=C is the only way to get menus.... Best not to skip this one.

Third I'm running on OS2007 (latest) on an n800 About to try it on a 770 hopefully this evening.

On the Z order yes that is a problem. Mostly due to the highly gutted nature of the WM in the OS. Not having Z order is a minor pain, just to get xmms, I'll live with that one. Skins work really well too. The biggest "YIPPPEEE" is the EQ in xmms, it really helps the sound quality.

Final for me is that in order to get the menu icons to work correctly (meaning click and get words on the buttons etc.) I did the following

1. cd /usr/bin
2. mv xmms xmms.real
3. vi xmms (and it should look like) (updated)

#!/bin/sh

#create variable so that the switch in the Exec statement is active
sw=$*
LANG=C
/usr/bin/xmms.real $sw

4. chmod 755 /usr/bin/xmms

Now the two icons created in 'Extras' by the install work. Once you have it up and running I found you need to edit the fonts tab in Preferences (to reflect something the Nokia has. ) Haven't yet come up with a good substitute. working on that one.

Also I still haven't found a good substitute for the "lost app" problem if you minimize. Other than xterm and kill.

free 2007-11-20 13:51

Re: xmms now available
 
Quote:

Originally Posted by dblank (Post 96968)
Edit 2: ok, I'm a dummy.. I had another version of libesd in /usr/local/lib that was loading, xmms is working great now that I've removed it :)

Ahah usual error :p
That's why sometimes I prefer to configure with --prefix=/home/user/mymess/ because /usr/local is a system directory and apps from others get messed with my apps. Also with this directory, you don't need to be root to make the install.

Good that it works for you.

So it looks like it works for OS2007 and OS2008.

free 2007-11-20 14:11

Re: xmms now available
 
Okay I have patched the menu :
Exec=xmms
becomes
Exec=/bin/sh -c "LANG=C xmms"
:D

Maybe later I'll do the complete i18n version. I think there are still a lot of .po files included in this release, not very logical.

New version available, first post updated, tested on my n800/OS2007
For people who already have the old version, simply redownload xmms package and check the md5sum.

Biggest problems:
No minimize
Z stuff
Ogg Support


Quote:

Originally Posted by linuxrebel
Haven't yet come up with a good substitute. working on that one.

gtkfontsel would be handful to know which font are present and to copy past into it.
Actually even on my linux PC, there is this message of the font. But does it create a problem for you? Apart from the pollution about this warning?

dblank 2007-11-20 16:35

Re: xmms now available
 
Quote:

Originally Posted by free (Post 97720)
Ahah usual error :p
That's why sometimes I prefer to configure with --prefix=/home/user/mymess/ because /usr/local is a system directory and apps from others get messed with my apps. Also with this directory, you don't need to be root to make the install.

I would have expected it to load from /lib or /usr/lib first, don't quite understand why it doesn't :confused:

Thanks again, it's great having xmms on the tablet!

free 2007-11-20 16:40

Re: xmms now available
 
Quote:

Originally Posted by dblank (Post 97791)
I would have expected it to load from /lib or /usr/lib first, don't quite understand why it doesn't :confused:

Well, that's a bit logical (/usr/local is supposed to override the system programs) and also I guess the order has an importance there:

$ cat /etc/ld.so.conf
/usr/X11R6/lib
/usr/lib/minimo
/usr/local/xrdp
/usr/local/lib
/usr/lib
/lib
Quote:


Thanks again, it's great having xmms on the tablet!
Yep, I think also. I'm using it only really now since 10mns. Cool :)
I have to say some buttons (like the options) are a bit small, but well..

Next step, we need this nasty visu plugins!! :)

dblank 2007-11-20 17:13

Re: xmms now available
 
Quote:

Originally Posted by free (Post 97795)
Well, that's a bit logical (/usr/local is supposed to override the system programs)

I always thought it was the other way around, heh.

I think some older Linux distros I used to run had /lib or /usr/lib first either in ld.so.conf or LD_LIBRARY_PATH, either that, or I'm crazy.. or I guess both could be true :)

linuxrebel 2007-11-20 21:18

Re: xmms now available
 
The normal procedure on Linux was to go from system to user with /lib then /usr/lib/ (or /usr/X11/ if it was a video) then /var/lib/ then /usr/local/ then pwd. Windows works in the opposite direction. There has from what I can see been a movment at least in the gnome world to be more windows like. Not good IMHO but hey what do I know.

frasej 2007-11-20 23:45

Re: xmms now available
 
Will there be a point in time where I don't have to do LANG=C xmms, and just be able to launch it with xmms and still be able to see text in the menus?

btw: This is an excellent port. It has become my new favorite player. :p If only I could launch it from IDEA or Simple Launcher. :cool:

dblank 2007-11-21 00:15

Re: xmms now available
 
Quote:

Originally Posted by frasej (Post 98013)
Will there be a point in time where I don't have to do LANG=C xmms, and just be able to launch it with xmms and still be able to see text in the menus?

Change:
Exec=xmms %U

in /usr/share/applications/xmms.desktop
to:

Exec=/bin/sh -c "LANG=C xmms %U"

yerga 2007-11-21 00:34

Re: xmms now available
 
free, could you publish the dev xmms packages? So we could compile some plugin for it.

linuxrebel 2007-11-21 05:15

Re: xmms now available
 
Ok installed it over on my 770. There I am running the latest HE 2007 OS. If I try and start xmms (even with just a simple xmms at the command line) I get the error "Illegal Instruction" I'm going to have to find strace and install it to get you more. But for now suffice it to say it's a negative on HE2007 for me.

BanditRider 2007-11-21 11:28

Re: xmms now available
 
Same "Illegal Instruction" for me on my 770 and HE 2007.

free 2007-11-21 11:45

Re: xmms now available
 
Quote:

Originally Posted by frasej (Post 98013)
Will there be a point in time where I don't have to do LANG=C xmms, and just be able to launch it with xmms and still be able to see text in the menus?

Has been updated yesterday, the menu now contains the LANG=C stuff. Or did I do a mistake? humm.. SImply redownload the xmms .deb , check MD5 and install the deb (either by clicking on it or dpkg -i <deb> in xterm)
It's only in the menu. So anything that calls it directly will still need the LANG=C stuff.
Anyway, it looks like xmms is also taking other LC variables because I'm still able to see text in my native language even with the LANG. I'll investigate..
Quote:

btw: This is an excellent port. It has become my new favorite player. :p If only I could launch it from IDEA or Simple Launcher. :cool:
Yes, the result is excellent.
I've posted how I did it, it is quite straightforward.
For the maemo specific stuffs, I need to RTFM a bit.

free 2007-11-21 11:48

Re: xmms now available
 
Quote:

Originally Posted by yerga (Post 98026)
free, could you publish the dev xmms packages? So we could compile some plugin for it.

Sure.
I'm uploading it in a minute and updating the first post.

Tell me when they are available!! A pity we don't have opengl..

free 2007-11-21 12:00

Re: xmms now available
 
Like micro$oft would say
We are sorry but 770 and 2007HE are not supported.
:D



No, just kidding ;)

I need to have more information on this kernel.

Thanks!

edit:
Okay I didn't know 770 and 800 are not using the same processors. So I guess the error is a "real" Illegal Instruction. I need to get a bit in touch with some packagers to know how to handle this. I'm not really keen on making a 770 version for all of xmms dependencies..

linuxrebel 2007-11-21 22:44

Re: xmms now available
 
Free- Understand I'm just trying to give it a wide testing "base" is all. My n800 has more room for music after all. Most likely the binaries will need to be compiled on a different scratchbox to solve the problem. But what the heck it was a test.

linuxrebel 2007-11-21 23:12

Re: xmms now available
 
Ok, figured out something ... if you install the xvkb (another thread in the apps forum, about 3 threads before this one.) You can use it to input text into the config/etc files of XMMS.

free 2007-11-22 10:49

Re: xmms now available
 
Quote:

Originally Posted by linuxrebel (Post 98467)
Free- Understand I'm just trying to give it a wide testing "base" is all.

And that's why I thanked you because you tried it on the 770 and gave me feedback. I want it to run on all devices. It's a small program, doesn't require a big effort. At the moment I have a solution but it's not good enough. Probably this evening I'll give a version for the 770.

free 2007-11-22 17:23

Re: xmms now available
 
New packages available.
Tested on OS2007/n800.

Please try it on the 770.

Also n800 packages have been updated.
Changes:
More optimizations (still some missing). I have the feeling ogg is a bit quicker.. ??
Smaller packages (no man, no doc)

ps: -dev packages missing (although old one still present) as I think there were missing dependencies. Later, sorry.


Have fun!

BanditRider 2007-11-23 01:44

Re: xmms now available
 
On my 770 w/ 2007HE:
The user interface opens ok but playback of a 128kbps mp3 file plays for 2 - 3 seconds then the audio breaks up severely. CPU appears to be pegged. Controls are still responsive; I can stop and play or skip to the next track but after a few seconds it's all clicks and pops.

free 2007-11-23 09:40

Re: xmms now available
 
Thanks BanditRider.
Are you listening to electronic music? More than 200bpm is not supported :)

I would like to have at least another confirmation from somebody with the 770. 2007HE or 2006..

At the moment, I have no clue why this would happen. Could you try with ogg? But don't do anything else!! And no other window open (Ogg support is still very slow). Otherwise the result wouldn't be relevant. Also no wireless activated for testing! Don't breath also :)

I'll be out for the whole weekend.
Nice weekend to all.

BanditRider 2007-11-23 14:00

Re: xmms now available
 
I played with it some more on my 770. Ogg files act the same as mp3s.
I experimented with the eSound output plugin configuration buffer size and pre-buffer %.
The defaults are 3000ms and 25%. When I press play, it pauses for that percentage of the buffer size (in this case just over 1 second) then plays perfectly for that same amount of time then plays at half speed after that. I set the buffer to 10000ms (10s) and the pre-buffering to 100% and it pauses for 10 seconds then played perfect for about 15 seconds then it plays at half speed.
Nothing else running, no wifi, no desktop applets.
I even tried streaming an internet radio station but no luck there either.
It's a shame because xmms is my preferred media player on my Fedora 7 desktop PC.
Thanks for your effort.

BanditRider

linuxrebel 2007-11-24 08:53

Re: xmms now available
 
Latest version (I hope) on my n800 no problems, or rather, no new ones. My 770 won't be back until tomorrow will try then.

lardman 2007-11-24 10:31

Re: xmms now available
 
For the 770 your illegal instructions are the floating point instructions (which on the soft-float 770 should be compiled as function calls - this is done by default in the toolchain, just remove the "-mfpu=vfp -mfloat-abi=soft-float").

With regard to slow mp3 and ogg playback, are you using Tremor yet for ogg? Tremor (integer only) is faster than vorbis (floating point) even on the floating point-enabled N800, the soft-float 770 will certainly be very very slow having to simulate all those fp instructions. Same goes for mp3, are you using mad (integer only) or did you choose a floating point code?

Simon


All times are GMT. The time now is 04:06.

vBulletin® Version 3.8.8