ArmSoM
← All stories

Sizing a GStreamer Queue for a Live Sige7 Preview

A smooth camera preview that gradually falls behind real time usually has a buffering problem somewhere in the path. On a Sige7 pipeline, inspect queue occupancy while the slow stage is active. GStreamer queues can be bounded by time, bytes and buffer count.

ArmSoM Sige7 single-board computer product photo

ArmSoM Sige7 single-board computer · ArmSoM

Choose what happens when the consumer falls behind

At 25 frames per second, ten queued frames represent roughly 400 ms when each buffer contains one frame. A recording branch may need to preserve every frame, while a live view may need the newest one. Give these branches separate queue policies and observe their behavior when storage slows. A bounded queue limits one component, while upstream devices and sinks can still buffer.

Inspect the buffer, byte and time limits together. The first enabled limit reached controls behavior, so raising the frame limit alone may leave a different cap in effect.

Film a clock beside the displayed preview to measure visible delay. If reducing the preview queue has little effect, trace latency before and after the decoder and display sink before reducing image quality.

Reference material

ArmSoM Sige7 hardware documentation

GStreamer queue properties and limits

Related ArmSoM guide

Low latency video on an arm SBC capture encode network and display

Explore ArmSoM Sige7