Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stuttering on Raspberry 4 #1350

Open
aaruni96 opened this issue Feb 15, 2025 · 4 comments
Open

Stuttering on Raspberry 4 #1350

aaruni96 opened this issue Feb 15, 2025 · 4 comments

Comments

@aaruni96
Copy link

I have a snapserver instance on an amd64 home server, and multiple snapclients : amd64 workstation, android, and raspberry pi 4. Only on the rpi 4, there are loads of audio stuttering problems, with an accompanying entry about pMiniBuffer. Nothing interesting appears on the server side logs.

2025-02-15 22-15-12.119 [Info] (Stream) pMiniBuffer->full() && (abs(pMiniBuffer->mean()) > 50): -50374

The raspberry pi is using alsa and playing on a speaker connected to its onboard 3.5mm audio.

The snapclient version on the rpi is snapclient v0.31.0 (rev cf2be071).

Client logs :

snapclient.log

@aaruni96
Copy link
Author

Playback of local media on the raspberry pi works flawlessly, both via mpv, and aplay

mpv ghibli.opus 
 (+) Audio --aid=1 --alang=eng (opus 2ch 48000Hz)
[W][18617.252409] pw.conf      | [          conf.c: 1214 try_load_conf()] can't load config client.conf: No such file or directory
[E][18617.252604] pw.conf      | [          conf.c: 1243 pw_conf_load_conf_for_context()] can't load config client.conf: No such file or directory
AO: [alsa] 48000Hz stereo 2ch s16
A: 00:00:10 / 11:54:55 (0%)

Exiting... (Quit)
aplay ghibli.wav 
Playing WAVE 'ghibli.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
^CAborted by signal Interrupt...

@aaruni96
Copy link
Author

This happens when snapcast is running in alsa mode, and also pulse mode. Any help would be appreciated @badaix

@badaix
Copy link
Owner

badaix commented Feb 17, 2025

Don't know, you should have only once (not three times) the message

[Info] (Controller) Codec: flac, sampleformat: 48000:16:2

This is only logged, when the server sends it. Without server log hard to guess, why it's received multiple times.
Maybe your network connection is unstable?

@aaruni96
Copy link
Author

Ah that's because I changed streams, my bad. Here's what I did :

start snapclient, its set to a stream with no active playback. (first time the message). Then I change it to a stream with actual playback (second time the message, and then all the failures). After sometime (once some error messages are recorded), I change it to the silent stream again (third time the message), and then I quit snapclient.

So you can disregard that part.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants