Nvv4l2decoder buffer size limited to 2 ?!

Please provide complete information as applicable to your setup.

• Hardware Platform (GPU)
• DeepStream Version 6.1.1
• TensorRT Version 8.4.3.1
• NVIDIA GPU Driver Version 525.125.06
• Issue Type(questions)

We are trying to control/limit the amount of decoded buffers on the GPU by the nvv4l2decoder.
In the sample attached below, when we use a CPU decoder avdec_h264 the queue buffers the decoded frames normally independent of the downstream elements. However, if we use nvv4l2decoder the queue buffers at most 2 decoded frames.
Note that in both cases the queue is set to have unlimited size.

How can we control the amount of buffers available for decoder nvv4l2decoder?
Is it possible through bufferpool size adjustment?

gst-sample.zip (1.0 MB)

Hi @omar.hatem,

nvv4l2decoder has a property that seems to limit the number of decoded surfaces: num-extra-surfaces. I’m not sure if this would solve your issue, but you can try increasing it.

2 Likes

@omar.hatem

Please try “num-extra-surfaces” property of nvv4l2decoder.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.