View unanswered posts | View active topics It is currently Fri May 24, 2013 2:21 pm



Reply to topic  [ 21 posts ]  Go to page 1, 2, 3  Next
 [HOWTO] Install MPD - Music Player Daemon 
Author Message

Joined: Mon Oct 19, 2009 10:55 am
Posts: 4
Post [HOWTO] Install MPD - Music Player Daemon
I've been doing a little bit of investigation into running MPD and managing it using MPoD for iPhone - with some success.

This is where I've got to.

Requirements:
Optware must be installed.

Steps:
1) Telnet to your PlayonHD

2) Install MPD and associated required packages. At the prompt:
Code:
ipkg install mpd

3) Install SQLite for the database side of MPD. At the prompt:
Code:
ipkg install sqlite

4) Navigate to /opt/etc

5) At the prompt
Code:
wget http://flaveur.googlecode.com/svn/trunk/ports/mpd/mpd.conf

This will get a sample mpd.conf file

6) At the prompt
Code:
vi mpd.conf

This will open mpd.conf for editing. Using vi commands - see http://www.lagmonster.org/docs/vi.html
This is the reference I used, http://mpd.wikia.com/wiki/Configuration
The things that need to be edited are:
    Music Directory: Needs to be where your music is installed, mine is set to the mounted hdd
    DB File: Mine is in the music directory on the mounted hdd
    Log File: Again in the music directory
    playlist_directory: I created a playlist directory under my music directory
    Port: default is 6600
    Audio Output: this is the main bit for actually transmitting the music. I have this running using the following:
    Code:
    audio_output {   
       type              "httpd"   
       name      "My HTTP Stream"   
       encoder      "lame"      # optional, vorbis or lame   
       port               "8000"   
    #   quality      "5.0"         # do not define if bitrate is defined   
       bitrate      "128"         # do not define if quality is defined   
       format      "44100:16:1"   
    }


8) Create MPD db using
Code:
/opt/bin/mpd --create-db /opt/etc/mpd.conf


9) Start MPD using
Code:
/opt/bin/mpd /opt/etc/mpd.conf


10) Install MPoD on your iPhone - its a free app from the app-store

11) Configure using the IP of your PlayonHD and the port you configured (6600)

12) Connect, you should be able to see your music and control it


This may not be perfect - I wrote it from memory...

Cheers,
Bugsy.


Tue Apr 20, 2010 3:19 am
Profile

Joined: Fri Jan 29, 2010 8:33 pm
Posts: 67
Location: Maarssen, The Netherlands
Post Re: [HOWTO] Install MPD - Music Player Daemon
Is there an option to use it for other mobile devices like Nokia N97?


Tue Apr 20, 2010 9:48 am
Profile

Joined: Mon Oct 19, 2009 10:55 am
Posts: 4
Post Re: [HOWTO] Install MPD - Music Player Daemon
If there's an application, then probably yes. I'm not sure. I think there is an Android app equivalent. There are a bunch of different clients listed here:
http://mpd.wikia.com/wiki/Clients

I'm sure it's not exhaustive.


Tue Apr 20, 2010 1:25 pm
Profile

Joined: Fri Jan 29, 2010 8:33 pm
Posts: 67
Location: Maarssen, The Netherlands
Post Re: [HOWTO] Install MPD - Music Player Daemon
digitalbugsy wrote:
If there's an application, then probably yes. I'm not sure. I think there is an Android app equivalent. There are a bunch of different clients listed here:
http://mpd.wikia.com/wiki/Clients

I'm sure it's not exhaustive.


I've found an S60 3th app but have to try it.


Tue Apr 20, 2010 1:48 pm
Profile

Joined: Thu May 13, 2010 9:50 pm
Posts: 4
Post Re: [HOWTO] Install MPD - Music Player Daemon
When I run ipkg install mpd I get an error.

