MusicPlayerDaemon / MPD

Music Player Daemon
https://www.musicpd.org/
GNU General Public License v2.0
2.16k stars 346 forks source link

httpd doesnt work anymore - mpd 0.22.6 - debian 11 #1837

Closed seancmalloy closed 1 year ago

seancmalloy commented 1 year ago

Issue

when httpd output is enabled specified port is not opened and stream doesn't start. this once worked, not sure when it stopped.

Steps to resolve

compiled the latest (0.24) purged and installed with apt (0.22.6) tried different bind addresses (mpd) tried with and without bind address (httpd) tried different ports (mpd) disabled socket service

Version

Music Player Daemon 0.22.6 (0.22.6) Copyright 2003-2007 Warren Dukes warren.dukes@gmail.com Copyright 2008-2018 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 proxy upnp

Storage plugins: local smbclient udisks nfs curl

Neighbor plugins: smbclient upnp udisks

Decoders plugins: [mad] mp3 mp2 [mpg123] mp3 [vorbis] ogg oga [oggflac] ogg oga [flac] flac [opus] opus ogg oga [sndfile] wav aiff aif au snd paf iff svx sf voc w64 pvf xi htk caf sd2 [audiofile] wav au aiff aif [dsdiff] dff [dsf] dsf [hybrid_dsd] m4a [faad] aac [mpcdec] mpc [wavpack] wv [modplug] 669 amf ams dbm dfm dsm far it med mdl mod mtm mt2 okt s3m stm ult umx xm [mikmod] amf dsm far gdm imf it med mod mtm s3m stm stx ult uni xm [sidplay] sid mus str prg P00 [wildmidi] mid [fluidsynth] mid [adplug] amd d00 hsc laa rad raw sa2 [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 rtp:// rtsp:// rtsps:// [gme] ay gbs gym hes kss nsf nsfe sap spc vgm vgz [pcm]

Filters: libsamplerate soxr

Tag plugins: id3tag

Output plugins: shout null fifo sndio pipe alsa ao oss openal pulse jack httpd recorder

Encoder plugins: null vorbis opus lame wave flac

Archive plugins: [bz2] bz2 [zzip] zip [iso] iso

Input plugins: file io_uring archive alsa tidal qobuz curl ffmpeg smbclient nfs mms cdio_paranoia

Playlist plugins: extm3u m3u pls xspf asx rss soundcloud flac cue embcue

Protocols: file:// alsa:// cdda:// ftp:// ftps:// gopher:// hls+http:// hls+https:// http:// https:// mms:// mmsh:// mmst:// mmsu:// nfs:// qobuz:// rtmp:// rtmps:// rtmpt:// rtmpts:// rtp:// rtsp:// rtsps:// scp:// sftp:// smb:// srtp:// tidal://

Other features: avahi dbus udisks epoll icu inotify ipv6 systemd tcp un

Configuration

music_directory "/var/lib/mpd/music" playlist_directory "/var/lib/mpd/playlists" log_file "/var/log/mpd/mpd.log" pid_file "/run/mpd/pid" state_file "/var/lib/mpd/state" sticker_file "/var/lib/mpd/sticker.sql"

user "mpd" group "audio"

bind_to_address "0.0.0.0" port "6600"

log_level "verbose"

metadata_to_use "AlbumArtist,Artist,Album,Title,Track,Disc,Genre,Name" auto_update "yes"

follow_outside_symlinks "yes" follow_inside_symlinks "yes"

zeroconf_enabled "yes" zeroconf_name "Music Player @ RASPBIAN"

database { plugin "simple" path "/var/lib/mpd/tag_cache" cache_directory "/var/lib/mpd/cache" }

audio_output { type "shout" encoder "lame"
name "My Shout Stream" host "0.0.0.0" port "8000" mount "/live" password "#########" bitrate "128" format "44100:16:1" }

audio_output { type "httpd" name "mpd http" encoder "lame"
port "6601" bind_to_address "0.0.0.0"
bitrate "128"
format "44100:16:1" max_clients "0"
}

neighbors { plugin "udisks" } neighbors { plugin "upnp" }

Log

dont see any reference to httpd in log

MaxKellermann commented 1 year ago

Version too old, unsupported.

seancmalloy commented 1 year ago

ok. ill compile the latest and get back. thnx

seancmalloy commented 1 year ago

New install - same problem, httpd doesn't work

Music Player Daemon 0.24 (v0.23.13-771-g9c19368fc+) Copyright 2003-2007 Warren Dukes warren.dukes@gmail.com Copyright 2008-2021 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 proxy upnp

Storage plugins: local udisks nfs curl

Neighbor plugins: upnp udisks

Decoders plugins: [mad] mp3 mp2 [mpg123] mp3 [vorbis] ogg oga [oggflac] ogg oga [flac] flac [opus] opus ogg oga [sndfile] wav aiff aif au snd paf iff svx sf voc w64 pvf xi htk caf sd2 [audiofile] wav au aiff aif [dsdiff] dff [dsf] dsf [faad] aac [mpcdec] mpc [wavpack] wv [modplug] 669 amf ams dbm dfm dsm far it med mdl mod mtm mt2 okt s3m stm ult umx xm [mikmod] amf dsm far gdm imf it med mod mtm s3m stm stx ult uni xm [sidplay] sid mus str prg P00 [wildmidi] mid [fluidsynth] mid [adplug] amd d00 hsc laa rad raw sa2 [gme] ay gbs gym hes kss nsf nsfe rsn sap spc vgm vgz [ffmpeg] 264 265 302 3g2 3gp 4xm 669 722 aa aa3 aac ac3 acm act adf adp ads adx aea afc aiff aix al alias_pix alp amf amr amrnb amrwb ams anm ans apc ape apl apm apng aptx aptxhd aqt argo_asf art asc asf asf_o ass ast au avc avi avr avs avs2 bcstm bethsoftvid bfi bfstm bin bink bit bmp_pipe bmv boa brender_pix brstm c2 c93 caf cavsvideo cdata cdg cdxl cgi cif cine codec2raw concat dash data daud dav dbm dds_pipe dfa dff dif digi dirac diz dmf dnxhd dpx_pipe dsf dsicin dsm dss dst dtk dtm dts dtshd dv dvbsub dvbtxt dxa ea eac3 exr_pipe f32be f32le f4v f64be f64le fap far ffmetadata film_cpk fits flac flic flm flv frm fsb fwse g722 g723_1 g726 g726le g729 gdm gdv genh gif gif_pipe gsm gxf h261 h263 h264 h265 h26l hca hcom hevc hls hnm ice ico idcin idf idx iff ifv ilbc image2 image2pipe imf ipmovie ircam ism isma ismv iss it iv8 ivf ivr j2b j2k j2k_pipe jacosub jpeg_pipe jpegls_pipe jv kux kvag libgme lmlm4 loas lrc lvf lxf m15 m2a m4a m4b m4v mac mdl med mgsts microdvd mj2 mjpeg mjpg mk3d mka mks mkv mlp mlv mm mmcmp mmf mms mo3 mod mov mp2 mp3 mp4 mpa mpc mpc8 mpeg mpegts mpegtsraw mpegvideo mpl2 mpo mptm msbc msf msnwctcp mt2 mtaf mtm mtv musx mv mvi mxf mxg nfo nist nsp nst nsv nut nuv obu ogg okt oma omg paf pam_pipe pbm_pipe pcx_pipe pgm_pipe pgmyuv_pipe pictor_pipe pjs plm pmp png_pipe pp_bnk ppm ppm_pipe psd_pipe psm psp psxstr pt36 ptm pva pvf qcif qcp qdraw_pipe r3d rco rcv rgb rl2 rm roq rpl rsd rso rt rtp rtsp s16be s24be s24le s32be s32le s337m s3m sami sap sb sbc sbg scc sdp sdr2 sds sdx ser sf sfx sfx2 sgi_pipe shn sln smi smk smush sol son sox spdif sph srt ss2 st26 stk stl stm stp str sub sunrast_pipe sup svag svg_pipe sw swf tak tco tedcaptions thd thp tiertexseq tiff_pipe tmv tta txd txt ty ty+ u16be u24be u24le u32be u32le ub ul ult umx uw v v210 vag vb vc1 vidc viv vividas vmd voc vpk vqe vqf vql vt vtt w64 wav wc3movie webm_dash_manifest webp_pipe wow wsaud wsd wsvqa wtv wv wve xa xbin xl xm xmv xpk xpm_pipe xvag xwd_pipe xwma y4m yop yuv yuv10 rtp:// rtsp:// rtsps:// [pcm]

Filters: libsamplerate soxr

Tag plugins: id3tag

Output plugins: shout null fifo sndio pipe alsa ao openal pulse jack httpd snapcast recorder

Encoder plugins: null vorbis opus lame twolame wave flac shine

Archive plugins: [bz2] bz2 [zzip] zip [iso] iso

Input plugins: file archive alsa qobuz curl ffmpeg nfs mms cdio_paranoia

Playlist plugins: extm3u m3u pls xspf asx rss soundcloud flac cue embcue

Protocols: file:// alsa:// cdda:// ftp:// ftps:// gopher:// hls+http:// hls+https:// http:// https:// mms:// mmsh:// mmst:// mmsu:// nfs:// qobuz:// rtmp:// rtmps:// rtmpt:// rtmpts:// rtp:// rtsp:// rtsps:// scp:// sftp:// smb:// srtp://

Other features: avahi dbus udisks epoll icu inotify ipv6 systemd tcp un

New config

music_directory "/var/lib/mpd/music" playlist_directory "/var/lib/mpd/playlists" log_file "/var/log/mpd/mpd.log" state_file "/var/lib/mpd/state" sticker_file "/var/lib/mpd/sticker.sql" user "mpd" group "audio" bind_to_address "0.0.0.0" bind_to_address "/var/run/mpd/socket" port "6600" log_level "verbose" metadata_to_use "AlbumArtist,Artist,Album,Title,Track,Disc,Genre,Name" auto_update "yes" zeroconf_enabled "yes" zeroconf_name "Music Player @ %h"

database { plugin "simple" path "/var/lib/mpd/db" cache_directory "/var/lib/mpd/cache" }

input { plugin "curl"

input { enabled "no" plugin "qobuz" }

input { enabled "no" plugin "tidal" }

audio_output { type "shout" encoder "lame"
name "My Shout Stream" host "localhost" port "8000" mount "/live" password "#########" bitrate "128" format "44100:16:1" }

audio_output { type "httpd" name "mpd http" encoder "lame"
port "6601" bind_to_address "0.0.0.0"
bitrate "128"
format "44100:16:1" max_clients "0"
} neighbors { plugin "udisks" } neighbors { plugin "upnp" }