Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.
Buying anything on Amazon? Please use the Geekzone Amazon aff link.




2086 posts

Uber Geek
+1 received by user: 356

Subscriber

Topic # 112685 17-Dec-2012 14:43 Send private message

Hi all,
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.

Create new topic

This is a filtered page: currently showing replies marked as answers. Click here to see full discussion.

1351 posts

Uber Geek
+1 received by user: 189

Trusted

  Reply # 733628 17-Dec-2012 14:47 Send private message

How are you testing this?

What client are you connecting to port 8081? VLC or something?

Also - have you checked the volume is set properly?  If you have mpc installed, issue a "mpc volume 100"

Tim

Edit: If it's easier, join #geekzone and I'll try and help in "realtime"

Edit2: Just realised that MPDroid itself is the streaming client - sorry.  I use a different MPD client on my phone and it doesn't do this :)

Anyway, looks like you might be hitting this bug - the fix is to use mp3 not ogg.

Create new topic




Twitter »
Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





Trending now »

Hot discussions in our forums right now:

Netflix officialy launching in NZ in March
Created by jarj, last reply by tdgeek on 21-Nov-2014 19:08 (97 replies)
Pages... 5 6 7


Gull Employment Dispute.
Created by networkn, last reply by richms on 23-Nov-2014 23:05 (71 replies)
Pages... 3 4 5


Which one is right for me? M8, Z3, S5 or other?
Created by makiomoto, last reply by makiomoto on 20-Nov-2014 13:52 (40 replies)
Pages... 2 3


Free 1gb data with $19 combo until end of Jan 2015 (1.5gb total)
Created by eXDee, last reply by Shoes2468 on 23-Nov-2014 23:01 (16 replies)
Pages... 2


Slingshot line speed
Created by Frankiej45, last reply by Frankiej45 on 20-Nov-2014 14:38 (14 replies)

Little Wins labour Leadership
Created by MikeAqua, last reply by Aredwood on 21-Nov-2014 18:47 (53 replies)
Pages... 2 3 4


Orcon: Why did you cancel my email account without telling me??
Created by old3eyes, last reply by old3eyes on 21-Nov-2014 17:03 (13 replies)

My connection is too fast
Created by ckc, last reply by Geektastic on 20-Nov-2014 11:30 (25 replies)
Pages... 2



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.

Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.