ipkg install mpd
Installing mpd (0.15.9-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optwa ... mipsel.ipk
Nothing to be done
An error ocurred, return value: 22.
Collected errors:
ipkg_download: ERROR: Command failed with return value 3: `wget -q -P /opt/ipkg-7bUGG7 http://ipkg.nslu2-linux.org/feeds/optwa ... ipsel.ipk'
Failed to download mpd. Perhaps you need to run 'ipkg update'?

ipkg update gives the following error

Downloading http://ipkg.nslu2-linux.org/feeds/optwa ... ackages.gz
An error ocurred, return value: 1.
Collected errors:
ipkg_download: ERROR: Command failed with return value 3: `wget -q -P /opt/ipkg-NWc8Yw http://ipkg.nslu2-linux.org/feeds/optwa ... ckages.gz'

DNS settings are ok, I can ping http://www.google.com


What's wrong?


Thu May 13, 2010 10:00 pm
Profile

Joined: Thu May 13, 2010 9:50 pm
Posts: 4
Post Re: [HOWTO] Install MPD - Music Player Daemon
Ok... downgrade the FW and the install problem seems to be solved.
Next step is the configuration:
/opt/bin/mpd --create-db /opt/etc/mpd.conf works fine

when I try to start the app I get:
" Address already in use "

When I reconfig to a new port ie 8600 same result.

Can someone tell me what I do wrong?


Sun May 23, 2010 7:48 pm
Profile

Joined: Tue Aug 03, 2010 4:05 pm
Posts: 153
Post Re: [HOWTO] Install MPD - Music Player Daemon
Ok, installed everything on version 4318 and trying to add network path in mpd.conf but for some reason it fails.

I'm no linux expert so bare with me.


/tmp/hdd/root/opt/etc # /opt/bin/mpd --create-db /opt/etc/mpd.conf
log: problem opening log file "/tmp/hdd/volumes/HDD1/mpd" (config line 7) for writing
Aborted (core dumped)
/tmp/hdd/root/opt/etc #

_________________
Wired Playon!HD C+ | 1TB HDD | f/w - r4138


Sun Aug 08, 2010 10:19 pm
Profile

Joined: Tue Aug 03, 2010 4:05 pm
Posts: 153
Post Re: [HOWTO] Install MPD - Music Player Daemon
god3 wrote:
Ok... downgrade the FW and the install problem seems to be solved.
Next step is the configuration:
/opt/bin/mpd --create-db /opt/etc/mpd.conf works fine

when I try to start the app I get:
" Address already in use "

When I reconfig to a new port ie 8600 same result.

Can someone tell me what I do wrong?

Change 127.0.0.1 to the IP the POHD has in mpd.conf

Problem i have now is that it's connected and playing but don't have sound :(

This is how a HDX config looks like:


audio_output {
type "smp86xx"
load "plugins/smp86xx_plugin.so"
name "My Sigma Chip"
engine "0" # optional
decoder "1" # optional
ramdac "1" # optional
line_count "2048" # optional
fifo_us "500000" # optional
hdmi "sii9134"
mixer_type "software"
# mixer_type "hardware"
}


Maybe some mod or dev can help with this ?

_________________
Wired Playon!HD C+ | 1TB HDD | f/w - r4138


Fri Aug 13, 2010 9:39 pm
Profile

Joined: Sat Aug 21, 2010 2:56 pm
Posts: 1
Post Re: [HOWTO] Install MPD - Music Player Daemon
Any chance to have mpd play music through the SPDIF or on the HDMI cable?


Mon Aug 30, 2010 2:03 pm
Profile

Joined: Wed Oct 14, 2009 9:42 pm
Posts: 42
Post Re: [HOWTO] Install MPD - Music Player Daemon
Hi There,

Is this thread still active? Would be nice to have better control over my music collection on the POHD!

I'm having trouble configuring mpd.conf. Whatever address is give the "bind_to_adress", I always get the error message: "address already in use". What should be the right setting?

Firmware: 4318
Static IP POHD: 192.168.2.190
listen port: 6600

Thanks in advance.


Wed Oct 20, 2010 7:35 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 21 posts ]  Go to page 1, 2, 3  Next

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by: phpBB | Innitial forum Design by: STSoftware | Modified by: AC Ryan.