Http output enabled - causes stutter on HW direct?

General Discussion about MPD – anything that doesn't fit in the other MPD forums.
Post Reply
DaveBullet1050
Posts: 7
Joined: September 28th, 2020, 8:07 pm

Http output enabled - causes stutter on HW direct?

Post by DaveBullet1050 »

I have tried both MPD 0.22 and an older 0.21.19 build - same results.

I have the following mpd.conf alsa outputs configured:

Code: Select all

audio_output {
        enabled         "yes"
        type            "alsa"
        name            "Direct"
        device          "hw:0,0"
        dop             "no"
        auto_resample   "no"
        auto_channels   "no"
        auto_format     "no"
}

audio_output {
        enabled         "yes"
        type            "httpd"
        name            "HttpStream"
        #encoder                "vorbis"                # optional
        encoder         "lame"          # optional
        port            "8090"
        #quality                "4"                     # do not define if bitrate is defined
        bitrate         "256"                   # do not define if quality is defined
        format          "44100:16:1"
        always_on       "yes"                   # prevent MPD from disconnecting all listeners when playback is stopp
ed.
        tags            "yes"                   # httpd supports sending tags to listening streams.
}
I'm using lame to encode the HTTP stream (maybe thats the problem - vorbis encoder wasn't enabled in my build)

Basically - within 1 - 3 seconds of playing via the "Direct" device above - there is a small gap / stutter in the output. Only at the beginning of the track. I don't believe the stutter occurs on a pause -> play situation.

When I disable the HttpStream device - (e.g. via mpc disable HttpStream) the stutter disappears and everything is smooth.

Does anyone have any ideas? There is nothing in mpd.log to indicate a buffer underrun or problem. I will try starting in verbose mode and double check.
skidoo
Posts: 219
Joined: April 28th, 2013, 10:06 pm
Location: Western Germany

Re: Http output enabled - causes stutter on HW direct?

Post by skidoo »

Multiple audio outputs are not in sync.
DaveBullet1050
Posts: 7
Joined: September 28th, 2020, 8:07 pm

Re: Http output enabled - causes stutter on HW direct?

Post by DaveBullet1050 »

skidoo wrote: October 26th, 2020, 11:27 pm Multiple audio outputs are not in sync.
Thanks - I didn't make myself clear.

I realise and accept audio outputs are not synchronised

The problem here is the HTTP output is causing Direct to stutter / pause about 1 - 3 seconds into playing, anywhere from 0.1 to 0.5 seconds by my estimation.

My point is - should audio outputs have such an effect on eachother?
skidoo
Posts: 219
Joined: April 28th, 2013, 10:06 pm
Location: Western Germany

Re: Http output enabled - causes stutter on HW direct?

Post by skidoo »

Same "hickups" on my setup - MPD from git master, ALSA hw device, http output- since errr quite a long time. I used "in sync" in the sense of all outputs start playing at more or less the same time. Not in sync like Snapcast or Sonos.

@Max> Is the hickup at the beginning of a track a bug or feature?
Post Reply