# HTTP Stream fails on WV 32/384 Songs

**URL:** https://discourse.indi.software/t/http-stream-fails-on-wv-32-384-songs/212
**Category:** Bug Report
**Tags:** Closed
**Created:** [December 4, 2024, 6:56pm UTC](https://discourse.indi.software/t/http-stream-fails-on-wv-32-384-songs/212 "2024-12-04T18:56:16Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![roizcorp](https://discourse.indi.software/letter_avatar_proxy/v4/letter/r/65b543/32.png) [@roizcorp](https://discourse.indi.software/u/roizcorp)
#### Post date: [December 4, 2024, 6:56pm UTC](https://discourse.indi.software/t/http-stream-fails-on-wv-32-384-songs/212/1 "2024-12-04T18:56:16Z")

</div>

MAFA version: 1.9.13  
Android version: 14  
Device model: Samsung S22 Plus  
MPD version: 23.15

.WV (wavpack) encoded songs 32bit 384khz plays fine on mpd, also streams fine over VLC or MPV but fails to in MAFA. It plays fine FLAC 24/192 songs

mpd.conf  
audio\_output {  
type “httpd”  
encoder “wave” # (tried flac and null as well)  
#compression “0”  
port “8000”  
name “http”  
enabled “yes”  
}

---

<div class="post-metadata">

### Author: ![Alex\_B](https://discourse.indi.software/letter_avatar_proxy/v4/letter/a/5f8ce5/32.png) [@Alex\_B](https://discourse.indi.software/u/Alex_B)
#### Post date: [December 4, 2024, 7:40pm UTC](https://discourse.indi.software/t/http-stream-fails-on-wv-32-384-songs/212/2 "2024-12-04T19:40:16Z")

</div>

It looks like this sample rate is not supported by the internal player:

> getMinBufferSize(): 384000 Hz is not a supported sample rate.

You can try with an external player if one is installed on your android.

Or you can configure the http output to resample to a supported sample rate.

For example:

```auto
audio_output {
        type "httpd"
        name "HTTP Stream - wave - 8007"
        encoder "wave" # also works with flac, lame, and vorbis
        port "8007"
        format "44100:16:2"
}

```

Tested with 32 bit FLAC / 384 kHz sample audio downloaded from [here](https://samplerateconverter.com/free-audio-downloads).

---

<div class="post-metadata">

### Author: ![roizcorp](https://discourse.indi.software/letter_avatar_proxy/v4/letter/r/65b543/32.png) [@roizcorp](https://discourse.indi.software/u/roizcorp)
#### Post date: [December 6, 2024, 5:50am UTC](https://discourse.indi.software/t/http-stream-fails-on-wv-32-384-songs/212/3 "2024-12-06T05:50:22Z")

</div>

Thanks…MPV and VLC are able to play it…not sure if that’s what you meant by external players.

In terms of the format, do you know what happens if I try to play a lower graded song? does MPD attempts to “upscale” it?

---

<div class="post-metadata">

### Author: ![Alex\_B](https://discourse.indi.software/letter_avatar_proxy/v4/letter/a/5f8ce5/32.png) [@Alex\_B](https://discourse.indi.software/u/Alex_B)
#### Post date: [December 6, 2024, 9:12am UTC](https://discourse.indi.software/t/http-stream-fails-on-wv-32-384-songs/212/4 "2024-12-06T09:12:20Z")

</div>

[External player](https://mafa.indi.software/images/sc/http_streaming_config_phone_port_hu15437371356916448851.png) means that MAFA will pass the HTTP stream to another app on the device for playing, instead of using an internal player.

 ![image](https://discourse.indi.software/uploads/default/original/1X/81b7c79c799d146f5eb0a53b8998ccbf6527ff9e.png)

In terms of the format, I think MPD will re-sample any source to the format configured for the `audio_output`.

The [documentation](https://mpd.readthedocs.io/en/latest/user.html#configuring-audio-outputs) says:

> **format samplerate:bits:channels** Always open the audio output with the specified audio format, regardless of the format of the input file.

---

<div class="post-metadata">

### Author: ![roizcorp](https://discourse.indi.software/letter_avatar_proxy/v4/letter/r/65b543/32.png) [@roizcorp](https://discourse.indi.software/u/roizcorp)
#### Post date: [December 7, 2024, 10:24am UTC](https://discourse.indi.software/t/http-stream-fails-on-wv-32-384-songs/212/5 "2024-12-07T10:24:57Z")

</div>

Wow…I was not aware to the external players feature in MAFA…so it works but the cache size is too small (4Mb) so they stuck. I think I will use the “format” approach then.

Thank you very much for your help!
