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

WebRTC (camera-streamer) format balloons in CPU utilization over time #174

Closed
austinrdennis opened this issue Sep 10, 2023 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@austinrdennis
Copy link

austinrdennis commented Sep 10, 2023

What happened

When using webRTC (camera-streamer) on my RPi 4b, the CPU usage is usually under 20% on a single core. After running for around 8+ hours (specifics are hard to pin down, I'm not gonna watch it continuously for that long), it gallons to consuming 95% or more of a single core's compute time. The stream also starts to experience dropped frames and heavy bitrate artifacting (ghosting and incorrect colors).

What did you expect to happen

CPU usage remains consistent over time. Stream remains stable without artifacts or dropped frames.

How to reproduce

All I have to do is let the stream run for enough time. The printer can be idle the entire time.

Additional information

Restarting the crows nest service via sudo systemctl restart crowsnest.service fixes the problem and "resets the timer" so to speak.

I haven't done much testing with other formats aside from MJPEG adaptive and that runs without this issue. Let me know if you want me to play around with other formats.

The logs are squeaky clean, but I'll throw my latest one up here anyway for completeness:crowsnest.log

I'm using the latest version of crows nest and camera-streamer at the time of writing this.

@austinrdennis austinrdennis added the bug Something isn't working label Sep 10, 2023
@meteyou
Copy link
Member

meteyou commented Sep 10, 2023

Crowsnest ist just a wrapper for multiple backends. If you detect a bug in camera-streamer, pls report it to camera-streamer itself.

PS: you also mixed up different things... backend settings and client settings. "WebRTC (camera-streamer)" and "MJPEG adaptive" are just client settings..

@meteyou meteyou closed this as not planned Won't fix, can't repro, duplicate, stale Sep 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants