owntone / owntone-server

Linux/FreeBSD DAAP (iTunes) and MPD audio server with support for AirPlay 1 and 2 speakers (multiroom), Apple Remote (and compatibles), Chromecast, Spotify and internet radio.
https://owntone.github.io/owntone-server
GNU General Public License v2.0
2.07k stars 237 forks source link

Compressed ALAC for AirPlay 1 #1198

Closed beaune33 closed 1 year ago

beaune33 commented 3 years ago

Hello,

I have been using forked-daapd with 4 airplay 1 speakers successfully. Now I added a 5th one, and it gets instable; speakers continue switching on and off. As soon as I limit the number of speakers to 4, it gets stable again, independand of which of the speakers is switched off

I am wondering what may be the cause. My wifi is a slow one with 50MB, I know. But on the other hand this should fit for 5 speakers, shouldn't it? Therefore I would like to ask, if anyone is using 5 or more speakers on one wifi network, if there is any known issue in forked-daapd, anything I should check etc. I would be glad if anybody could give me a hint what could be a reason for this behaviour, or maybe what I could analyse.

Best regards Beaune

ejurgensen commented 3 years ago

Yes, it could be bandwidth - I assume these are Airplay speakers? There the stream is genereally uncompressed, which can become heavy with many speakers.

I have actually added lossless compression which approximately halves the required bandwidth, but it is very recent and you might not have it available in the version you are running. It is also only for Airplay 2 capable devices. Which version are you running, and on which platform?

beaune33 commented 3 years ago

You are right, they are airplay-1-speakers, in detail Philips Fidelio DS8800/DS3800 and AD7000. I am running forked daapd on version 27.2 on a Raspi 4 (buster) (kernel: LINUX 5.4.83-v71+). What would I have to do to test the lossless compression, which forked-daapd version is needed? Or doesn't that make sense because of airplay version 1 devices? Then the solution would be a faster wifi or a second wifi access point?

ejurgensen commented 3 years ago

I can't say for sure that the issue is bandwidth related.

One small thing you could try is to set the config option "raop_disable = true" for one of your speakers. Then restart forked-daapd. If the speaker is now gone from the speaker list then it really only has Airplay 1, and I'm not planning on adding compression for that.

beaune33 commented 3 years ago

I did two tests:

It seems you are right with your assumption, that the issue is bandwith related. Its really a pity that the compression is not available for airplay1 devices, as that would most probably fix my issue. Maybe I could put something on to the wish list for christmas ;-) ?

ejurgensen commented 1 year ago

Closed with above commit