Inside Out

Thinking out of the BoX !!

MPD : Command Line MP3 Player

with 3 comments

Here comes the next article in Command Line series. In the last article i had talked about a CLI (Command Line Interface) based Instant Messaging client. So lets move on to mp3’s with Music Player Daemon…

Why Music Player Daemon ?

  • Supports widely used audio file formats (MP3, Ogg Vorbis, FLAC, AAC, MOD, Wav)
  • Music Player Daemon (MPD) is a mp3 player based on the client server architecture which will let you control the music you play from another computer over a LAN or with a web browser or using graphical client or console based client in the same computer. The full list of available clients is here
  • There is support for Audioscrobbler which you can get through addons (MPDScribble or scmpc or lastfmsubmitd)
  • Low memory footprint and it should be faster as it creates a database of songs rather than reading from the Filesystem.

For SuSE the packages are available from the Packman repositories. Here are the direct links to the rpm’s :

Music Player Daemon
Music Player Client for CLI (MPC)

If you are a Last.fm fan, there are several addons for mpd which will submit your songs to last.fm : MPDScribble or scmpc or lastfmsubmitd
After lots of struggle in compiling the above mentioned last.fm related addons i decided to stay with MPDScribble (When i tried to build each of them from source i got some really cool errors like : libsoup2.2 existing in my system and still ./configure reports i don’t have the library !!@#) Well to end my misery i got a nice MPDScrobble rpm :D Get the rpm here (its a bit old though version 0.2.7 ; latest is 0.2.10)

To setup MPDScribble first create a directory
mkdir ~/.mpdscribble

Now create the configuration file : ~/.mpdscribble/mpdscribble.conf with the following parameters
username = "lastfm_username"
password = "md5sum of lastfm password"

To get the md5sum of your password :
echo -n "your_lastfm_password" | md5sum > some_file

Now copy the contents of some_file to the password field in ~/.mpdscrobble/mpdscrobble.conf. That should set you with a nice commandline based mp3 player with audioscrobbler support :)

technorati tags:, , , , , , , , , ,

Written by arun

July 13, 2006 at 1:09 am

Posted in How Tos, SuSE

3 Responses

Subscribe to comments with RSS.

  1. I’m now running mpdscribble 0.2.10. Lucky me I’ve managed to install it smoothly. Need to install libsoup and libsoup-devel (betcha didn’t install this devel one :p). I’m running it, yet I don;t know what it’s curently processing :D . NO output or whatsoever.

    Actually I was about to isntall scmpc which seems to be a bit advance with its multithreading and daemon mode. But I’m stuck at installing libconfuse which is appratenly confusing. isntalled but cannot be found by the configure script. I geuss there’e something wrong in my libconfuse instalation (installed via source with –enable-shared flag)

    Okay, better check my last.fm page to see what mpdscribble has done so far ^^

    toni

    July 25, 2006 at 7:45 am

  2. While building scmpc..i was stuck in libcurl(it was installed but there was no libcurl.pc in /usr/lib/pkgconfig and i tried writing my own libcurl.pc !! but it din’t work)
    mpdscribble works great though :) You may check what its doing by just looking over its .cache and .log files in the directory ~/.mpdscribble/mpdscribble.cache and ~/.mpdscribble/mpdscribble.log

    arun

    July 25, 2006 at 9:02 am

  3. I noticed that confuse wants to put everything in /usr/local. Since I’m running archlinux, where the default is /usr, I needed to do a ./configure –prefix=/usr to get the files in the right spots (pkgconfig only looks in /usr/lib/pkgconfig). After that scmpc compiles just fine.

    ballon

    March 18, 2007 at 7:59 pm


Leave a Reply