MPD
MPD copied to clipboard
[nfs] no icy metadata send to httpd output
Bug report
Describe the bug
Mount nfs dir with $ mpc mount nfs nfs://nfs:/music?version=4 copy file from local storage to nfs. Update dabase. Add and play files in MPD. Correct metada from local storage. No metadata from nfs.
Expected Behavior
Send ICY metadata no matter where file is stored.
Actual Behavior
No metadata. Tested on Windows 10 (x64) with foobar2000 and Sonos Symfonisk.
Version
Recent MPD from git master. Build on Debian Testing (x64) $ mpd --version Music Player Daemon 0.25 (v0.24.4-70-gdaaea3f2b) Copyright 2003-2007 Warren Dukes [email protected] Copyright 2008-2025 Max Kellermann [email protected] 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
Storage plugins: local nfs
Decoder plugins: [mpg123] mp3 [mad] mp3 mp2 [vorbis] ogg oga [oggflac] ogg oga [flac] flac [opus] opus ogg oga [faad] aac [mpcdec] mpc [wavpack] wv [openmpt] mptm mod s3m xm it 669 amf ams c67 dbm digi dmf dsm dtm far imf ice j2b m15 mdl med mms mt2 mtm nst okt plm psm pt36 ptm sfx sfx2 st26 stk stm stp ult wow gdm mo3 oxm umx xpk ppm mmcmp [sidplay] sid mus str prg P00 [ffmpeg] 264 265 266 302 3g2 3gp 4xm 669 722 aa aa3 aac aax ac3 ac4 ace 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 argo_brp argo_cvg art asc asf asf_o ass ast au avc avi avif avr avs avs2 avs3 bcstm bethsoftvid bfi bfstm bin bink binka bit bitpacked bmp_pipe bmv boa bonk brender_pix brstm c2 c93 caf cdata cdg cdxl cgi cif cine codec2raw concat cri_pipe dash dat data daud dav dbm dds_pipe dfa dff dfpwm dif digi dirac diz dmf dnxhd dpx_pipe dsf dsicin dsm dss dst dtk dtm dts dtshd dv dvbsub dvbtxt dvdvideo dxa ea eac3 ec3 evc 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 gem_pipe genh gif gif_pipe gsm gxf h261 h263 h264 h265 h266 h26l hca hcom hdr_pipe heic heif hevc hls hnm iamf ice ico idcin idf idx iff ifv ilbc image2 image2pipe imf imx ipmovie ipu ircam ism isma ismv iss it iv8 ivf ivr j2b j2k j2k_pipe jacosub jpeg_pipe jpegls_pipe jpegxl_pipe jv jxl kux kvag laf lc3 libgme lmlm4 loas lrc lvf lxf m15 m2a m4a m4b m4v mac mca mcc mdl med mgsts microdvd mj2 mjpeg mjpg mk3d mka mks mkv mlp mlv mm mmcmp mmf mms mo3 mod mods moflex mov mp2 mp3 mp4 mpa mpc mpc8 mpeg mpegts mpegtsraw mpegvideo mpl2 mpo mptm msbc msf msnwctcp msp mt2 mtaf mtm mtv musx mv mvi mxf mxg nfo nist nsp nst nsv nut nuv obu ogg okt oma omg osq paf pam_pipe pbm_pipe pcx_pipe pdv pfm_pipe pgm_pipe pgmyuv_pipe pgx_pipe phm_pipe photocd_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 qoa qoi_pipe r3d rco rcv rcwt rgb rka rl2 rm roq rpl rsd rso rt rtp rtsp s16be s24be s24le s32be s32le s337m s3m sami sap sb sbc sbg scc scd sdns sdp sdr2 sds sdx ser sf sfx sfx2 sga 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 svs 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 usm uw v v210 vag vb vbn_pipe vc1 vidc viv vividas vmd voc vpk vqe vqf vql vt vtt vvc w64 wa wav way wc3movie webm webm_dash_manifest webp_pipe wma wow wsaud wsd wsvqa wtv wv wve xa xbin xbm_pipe xl xm xmd xmv xpk xpm_pipe xvag xwd_pipe xwma y4m yop yuv yuv10 rtp:// rtsp:// rtsps:// [sndfile] wav aiff aif au snd paf iff svx sf voc w64 pvf xi htk caf sd2 [audiofile] wav au aiff aif [pcm]
Filters: libsamplerate soxr
Tag plugins: id3tag
Output plugins: null fifo pipe alsa httpd snapcast
Encoder plugins: null vorbis opus lame wave flac
Archive plugins: [bz2] bz2 [zzip] zip [iso] iso
Input plugins: file io_uring archive alsa curl ffmpeg nfs mms
Playlist plugins: extm3u m3u pls xspf asx rss flac cue embcue
Protocols: file:// alsa:// ftp:// ftps:// gopher:// hls+http:// hls+https:// http:// https:// mms:// mmsh:// mmst:// mmsu:// nfs:// rtmp:// rtmpe:// rtmps:// rtmpt:// rtmpte:// rtmpts:// rtp:// rtsp:// rtsps:// scp:// sftp:// smb:// srtp://
Other features: dbus epoll icu inotify systemd tcp un
Configuration
music_directory "/opt/music"
playlist_directory "/opt/playlists"
log_file "/var/log/mpd/mpd.log"
state_file "/var/lib/mpd/state"
user "mpd"
bind_to_address "any"
bind_to_address "/run/mpd/socket"
port "6600"
log_level "default"
auto_update "no"
zeroconf_enabled "yes"
zeroconf_name "Music Player Daemon @ %h"
database {
plugin "simple"
path "/var/lib/mpd/database"
cache_directory "/var/lib/mpd/cache"
compress "yes"
}
input {
plugin "curl"
}
audio_output {
type "httpd"
tags "yes"
name "httpd on port 8000"
always_on "yes"
encoder "lame"
port "8000"
bitrate "320"
format "44100:16:2"
max_clients "0"
dscp_class "CS3"
genre "test"
}
decoder {
plugin "mad"
enabled "no"
}
decoder {
plugin "mpg123"
enabled "yes"
}
decoder {
plugin "ffmpeg"
enabled "yes"
}
decoder {
plugin "mpcdec"
enabled "yes"
}
audio_output {
type "alsa"
name "U-Control UCA202"
device "plughw:CARD=CODEC,DEV=0"
mixer_type "hardware"
format "*:16:2"
mixer_device "hw:CODEC"
mixer_control "PCM"
}
resampler {
plugin "soxr"
quality "high"
threads "0"
}
Log
2025-06-08T16:48:38 playlist: play 27:"nfs/G2/Douglas Greed - Nun bin ich zu alt um Wolfgang zu verlassen/02 - Running away with the circus (Original Mix).mp3" 2025-06-08T16:48:38 decoder_thread: probing plugin mpg123 2025-06-08T16:48:38 decoder: audio_format=44100:16:2, seekable=true 2025-06-08T16:48:38 client: [pid=20916 uid=1000] command returned 0 2025-06-08T16:48:38 playlist: queue song 28:"kaputt/02 - Running away with the circus (Original Mix).mp3" 2025-06-08T16:48:38 client: [pid=20916 uid=1000] process command "idle" 2025-06-08T16:48:38 client: [pid=20916 uid=1000] command returned 1 2025-06-08T16:48:38 client: [pid=20916 uid=1000] process command "status" 2025-06-08T16:48:38 client: [pid=20916 uid=1000] command returned 0
2025-06-08T16:48:51 client: [pid=20916 uid=1000] process command "playid "29"" 2025-06-08T16:48:51 playlist: play 28:"local_dir/02 - Running away with the circus (Original Mix).mp3" 2025-06-08T16:48:51 decoder_thread: probing plugin mpg123 2025-06-08T16:48:51 decoder: audio_format=44100:16:2, seekable=true 2025-06-08T16:48:51 client: [pid=20916 uid=1000] command returned 0 2025-06-08T16:48:51 client: [pid=20916 uid=1000] process command "idle" 2025-06-08T16:48:51 client: [pid=20916 uid=1000] command returned 1 2025-06-08T16:48:51 client: [pid=20916 uid=1000] process command "status" 2025-06-08T16:48:51 client: [pid=20916 uid=1000] command returned 0
What tags does the file have? What tags does MPD show for this file? What does this have to do with NFS and httpd? Do tags work with any other storage/input/output plugin?
Tags are ok - its just the ICY metadata. Applies to all (at least MP3) files located on my nfs v4 server. Why nfs? my local hdd is full and my nfs server has plenty of free space. Why httpd? I use Sonos (Symfonisk) as some kind of kitchen radio. ICY metadata is ok wenn using http input plugin (eg byte fm) and playing to httpd output.
Metadata on local fs /var/lib/mpd/database
directory: kaputt
mtime: 1749393250
begin: testdir
(...)
song_begin: 02 - Running away with the circus (Original Mix).mp3
Time: 328.32
Artist: Douglas Greed
AlbumArtist: Douglas Greed
Title: Running away with the circus (Original Mix)
Album: Nun bin ich zu alt, um Wolfgang zu verlassen
Track: 2
Date: 2025
Genre: Electro
Disc: 1
Label: MusicLabelRecordCompany
Format: 44100:16:2
mtime: 1749294590
added: 1749393272
song_end
end: testdir
Metadata on nfs /var/lib/mpd/nfs___nfs__music_version_4
directory: Douglas Greed - Nun bin ich zu alt um Wolfgang zu verlassen
mtime: 1749392221
begin: G2/Douglas Greed - Nun bin ich zu alt um Wolfgang zu verlassen
(...)
song_begin: 02 - Running away with the circus (Original Mix).mp3
Time: 328.32
Artist: Douglas Greed
AlbumArtist: Douglas Greed
Title: Running away with the circus (Original Mix)
Album: Nun bin ich zu alt, um Wolfgang zu verlassen
Track: 2
Date: 2025
Genre: Electro
Disc: 1
Label: MusicLabelRecordCompany
Format: 44100:16:2
mtime: 1749294590
added: 1749392736
song_end
end: G2/Douglas Greed - Nun bin ich zu alt um Wolfgang zu verlassen
I can't reproduce this problem. I get Icy no matter if the file was played from local disk or from NFS.
Sigh. Unfortunately, the problem still persists for me. I'll try to narrow down my system's strange behavior over the next few weeks.
Thanks for your effort, Max.