Windows MPD to Icecast

Need help with MPD?

Windows MPD to Icecast

Postby ReefSmacker » September 11th, 2017, 6:30 am

Hi,

I've been trying to get a simple test of windows MPD with output to a windows Icecast server on the same machine. Pretty much default everywhere.

I'm using the latest MPD for windows and the --version shows the "shout" output plugin is not supported.
Where can I get a copy of windows MPD that does support the shout output plugin.

Many thanks

Startup Error
D:\MPD>mpd mpd.conf
Sep 11 16:29 : exception: Failed to configure output in line 5
Sep 11 16:29 : exception: nested: No such audio output plugin: shout

D:\MPD>

--Version
D:\MPD>mpd --version
Music Player Daemon 0.20.10 (v0.20.9-17-gcc76aeb7bb-dirty)

Copyright (C) 2003-2007 Warren Dukes <warren.dukes@gmail.com>
Copyright 2008-2017 Max Kellermann <max.kellermann@gmail.com>
This is free software; see the source for copying conditions. There is NO
warranty; not even MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Database plugins:
simple

Storage plugins:
local

Decoders plugins:
[vorbis] ogg oga
[oggflac] ogg oga
[flac] flac
[opus] opus ogg oga
[dsdiff] dff
[dsf] dsf
[ffmpeg] 16sv 3g2 3gp 4xm 8svx aa3 aac ac3 adx afc aif aifc aiff al alaw amr anim apc ape asf atrac au aud avi avm2 avs bap bfi c93 cak cin cmv cpk daud dct divx dts dv dvd dxa eac3 film flac flc fli fll flx flv g726 gsm gxf iss m1v m2v m2t m2ts m4a m4b m4v mad mj2 mjpeg mjpg mka mkv mlp mm mmf mov mp+ mp1 mp2 mp3 mp4 mpc mpeg mpg mpga mpp mpu mve mvi mxf nc nsv nut nuv oga ogm ogv ogx oma ogg omg opus psp pva qcp qt r3d ra ram rl2 rm rmvb roq rpl rvc shn smk snd sol son spx str swf tak tgi tgq tgv thp ts tsp tta xa xvid uv uv2 vb vid vob voc vp6 vmd wav webm wma wmv wsaud wsvga wv wve
[pcm]

Filters:


Tag plugins:
id3tag

Output plugins:
null httpd recorder winmm

Encoder plugins:
null vorbis opus lame wave flac

Input plugins:
file curl ffmpeg

Playlist plugins:
extm3u m3u pls flac cue embcue

Protocols:
http:// https:// gopher:// rtp:// rtsp:// rtmp:// rtmpt:// rtmps://

Other features:
tcp

D:\MPD>

MPD.Conf
music_directory "C:/Users/E157030/Music"
log_file "D:/mpd/mpd.log"
db_file "D:/mpd/mpd.db"
playlist_directory "D:/mpd/playlists"
audio_output {
type "shout"
encoding "ogg"
name "my cool stream"
host "localhost"
port "8000"
mount "/mpd.ogg"

# This is the source password in icecast.xml
password "hackme"

# Set either quality or bit rate
# quality "5.0"
bitrate "64"

format "44100:16:1"

# Optional Parameters
user "source"
# description "here is my long description"
# genre "jazz"
} # end of audio_output

# Need this so that mpd still works if icecast is not running
audio_output {
type "null"
name "fake out"
}
ReefSmacker
 
Posts: 4
Joined: September 11th, 2017, 5:56 am

Re: Windows MPD to Icecast

Postby max » September 11th, 2017, 10:46 am

MPD uses libshout to connect to Icecast, but libshout fails to compile on Windows. It uses Linux-specific headers. That's bad code. There's no simple solution, and libshout needs to be ported to Windows before I can help you.
max
Forum team
 
Posts: 590
Joined: January 15th, 2013, 3:43 pm

Re: Windows MPD to Icecast

Postby ReefSmacker » September 12th, 2017, 4:31 am

Max,

Thanks for the quick reply.
This is disappointing information. :(
ReefSmacker
 
Posts: 4
Joined: September 11th, 2017, 5:56 am

Re: Windows MPD to Icecast

Postby ReefSmacker » September 18th, 2017, 1:34 am

Hi Max,

I found a bit of time and compiled libshout-2.4.1 using VS2008. There were a few warnings but nothing too serious.
Attached is a win32 release build of libshout.lib. Is there any chance you could try to build a win32 MPD that supports libshout? I don't have that environment available.

I have not tested the library so I don't know how successful it will be, but it might work.
It is built as 32bit as it relies on oggvorbis-win32sdk-1.0.1

Cheers
Matt
Attachments
libshout.rar
libshout-2.4.1
(29.55 KiB) Not downloaded yet
ReefSmacker
 
Posts: 4
Joined: September 11th, 2017, 5:56 am

Re: Windows MPD to Icecast

Postby max » September 18th, 2017, 7:57 am

I'm completely uninterested in binary builds. If I ship MPD with something, it must be built from source during MPD's build. Everything must be reproducible.
max
Forum team
 
Posts: 590
Joined: January 15th, 2013, 3:43 pm

Re: Windows MPD to Icecast

Postby ReefSmacker » September 18th, 2017, 8:35 pm

Ok, Fair enough.
ReefSmacker
 
Posts: 4
Joined: September 11th, 2017, 5:56 am


Return to Help

Who is online

Users browsing this forum: No registered users and 1 guest