[Voyage-linux] Max CPU with mpd's httpd streaming server

Norman Henderson (spam-protected)
Fri Nov 26 17:03:11 HKT 2010


Hi, I have a Voyage 0.6.5 system on which I run a number of different things
including mpd. It works fine for playback through the ALSA device (headphone
jack) with about 15% CPU use. However when I set up an httpd output and
connect to it from my laptop (with the browser or with VLC, etc.) CPU
immediately goes to almost 100% and the playback starts to skip (both
through the ALSA and through the laptop).

At first I thought this was because I was streaming vorbis and the music
files (which are on a local USB drive) are mp3. So with some pain I compiled
mpd 0.15.15 with lame support and got that working. However my high CPU
problem is still there. I believe the output matches the file format so
there shouldn't be any resampling (but I don't know a lot about this stuff):

audio_output {
        type            "httpd"
        name            "Voyage HTTP Stream"
        encoder         "lame"          # optional, vorbis or lame
        port            "8000"
#       quality         "5.0"                   # do not define if bitrate
is defined
        bitrate         "192"                    # do not define if quality
is defined
        format          "44100:16:2"
}
Incidentally results were the same with the default bitrate 128, or with 96,
and with 1 instead of 2 channels in the format.

The system also has a Samba server running and if I use e.g. VLC on my
laptop to just play the files from the network share that's fine too, no
skipping and normal CPU usage - so I don't think it's a networking issue.

Any suggestions? Does the new Voyage MPD build support playback of mp3's
over mpd's built-in httpd streaming server without problems, and is there
anything special about the configuration?
- Norm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.voyage.hk/pipermail/voyage-linux/attachments/20101126/85cbbe40/attachment-0002.html>


More information about the Voyage-linux mailing list