Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


http streaming not working from certain sources
#2
(01-18-2023, 08:05 AM)richo Wrote: I have had this problem from version 6 (if I remember correctly) Anytime I was playing FLAC or any other source which was not 16bit/44.1kHz (or 24bit/48kHz) the http streaming was silent.

Now, in version 8 I decided to look for some solutions and I found one. I have added format line  (last one in bellow section) into a mentioned section in  /etc/mpd.conf 
Hopefully this help someone and maybe incorporated to future releases?
-r-


Code:
audio_output {
type "httpd"
name "HTTP Server"
port "8011"
encoder "lame"
bitrate "320"
tags "yes"
always_on "yes"
format "44100:16:1"
}

I can play FLAC 24/96 without any problem. I stram in FLAC format, anyway... Do you mean your issue may arise because you are streaming in mp3?

ETA
Uh, right! If you decide to stream in mp3 and play a FLAC other than 16/44.1 (in my case 24/96, though I didn't try a 24/48...) the stream isn't sending any data...
I don't know what your line may do, but I assume it resamples everything down to 16/44.1 in order for lame to work...
Reply


Messages In This Thread
RE: http streaming not working from certain sources - by Nutul - 01-18-2023, 08:38 AM

Forum Jump: