Playback via Music Player (MPD) stutters regularly

Max2Play Home 2016 (en) Forums Max2Play Add-ons Playback via Music Player (MPD) stutters regularly

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  Thone 1 day, 14 hours ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • 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 mounted

    These 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 YMPD

    DEBUG
    —-
    #### 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 #49733

    Hi 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.

    21. September 2020 at 20:30 #49734

    Hey MarioM,

    thanks for all these tips!! It will take me a few days to test them all. Once I am finished, I will give feedback.

    I am hopefull, one of these tips will work.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Register here