Thank you for your donation!


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


Problem: Airplay stuttering since moOde 9
#11
I just uploaded a new shairport-sync package for latest version 4.3.3.

Try
Code:
sudo moode-apt-mark unhold
sudo apt update
sudo apt -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install shairport-sync=4.3.3-1moode1
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#12
(06-12-2024, 09:13 PM)Tim Curtis Wrote: Nothing in the WebUI but you could try examining the network stats for the wlan0 interface using the commands below. Look for retries, dropped packets etc.

Code:
ifconfig
iwconfig


ifconfig: 
Code:
       RX packets 58853  bytes 35442923 (33.8 MiB)
       RX errors 0  dropped 0  overruns 0  frame 0
       TX packets 1329  bytes 571573 (558.1 KiB)
       TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


iwconfig:
Code:
         Bit Rate=72.2 Mb/s   Tx-Power=31 dBm  
         Retry short limit:7   RTS thr:off   Fragment thr:off
         Power Management:off
         Link Quality=55/70  Signal level=-55 dBm  
         Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
         Tx excessive retries:0  Invalid misc:0   Missed beacon:0
Reply
#13
(06-13-2024, 10:48 AM)TheOldPresbyope Wrote: Did you try increasing the buffer length or not? If you didn't then we won't know if that can help mitigate WiFi-related issues when using AirPlay.

Increased the buffer to 0.5. 4 times stuttering in 30 minutes of listening. Less, but it's not gone.
Reply
#14
The stats look ok. Try a 20 sec ping test from the Pi to your Router and examine the ping stats. See what the round trip times look like.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#15
(06-13-2024, 08:23 PM)Tim Curtis Wrote: The stats look ok. Try a 20 sec ping test from the Pi to your Router and examine the ping stats. See what the round trip times look like.

Ping times to the router from the Rapsberry Pi are between 3 and 7 milliseconds.
Reply
#16
(06-13-2024, 03:39 PM)Tim Curtis Wrote: I just uploaded a new shairport-sync package for latest version 4.3.3.

Try
Code:
sudo moode-apt-mark unhold
sudo apt update
sudo apt -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install shairport-sync=4.3.3-1moode1

I updated to shairport-sync 4.3.3. The stuttering is unfortunately not gone, right now happing once to twice a minute. The buffer is still set to 0.5. Anything else I should do? Update to 9.0.2? Increase the buffer?
Reply
#17
(06-14-2024, 06:12 AM)cramcram Wrote: I updated to shairport-sync 4.3.3. The stuttering is unfortunately not gone, right now happing once to twice a minute. The buffer is still set to 0.5. Anything else I should do? Update to 9.0.2? Increase the buffer?

Usually yes, you do increase the buffer.
Actually, you could just double it now, and keep an eye on the results; then you can decrease it, little by little until you find the good performing value without being too aggressive on memory reservation for the buffer itself. At least this is what I would do.
Reply
#18
(06-14-2024, 06:10 AM)cramcram Wrote:
(06-13-2024, 08:23 PM)Tim Curtis Wrote: The stats look ok. Try a 20 sec ping test from the Pi to your Router and examine the ping stats. See what the round trip times look like.

Ping times to the router from the Rapsberry Pi are between 3 and 7 milliseconds.

Here are some stats from my network (Pi to Router). It's just a single Router and the dwelling is timber framing and drywall, no plaster w/metal lath etc. I ran some ping tests from three Pi's each in different locations. One of the Pi's was connected via Ethernet another via WiFi 2.4GHz and the other via WiFi 5 GHZ.

WiFi Location 1 (5GHz) - Avg = 2.453ms
Code:
--- 192.168.1.1 ping statistics ---
171 packets transmitted, 171 received, 0% packet loss, time 171432ms
rtt min/avg/max/mdev = 0.791/2.453/10.852/1.666 ms

WiFi Location 2 (2.4GHz) - Avg = 7.774ms
Code:
--- 192.168.1.1 ping statistics ---
1135 packets transmitted, 1134 received, 0.0881057% packet loss, time 1135684ms
rtt min/avg/max/mdev = 1.089/7.774/138.467/11.050 ms

Ethernet Location 3 - Avg = 0.429ms
Code:
--- 192.168.1.1 ping statistics ---
44 packets transmitted, 44 received, 0% packet loss, time 43979ms
rtt min/avg/max/mdev = 0.395/0.429/0.597/0.040 ms

ETC: Corrected mistake. The Pi at Location 2 was connected to the 2.4 GHz SSID.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#19
(06-14-2024, 08:54 AM)Nutul Wrote: Usually yes, you do increase the buffer.
Actually, you could just double it now, and keep an eye on the results; then you can decrease it, little by little until you find the good performing value without being too aggressive on memory reservation for the buffer itself. At least this is what I would do.

Set the buffer to 1. Samesame, stuttering sill there.
Reply
#20
(06-14-2024, 11:14 AM)Tim Curtis Wrote: Here are some stats from my network (Pi to Router). It's just a single Router and the dwelling is timber framing and drywall, no plaster w/metal lath etc. I ran some ping tests from three Pi's each in different locations. One of the Pi's was connected via Ethernet another via WiFi 2.4GHz and the other via WiFi 5 GHZ.





Thanks for the data. So my results are approx. the same as yours. Anythings else I could try? Sorry for insisting on my problem, but on 8.3.9 Airplay worked really reliably in my setup with Wifi. The only thing I changed is the update to moOde 9 version.
Reply


Forum Jump: