I am just having a bit of a play with MPD trying to set up an internet radio type thing.
I have debian "squeeze" running on a test box with a local hard drive with a bit of music on it (for simplicity). MPD is running and plays music out the stereo jack.
Next step was set up an http stream. So I set that up an it seemed to be all going well. Using mpdroid on my phone I can connect to the stream, play, pause, next etc. But there is no audio - yet i know the server is playing it because it is coming out of the stereo jack.
From what I have read I think it is the network configuration on the box that is causing issues. It is just getting an address by DHCP so in /etc/hosts I simply have:
127.0.0.1 radiohost.localdomain radiohost
In /etc/mpd.conf there is the 'bind_to_address" variable. I have that as the following:
bind_to_address "192.168.1.25"
The address is statically mapped on the router so I know it will always be the same. When i set bind_to_address as 127.0.0.1 mpdroid can't connect to it.
Oh and the http stream config in mpd.conf is like this:
audio_output {
type "httpd"
name "My HTTP Stream"
# encoder "vorbis" # optional, vorbis or lame
port "8081"
quality "5.0"
# bitrate "128"
format "44100:16:1"
}
I just don't understand Linux enough to figure out what is going on. The log in mpd doesn't tell much in terms of what is going on. You can see all the commands that come from mpdroid so it is obviously communicating fine. Just the audio isn't getting through.
I would like to eventually migrate this to my freenas box and then use a Raspberry Pi as a client so I can pump audio straight in to the home audio system. At the moment I have to do it via xbmc which is just a bit annoying.
Any help much appreciated.