mfw_v4lsrc discards captured image when queue-size property set to value 3 or below

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

mfw_v4lsrc discards captured image when queue-size property set to value 3 or below

Jump to solution
1,170 Views
gauthamkanthara
Contributor IV

Hello, Using below mentioned gstreamer pipeline for image capturing,

 

gst-launch mfw_v4lsrc device=/dev/video0 queue-size=[2 | 3 |  4] ! fakesink -v

 

When mfw_v4lsrc queue-size  property is set to value 3 or less, based on timestamp, got to know that the captured image are been discarded. It works fine with queue-size property value set to 4. Find the logs attached

 

 

Gstreamer version: 0.10.36

MFW_GST_V4LSRC_PLUGIN  version: 4.0.2

 

Regards,

Gautham

Original Attachment has been moved to: gst_fakesink_log.zip

Labels (6)
1 Solution
1,009 Views
Yuri
NXP Employee
NXP Employee

Hello,

The following - in section “Finding the Buffer Leak” from the linked below –

may explain the issue :

“ […] v4l2src has a buffer pool of a fixed number of buffers which are recycled along
the whole pipeline lifetime. This means that if the pool runs out of buffers, it must
wait until a buffer is freed to write a new image to it.

If v4l2 buffers are not returning fast enough you will lose images waiting for them
to free.”

Embedded GStreamer Performance Tuning - RidgeRun Developer Connection

 


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

2 Replies
1,010 Views
Yuri
NXP Employee
NXP Employee

Hello,

The following - in section “Finding the Buffer Leak” from the linked below –

may explain the issue :

“ […] v4l2src has a buffer pool of a fixed number of buffers which are recycled along
the whole pipeline lifetime. This means that if the pool runs out of buffers, it must
wait until a buffer is freed to write a new image to it.

If v4l2 buffers are not returning fast enough you will lose images waiting for them
to free.”

Embedded GStreamer Performance Tuning - RidgeRun Developer Connection

 


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,009 Views
gauthamkanthara
Contributor IV

YuriMuhin_ng​,

Thank you for the reply and link.

So to keep up to 30 fps, it is clear that, need to configure queue-size property of v4lsrc plugin with value 4 or more.

Regards,

Gautham

0 Kudos