Camera feed going white

Following on from this, I’ve tried using Wondershaper to limit my Pi 4 ethernet bandwidth to (REALLY) low values (~10mbps). In these tests, all that happens is that the framerate drops.

The way Flask generators work means this is what I’d expect. I now have a new working theory on this.

I wonder if it’s related to the available VRAM? When you limit the bandwidth, you limit the bitrate coming out of the GPU image encoder. I wonder if running out of RAM or VRAM would mean that, at high bitrates, a whole frame cannot be stored? The server is then sending all the data it has, as expected, it’s just an unfinished frame because of a memory issue.

It may not be that, but it’s an idea at least. Again, for now lowering the bitrate seems to help, but I’m throwing all my ideas out here as it’s a tricky one…

Edit: But we fix the amount of allocated VRAM in our SD image builder, and it’s the same for all models…