Jump to content


Photo

Installing Mpd


  • Please log in to reply
9 replies to this topic

#1 atomicthumbs

atomicthumbs

    I am the king of the collectors, with hospital bed a throne.

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 2701 posts
  • Gender:Male
  • Location:XK-Masada
  • Interests:Copper, a superconductor

Posted 20 June 2010 - 03:12 AM

 Installing MPD (Music Player Daemon, a music player taking the form of a server and a client) from the Angstrom repo is a bit troublesome, as it requires libvorbis, which is apparently in the firmware but not as a package:

Installing libvorbis (1.2.0-2.5) to root...
Downloading http://www.angstrom-distribution.org/feeds/unstable/ipk/glibc/armv7a/base/libvorbis_1.2.0-2.5_armv7a.ipk.
Collected errors:
 * check_data_file_clashes: Package libvorbis wants to install file /usr/lib/libvorbisenc.so.2
        But that file is already provided by package  * check_data_file_clashes: libvorbis0
 * check_data_file_clashes: Package libvorbis wants to install file /usr/lib/libvorbisfile.so.3
        But that file is already provided by package  * check_data_file_clashes: libvorbis0
 * check_data_file_clashes: Package libvorbis wants to install file /usr/lib/libvorbis.so.0
        But that file is already provided by package  * check_data_file_clashes: libvorbis0
 * opkg_install_cmd: Cannot install package libvorbis.

Installing all the dependencies except libvorbis worked:

sudo opkg install libgcc1 libstdc++6 libgthread-2.0-0 libsamplerate0 libpulse0 libpulse-simple0 libasound2 libao2 libmad0 libaudiofile0 libflac8 libogg0 libz1 libid3tag0 libsqlite3-0 libfaad0 libglib-2.0-0 libavahi-glib1 libavahi-client3 libavahi-common3 libc6 update-rc.d libmp3lame0


then install mpd without dependancies

sudo opkg install mpd --nodeps

now sudo edit /etc/mpd.conf and change the lines for all the log files, etc. to things on the SD card (/media/mmcblk0p1/whatnot for SD card 1). Choose music and playlist directory.

now somehow install your frontend of choice. still working on this, so haven't actually tried functionality yet.

Edited by atomicthumbs, 20 June 2010 - 08:26 AM.


#2 atomicthumbs

atomicthumbs

    I am the king of the collectors, with hospital bed a throne.

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 2701 posts
  • Gender:Male
  • Location:XK-Masada
  • Interests:Copper, a superconductor

Posted 20 June 2010 - 03:51 AM

Angstrom repos have an MPD frontend which works very well: gmpc.

MPC and GMPC are much faster and more pleasant to use than Exaile. MPD is around 7% CPU and stays at 2.2% memory; ~1.1% CPU and 6.2% memory for the frontend. Exaile takes forever to start, search, and load a file, and with the same file/playlists takes ~20% CPU and ~15% memory.

There's also a console, ncurses-based MPD frontend, mpc, in the Angstrom repo. Installed, but haven't tested it.

Edit: Note that the music will keep playing if you shut the frontend without stopping playback first.



Edited by atomicthumbs, 20 June 2010 - 03:52 AM.


#3 Pleng

Pleng

    Mega GP Mania

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 2944 posts

Posted 20 June 2010 - 07:13 AM

I'm guessing from the content of your second post that MPD is some kind of music player?

It might help if in "Installing..." threads, he poster begins with a short paragraph (just a couple of sentences) explaining what the app does, and why users might want to install it.

#4 SomeGuy99

SomeGuy99

    :)

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 2186 posts
  • Gender:Male
  • Location::|
  • Interests::D
    :/

Posted 20 June 2010 - 06:16 PM

I'm using Orpheus, compiled from source.

Random screenshot from Google Images:
Posted Image

Greek mythology FTMFW.

Edited by SomeGuy99, 20 June 2010 - 06:17 PM.


#5 Stuckie

Stuckie

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 432 posts
  • Gender:Male
  • Location:Tired, and sleeping in the basement...

Posted 20 June 2010 - 06:23 PM

Somehow, it never twigged to get MPD running on the Pandora, when I use it on my server for streaming around the place.

If no-one's PNDified it yet, I'll do it in a bit.

#6 Kimundi

Kimundi

    GP32 User

  • Members
  • PipPipPip
  • 86 posts

Posted 20 June 2010 - 09:26 PM

Just wanted to add that I also got mpd+gmpc sucscesfully running on my Pandora, but I installed by be simply doing a
sudo opkg --force-overwrite install mpd
which simply overwrites the non-packaged vorbis libs with the packaged.
I dont know wheter that was a good idea or not, but so far it seems to work :P

#7 atomicthumbs

atomicthumbs

    I am the king of the collectors, with hospital bed a throne.

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 2701 posts
  • Gender:Male
  • Location:XK-Masada
  • Interests:Copper, a superconductor

Posted 20 June 2010 - 10:16 PM

mpd still plays fine, with gmpc open, at 175 mhz

#8 Stuckie

Stuckie

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 432 posts
  • Gender:Male
  • Location:Tired, and sleeping in the basement...

Posted 20 June 2010 - 11:46 PM

heh, here was me thinking this would be a quick one too..

MPD itself seems easy enough to deal with.. it's MPC and GMPC which are buggers - GMPC in particular as it stashes stuff all over /usr/share.
MPC doesn't seem to do anything much if it's not installed properly.. seems to just hang for some reason.. it probably has a hard coded path to look for mpd.conf.
GMPC want's it's layout stuff stored in /usr/share/gmpc.

I could do an AUFS hack, a symlink hack ( like my original GIMP PND, which was a bit unclean ) or recompile everything from source and "do it properly."
I'm leaning towards the AUFS hack with the creation of the /usr/share/gmpc folder on NAND to bind to, as this way I can cleanly unbind it when the program closes, so I'll probably do this first and stick it in beta testing, then "do it properly" when I have the time ( or if someone else feels like it, they can step in. )

That sound fair?
Course, someone else is more than welcome to do it instead of me :)

[edit]
Quick hacky PND up in Beta Testing: http://www.gp32x.com/board/index.php?/topic/54614-gmpc/page__view__getnewpost
Curiously, I didn't have any issues with vorbis... which worries me somewhat!
[/edit]

Edited by Stuckie, 21 June 2010 - 08:17 PM.


#9 Alibobar

Alibobar

    GP32 User

  • Members
  • PipPipPip
  • 84 posts
  • Gender:Male
  • Location:The Netherlands
  • Interests:MultiMedia

Posted 25 June 2010 - 12:13 PM

Wewt, MPD with NCMPCPP (c++ n-curses rework) FTMFW \o/
I always use it on my server for streaming (and play locally) too. I'm not sure how it would feel on a handheld, but I'm ready to try asap :D

The problem will probably be with removable drives as MPD keeps a fixed db for it's media. Refreshing your db every time you change disks would suck.
I'm really looking forward for all the minimal mp3-solutions that will emerge for the pandy. I'm not a fan of gui's (non-cmd-line) for music-playing (although I was amazed when I found amarok a few years back).

Edited by Alibobar, 25 June 2010 - 12:15 PM.


#10 mindlord

mindlord

    Notices Two Things

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 1346 posts
  • Gender:Male
  • Location:In a cave.
  • Interests:Sharp Pointy Objects, and World Domination

Posted 25 June 2010 - 12:55 PM

I've always found sonata to be a most agreeable fronted to MPD, very small, unobtrusive, and somewhat foobar2000-like. It's probably just a short compile away.


edit: linky

Edited by mindlord, 25 June 2010 - 12:55 PM.