Open alvaropp opened 4 months ago
You can try using Also directly, instead of through Rodio which will consume some extra cycles especially when resampling. Unfortunately we have started waving goodbye to support to the original Zero, which is starting to get underpowered. Older versions should run OK on it.
Hi everyone!
Describe the bug I'm experiencing stutter and 100% CPU usage when playing some particular songs, and every now and then otherwise. I'm running on a Raspberry Pi Zero W Rev 1.1 and listening on a bluetooth speaker. I've basically tried to set the sound quality as low as possible as the RPi Zero doesn't seem to be able to cope with medium/high quality + bluetooth. I'm using Librespot 0.4.2 and running the following command:
sudo librespot --name rpi --bitrate 96 --format S16 --ap-port 13561 --dither none --mixer softvol --initial-volume 0 --volume-ctrl log --volume-range 60 --cache /var
It plays music perfectly fine 99.99% of the time, but some particular songs present a lot of stutter and CPU usage skyrockets:
Usual CPU load:
Max CPU load and stutter:
To reproduce There's a couple of songs that I've noticed producing stutter very frequently—I can monitor Spotify from my laptop and see the songs' progress bar jumping around a little:
Log
Host (what you are running
librespot
on):Additional comments Are there any other settings you can recommend tweaking to reduce CPU usage even more?