OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> For Those Looking For An Audio Player, Try glurp and mpd
JohnX
post Dec 20 2005, 02:57 AM
Post #1





Group: Members
Posts: 126
Joined: 4-May 05
From: Lynnwood, WA, US
Member No.: 7,070



I was poking around the openembedded build environment when I ran across musicpd. Musicpd is a music playing daemon that can be controlled from a front end that connects to it over a network connection. GMPC and Glurp are two Gtk front ends to this daemon that as of 12/19/2005 build with no errors out of the OE dev tree. The memory requirements are impressively low, especially without a front end running (music continues to play when the front end is closed). MP3s and OGGs play fine (though OGGs take 60% - 80% CPU time!). Theoretically it should support AACs and FLACs but I haven't tried either. Glurp has an interface that I find is a nice match to the 640x480 resolution that my C1000 does. Anyways, down to the important part, how to make it work. biggrin.gif
I attached the packages that I built. They're for the C1000 so they should work fine on the 5600 and up IIRC, but the interface seems to have a resolution of at least 640x480 in mind. If they depend on things not in the default GPE feeds, you might try looking in one of these two feeds:
CODE
http://naismith.sakura.ne.jp/feed/
http://ewi546.ewi.utwente.nl/sfeed/

If the dependencies aren't there tell me what it asks for and I'll try and post that package as well. If it just complains about a minor version mismatch it's probably fine to -force-depends. Also attached is a sample configuration file, mpd.conf. I added an mpd user, added him to the audio group and chown'ed /dev/dsp and /dev/mixer to be root.audio. You could of course make them world writable if you wanted to. I didn't want log files to be written to flash, so I pointed thos at /var/log. Because of permissions the user mpd won't be able to write there by default. You can either make a /var/log/mpd subdirectory or do like I did and touch the two log files and chown them to mpd.mpd before starting mpd. GMPC comes with a desktop icon. Glurp does not. I included the one that I hacked up for Glurp. It uses the same icon that GMPC does because I couldn't be bothered to search for anything more suitable. You should change the music and playlist directories in mpd.conf to point someplace more suitable for your install.

Warning: Use these at your own risk! They are barely tested! All I can say is they work for me.

-John
Attached File(s)
Attached File  glurp_0.11.6_r0_armv5te.ipk ( 55.27K ) Number of downloads: 66
Attached File  mpc_0.11.2_r0_armv5te.ipk ( 23.61K ) Number of downloads: 59
Attached File  libao2_0.8.6_r0_armv5te.ipk ( 11.18K ) Number of downloads: 60
Attached File  gmpc_0.11.2_r1_armv5te.ipk ( 85.88K ) Number of downloads: 58
Attached File  glurp.desktop.txt ( 251bytes ) Number of downloads: 43
Attached File  ncmpc_0.11.1_r0_armv5te.ipk ( 41.19K ) Number of downloads: 59
Attached File  mpd_0.11.5_r5_armv5te.ipk ( 75.78K ) Number of downloads: 66
 
Go to the top of the page
 
+Quote Post
grog
post Mar 6 2006, 12:58 PM
Post #2





Group: Members
Posts: 692
Joined: 27-January 04
From: Canada
Member No.: 1,564



Hi John. Thanks for the pointer from this topic. I do get one error though:

CODE
Installing mpd (0.11.5-r5) to home...
Nothing to be done
An error ocurred, return value: 1.
Collected errors:
ERROR: Cannot satisfy the following dependencies for mpd:
        libflac4 (>= 1.1.0)

There's no libflac4 in the test5 feed. I did find it at ipkgfind, but I've never had too much luck using packages from there, so I figured I ask first. thks
Go to the top of the page
 
+Quote Post
JohnX
post Mar 6 2006, 06:16 PM
Post #3





Group: Members
Posts: 126
Joined: 4-May 05
From: Lynnwood, WA, US
Member No.: 7,070



