02-15-2023, 05:33 PM
(02-15-2023, 05:15 PM)fdealexa Wrote:(09-16-2022, 04:40 PM)TheOldPresbyope Wrote: Ah, finally.
Radio Calico just went silent in the midst of a song. Checking the MPD log at /var/log/MPD/log I see a succession of underrun messages
Code:pi@m820pre1:~ $ tail -f /var/log/mpd/log
Sep 16 12:30 : alsa_output: Decoder is too slow; playing silence to avoid xrun
Sep 16 12:30 : alsa_output: Decoder is too slow; playing silence to avoid xrun
...
Further, the station IP doesn't even return a ping now. That's due to the station itself or to some upstream network problem. Nothing moOde can do about it.
Regards,
Kent
Hi Kent, hi everyone,
I have a similar problem on several FLAC radio stations, so I've been looking into it. In particular, there is a station that reports an anomaly every 30 seconds and I have to stop and play again (the error reported on the log is: (alsa_output: Decoder is too slow; playing silence to avoid xrun). I excluded that it could be network problems: I tried to decode on PC with different players (VLC, FOOBAR, directly with the BROWSER) and I never encountered the problem. So I decided to try and check by excluding the whole moOde supply chain, trying to use the browser on the same raspberry: it does not block.
Doing a search on the type of error I found a hypothetical solution: add the following parameters to each "audio output" in the "mpd" configuration (/etc/mpd.conf)
buffer_time "200000"
period_time "5084"
I tried it, without doing the "reboot" but only with the "restart" of "mpd", but without success.
I believe the problem may be related to receiving strange metadata, this is confirmed by the fact that some other stations freeze when changing tracks. What is your opinion? What do you think about it? Do you have any other advice?
The station is https://stream.and-stuff.nl:8443/riverside
Thanks in advance and regards
Francesco
Try setting just the buffer_time to 200000 and let MPD calculate period_time. The resulting period_time reported in MPD verbose log should be buffer_time / 4.
Code:
Feb 15 12:31 : alsa_output: default period_time = buffer_time/4 = 200000/4 = 50000