Max2Play Home › Forums › Max2Play Add-ons › Playback via Music Player (MPD) stutters regularly
Tagged: MPD; Squeezebox
- This topic has 7 replies, 2 voices, and was last updated 4 years ago by Thone.
-
Posted in: Max2Play Add-ons
-
16. September 2020 at 19:33 #49722
Hey everyone,
thanks for taking the time to read this thread. Please let me know, if this is the wrong section within the forum.
There is a small issue with my audio playback. It stutters on a regular basis and I haven´t found the reason for that.
But let me tell you about my setup first:Version 2.52
Raspberry PI B+
Hifi Berry DAC+ Light
A USB drive (SSD) is connected and mountedThese are the settings I have set:
* TAB „HifiBerry“
I have selected my card from the list and selected the preset „Starter“* TAB „Music PLayer MPD“
AutoStart: CHECKED
Default drives set to /mnt/extdrive
USB-DAC : NOT checked
Autostart YMPD: CHECKED (with default port 8081)Mixer device: default
! Mixer conrtol: Digital
[Setting „Master“ does not change the result, music still stutters]
Audioformat: 192000:24:2
! Sound device: currently plughw – snd_rpi_hifiberry_dac
[Here I have tried different settings, but the result stays the same]
NO Equalizer is set
Ampache is not installed, I am using YMPDDEBUG
—-
#### MPD Version ####
Version: 0.19.21-1#### AUDIO-DEVICES (aplay -L) ####
null
Discard all samples (playback) or generate zero samples (capture)
equal
plugequal
Equalizer for plughw:0,0
headphonesplug
bs2b
headphones
default:CARD=ALSA
bcm2835 ALSA, bcm2835 ALSA
Default Audio Device
sysdefault:CARD=ALSA
bcm2835 ALSA, bcm2835 ALSA
Default Audio Device
dmix:CARD=ALSA,DEV=0
bcm2835 ALSA, bcm2835 ALSA
Direct sample mixing device
dmix:CARD=ALSA,DEV=1
bcm2835 ALSA, bcm2835 IEC958/HDMI
Direct sample mixing device
dsnoop:CARD=ALSA,DEV=0
bcm2835 ALSA, bcm2835 ALSA
Direct sample snooping device
dsnoop:CARD=ALSA,DEV=1
bcm2835 ALSA, bcm2835 IEC958/HDMI
Direct sample snooping device
hw:CARD=ALSA,DEV=0
bcm2835 ALSA, bcm2835 ALSA
Direct hardware device without any conversions
hw:CARD=ALSA,DEV=1
bcm2835 ALSA, bcm2835 IEC958/HDMI
Direct hardware device without any conversions
plughw:CARD=ALSA,DEV=0
bcm2835 ALSA, bcm2835 ALSA
Hardware device with all software conversions
plughw:CARD=ALSA,DEV=1
bcm2835 ALSA, bcm2835 IEC958/HDMI
Hardware device with all software conversions
default:CARD=sndrpihifiberry
snd_rpi_hifiberry_dac,
Default Audio Device
sysdefault:CARD=sndrpihifiberry
snd_rpi_hifiberry_dac,
Default Audio Device
dmix:CARD=sndrpihifiberry,DEV=0
snd_rpi_hifiberry_dac,
Direct sample mixing device
dsnoop:CARD=sndrpihifiberry,DEV=0
snd_rpi_hifiberry_dac,
Direct sample snooping device
hw:CARD=sndrpihifiberry,DEV=0
snd_rpi_hifiberry_dac,
Direct hardware device without any conversions
plughw:CARD=sndrpihifiberry,DEV=0
snd_rpi_hifiberry_dac,
Hardware device with all software conversions#### MPD-LOGFILE LAST 50 ENTRIES ####
Sep 02 19:11 : client: [9] closed
Sep 02 19:26 : client: [0] closed
Sep 02 19:26 : player: played „Backup/LwE/audio/music library/Apocalyptica/Shadowmaker/Shadowmaker – 08 – Sea Song (You Waded Out).flac“
Sep 02 19:26 : avahi: Service ‚Music Player‘ successfully established.
Sep 02 19:26 : client: [0] opened from 127.0.0.1:50150
Sep 02 19:26 : alsa_mixer: Failed to read mixer for ‚Max2Play ALSA Device‘: no such mixer control: Digital
Sep 02 19:26 : client: [1] opened from 192.168.0.234:37098
Sep 02 19:27 : output: Failed to open mixer for ‚Max2Play ALSA Device‘
Sep 02 19:27 : player: played „Backup/LwE/audio/music library/Apocalyptica/Shadowmaker/Shadowmaker – 08 – Sea Song (You Waded Out).flac“
Sep 02 19:27 : output: Failed to open mixer for ‚Max2Play ALSA Device‘
Sep 02 19:30 : client: [1] closed
Sep 02 19:30 : client: [2] opened from 192.168.0.234:37112
Sep 02 19:30 : player: played „Backup/LwE/audio/music library/30 Seconds to Mars/30 Seconds To Mars/30 Seconds To Mars – 01 – Capricorn (A Brand New Name).flac“
Sep 02 19:30 : client: [2] closed
Sep 02 19:30 : output: Failed to open mixer for ‚Max2Play ALSA Device‘
Sep 02 19:37 : client: [0] closed
Sep 02 19:47 : player: played „Backup/LwE/audio/music library/Apocalyptica/Shadowmaker/Shadowmaker – 03 – Shadowmaker.flac“
Sep 02 19:56 : client: [0] opened from 127.0.0.1:44398
Sep 02 19:56 : alsa_mixer: Failed to read mixer for ‚Max2Play ALSA Device‘: no such mixer control: Digital
Sep 02 19:56 : avahi: Service ‚Music Player‘ successfully established.
Sep 02 19:58 : output: Failed to open mixer for ‚Max2Play ALSA Device‘
Sep 02 20:01 : player: played „Backup/LwE/audio/music library/Apocalyptica/Shadowmaker/Shadowmaker – 03 – Shadowmaker.flac“
Sep 02 20:02 : client: [1] opened from 192.168.0.234:37198
Sep 02 20:02 : client: [1] closed
Sep 02 20:02 : client: [2] opened from 192.168.0.234:37200
Sep 02 20:02 : client: [2] closed
Sep 02 20:02 : client: [3] opened from 192.168.0.234:37216
Sep 02 20:02 : output: Failed to open mixer for ‚Max2Play ALSA Device‘
Sep 02 20:02 : client: [3] closed
Sep 02 20:02 : client: [4] opened from 192.168.0.234:37220
Sep 02 20:03 : client: [4] closed
Sep 02 20:03 : client: [5] opened from 192.168.0.234:37224
Sep 02 20:03 : client: [5] closed
Sep 02 20:03 : client: [6] opened from 192.168.0.234:37226
Sep 02 20:03 : client: [6] closed
Sep 03 08:45 : avahi: Client Disconnected, will reconnect shortly
Sep 03 08:45 : client: [0] closed
Sep 03 08:45 : player: played „Backup/LwE/audio/music library/Apocalyptica/Shadowmaker/Shadowmaker – 04 – Slowburn.flac“
Sep 03 08:47 : client: [0] opened from 127.0.0.1:36642
Sep 03 08:47 : avahi: Service ‚Music Player‘ successfully established.
Sep 03 08:47 : alsa_mixer: Failed to read mixer for ‚Max2Play ALSA Device‘: no such mixer control: Digital
Sep 03 10:17 : avahi: Service ‚Music Player‘ successfully established.
Sep 03 10:17 : client: [0] opened from 127.0.0.1:55466
Sep 03 10:17 : alsa_mixer: Failed to read mixer for ‚Max2Play ALSA Device‘: no such mixer control: Digital
Sep 03 10:29 : avahi: Client Disconnected, will reconnect shortly
Sep 03 10:29 : client: [0] closed
Sep 03 10:29 : player: played „Backup/LwE/audio/music library/Apocalyptica/Shadowmaker/Shadowmaker – 04 – Slowburn.flac“
Sep 16 19:00 : client: [0] opened from 127.0.0.1:53698
Sep 16 19:00 : alsa_mixer: Failed to read mixer for ‚Max2Play ALSA Device‘: no such mixer control: Digital
Sep 16 19:00 : avahi: Service ‚Music Player‘ successfully established.*TAB „File system MOUNT“
USB drive is mounted as /mnt/extdrive ; exfat ; defaults,nofail,iocharset=utf8 The path is fixed.
Samba-Settings:
Max2Play-USB ; /mnt/extdrive ; MP3 Library ; yes ; 777
Access from my Windows-PC to the drive is no problem.DEBUG
——
#### blkid ####
/dev/mmcblk0p1: LABEL=“boot“ UUID=“DF02-C322″ TYPE=“vfat“ PARTUUID=“ee397c53-01″
/dev/mmcblk0p2: UUID=“28590797-4810-4851-b4ec-bf9672c2918c“ TYPE=“ext4″ PARTUUID=“ee397c53-02″
/dev/sda1: LABEL=“Samsung_T5″ UUID=“7259-21E7″ TYPE=“exfat“ PARTUUID=“cb8d3572-01″
/dev/mmcblk0: PTUUID=“ee397c53″ PTTYPE=“dos“
/dev/mmcblk0p3: PARTUUID=“ee397c53-03″#### mounted ####
/dev/sda1 on /mnt/extdrive type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)If have read throuth this post: Thanks ever so much for your time.
As the music stutters on a regular basis, between 45-60 seconds, I hoped there eould be something obvious I missed.One last thing:
I released that changing any settings or loading a settings page will, AT THAT EXCAT MOMENT, cause the music to stutter.
But closing all setting´s tabs does not stop the stutter.Is there any background check or process in Max2Play, that might cause my PI to reach 100%& load and case the music to stutter?
Thanks in advance for your help
21. September 2020 at 17:52 #49733Hi Thone,
Thank you for the comprehensive report. It looks like MPD has a problem with your sound card or the ALSA mixer. Please select the „sysdefault“ driver again and make sure that neither Squeezelite nor Shairport are running in parallel. If that doesn’t help, please test whether playback via Squeezelite and the Squeezebox Server causes the same problems. In particular, please try to see if internet streams differ from your local music on the hard drive. Does the Health Checker show anything special in the Settings/Reboot tab? Maybe your power supply is too weak or the Pi is overloaded for some reason. In the latter case, please burn a new image on the SD card and try again with the standard settings.
25. September 2020 at 16:53 #49754Hey again,
this is the result of my tests:It looks like MPD has a problem with your sound card or the ALSA mixer.
Please select the „sysdefault“ driver again and make sure that neither Squeezelite nor Shairport are running in parallel.
=> This did not change the outcomeIf that doesn’t help, please test whether playback via Squeezelite and the Squeezebox Server causes the same problems.
=> I Can´t install jivelite without a license. I have to admit, I am not willing to buy one, before I know it is working fine.In particular, please try to see if internet streams differ from your local music on the hard drive.
=> I installed the spotify plugin and connected my account. How can I control the stream, how do I start streaming?Does the Health Checker show anything special in the Settings/Reboot tab?
=> NO:
Status Checker
Internet: Verbunden
CPU Load: 0.29
SD Card Usage: 18%
Temp CPU: 41.2Maybe your power supply is too weak or the Pi is overloaded for some reason.
=> I thought about the overload myself, but have no idea, what could be the cause for that.
I hoped you guys might know more. Is there anything I should check?The power supply I use, was provided as a package with my PI. How much output should a power supply have?
In the latter case, please burn a new image on the SD card and try again with the standard settings.
=> tried with new image 4 times already, this did not lead to any no change30. September 2020 at 13:09 #49766Hi Thone,
To test Squeezelite and the Squeezebox Server, you don’t need a Max2Play Premium license or Jivelite. You can find the Squezelite settings in the audio player tab. You can install the Squeezebox server in the corresponding Squeezebox server tab. To see whether your sound card is set up correctly, Squeezelite should be running and the driver „sysdefault … hifiberrydac …“ should be selected in the advanced options of Squeezelite. You can then start playback in the Squeezebox Server web interface.
30. September 2020 at 17:20 #49777Hey Mario,
thanks for helping me out.
I installed Squeezelite and Squeezebox. But I cannot figure out how to use them.A) Squeezelite will start without any problems. I cannot find any (web) interface, that will allow me to control this. Is there any address like „192.168.0.100/squeezelite“ or such, that I might use?
I hoped there would be a big blue button, as there is with the MPD player. But I don´t see any. What am I missing?B) Squeezebox installs fine, but cannot be started. I get this error message:
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
sudo: no tty present and no askpass program specifiedUnfortunately, I have no idea, what that is about. What settings do I have to change, to get it running?
Thanks,
Thone2. Oktober 2020 at 14:29 #49783Hi Thone,
When Squeezelite is running, you don’t really have to adjust anything more. Otherwise you can change the Squeezelite settings using the „advanced options“ button next to the start/stopp button. However the big blue button should be visible on the Squeezebox server page. The Squeezebox Server is used to control the Squeezelite Player. The server’s web interface can be used to control music playback. Please download the current stretch image one last time from our download page and restart the Pi with it. Select HiFiBerry as the manufacturer and install the DAC + light driver. Update Max2Play and then install the Squeezebox Server. The blue button should then lead you to the Squeezebox Server web interface. There you can start the music playback.
-
You must be logged in to reply to this topic.