Here's a libflac4 ipk. It was compiled at a different time as the other ipk's and hence against different library versions. If it doesn't work out I'll take down the other mpd/glurp ipks and re-upload a whole new set with matching versions.
Attached File(s)
Attached File  libflac4_1.1.0_r4_armv5te.ipk ( 97.51K ) Number of downloads: 44
 
Go to the top of the page
 
+Quote Post
grog
post Mar 7 2006, 12:45 PM
Post #4





Group: Members
Posts: 692
Joined: 27-January 04
From: Canada
Member No.: 1,564



QUOTE(JohnX @ Mar 6 2006, 08:16 PM)
Here's a libflac4 ipk.  It was compiled at a different time as the other ipk's and hence against different library versions.  If it doesn't work out I'll take down the other mpd/glurp ipks and re-upload a whole new set with matching versions.
*
Thanks, got it. Seems to be ok, but couldn't find the mpd.conf you mentioned. Was that suppoed to be separate? And where should it go once I get it, /etc? thks
Go to the top of the page
 
+Quote Post
JohnX
post Mar 7 2006, 06:39 PM
Post #5





Group: Members
Posts: 126
Joined: 4-May 05
From: Lynnwood, WA, US
Member No.: 7,070



Oops. What I meant is that you need to *make* your own mpd.conf based on documentation on the musicpd.org website. And yes it goes in /etc. I'll post mine here as an example, but you'll need to change some thing to make it work right on your Zaurus.
CODE
# see the mpd(1) manpage for all config options
# This is the default configfeel free to edit this file

# required
playlist_directory "/media/sd/john/playlists"    
music_directory    "/media/sd/john/music"
port               "6600"
log_file           "/home/mpd/mpd.log"
error_file         "/home/mpd/mpd.err"

# optional, but HIGHLY RECOMMENDED
db_file            "/home/mpd/mpddb"
user               "mpd"

# optional, but recommended
state_file         "/home/mpd/state"


In this case I've created the user "mpd" but you can probably have mpd run as your user and that might make more sense anyways. Also, be sure to point music_directory and playlist_directory at the places where your music and playlists are. It handles subfolders fine so no need to list them separately. You don't need to worry about keeping the log files on flash since barely anything gets written to them, but if you're paranoid you can stick them in /var or /tmp. After that start mpd as root (from a console) then run the front end you've selected.

-John
Go to the top of the page
 
+Quote Post
grog
post Mar 8 2006, 10:34 AM
Post #6





Group: Members
Posts: 692
Joined: 27-January 04
From: Canada
Member No.: 1,564



QUOTE(JohnX @ Mar 7 2006, 08:39 PM)
Oops.  What I meant is that you need to *make* your own mpd.conf based on documentation on the musicpd.org website.
*

What, you mean I have to RTFM!! geez, you ask a lot!! smile.gif

All up & working now. I put my settings in my user's ~/.mpdconf & all of the logs & db in ~/.mpd/. I didn't think I'd like it at first, but after playing with it for a bit it's kinda cool. Especially with the state file (if it get's killed) & being able to control it with mpc on the command line, I think I could get used to this.

Have you tried to get this into the gpe feeds? I have no idea how to go about that. Thanks for the find.
Go to the top of the page
 
+Quote Post
JohnX
post Mar 8 2006, 12:02 PM
Post #7





Group: Members
Posts: 126
Joined: 4-May 05
From: Lynnwood, WA, US
Member No.: 7,070



Good to hear you got it sorted out. Now, here's the cool thing: It's already in OE (which is what OZ/GPE is built from) so getting it into a GPE feed is just a matter of asking whoever built that feed to add it. Also, through all the fun surprises of following the .dev version of OE this is one of the packages that has never been a problem to compile. I really think glurp + mpd is just about the best music playing solution for GPE right now. There might be more fully featured players but often (always?) you pay for those features in lots of dependencies and heavy RAM/CPU usage. Plus, if you feel really stingy about resources you can start playing some music, then just close the front end you're using. ph34r.gif
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 25th December 2014 - 09:53 PM