[Pkg-mpd-maintainers] Bug#970444: Can't connect to httpd stream on MPD

James Klaas jklaas at appalachian.dyndns.org
Mon Sep 21 16:29:51 BST 2020


On Mon, 21 Sep 2020 16:04:31 +0200 kaliko <kaliko at azylum.org> wrote:
> Hi James
>
> Le 17/09/2020 à 16:52, James Klaas a écrit :
> >> Also, you need to start playing something for MPD to listen on the HTTPD port
> >
> > but I can't even get there. Unless something has changed the way I
> > start things up is to run
> >
> > mpc add http://192.168.47.122:8000
> > mpc play
>
> I'm confused here, I suppose 192.168.47.122 is your MPD server.
> Then you cannot ask it to play itself.

This would be from the remote host. I might have tried it on the main
server, but probably not. To test from the main server I'd use curl.

> Try something like that:
>
>     # Add some tracks
>     mpc listall | head | mpc add
>     # start playing
>     mpc play

OK, this worked. I don't remember having had to do that before, but it
could be that it's been so long since I've had to do that, that I just
don't remember.

> Now if the http output is configured and enabled, mpd should stream some audio on
> http://192.168.47.122:8000

Yes, it does now. Thank you. I knew it was something I was doing wrong
that was stupidly simple.

>
> You can use your browser to listen to the stream:
>
>     xdg-open http://192.168.47.122:8000
>
> > Here's my mpd.conf file:
> >
> > # An example configuration file for MPD.
> > # Read the user manual for documentation: http://www.musicpd.org/doc/user/
> > # or /usr/share/doc/mpd/user-manual.html
> > […]
>
> There is no audio_output defined in the conf you pasted!

This doesn't count?
-----------
audio_output {
	type		"httpd"
	name		"My HTTP Stream"
	encoder		"vorbis"		# optional, vorbis or lame
	port		"8000"
	bind_to_address "0.0.0.0"               # optional, IPv4 or IPv6
#	quality		"5.0"			# do not define if bitrate is defined
	bitrate		"128"			# do not define if quality is defined
	format		"44100:16:1"
	enabled		"yes"
#	max_clients     "0"                     # optional 0=no limit
}
-----------
>
> k.
>

Anyway, thank you very much for your help. This is solved for me now.

J



More information about the Pkg-mpd-maintainers mailing list