problem with v4l2src
tobatrance
henning.hinze at mail.de
Tue Feb 5 08:50:50 UTC 2019
Hey Nicolas,
thanks a lot for your fast response. I got a few more questions:
Nicolas Dufresne-5 wrote
> Le lundi 04 février 2019 à 06:28 -0600, tobatrance a écrit :
>> Hi,
>>
>> I got a problem with my v4l2 pipeline. I'm using this one in my
>> application:
>>
>> v4l2src ! "video/x-raw, framerate=60/1" ! appsink
>> ...
> The initial warning indicates that the src have run out of buffers.
> Your application is not returning the buffers fast enough.
I'm actually consuming the samples/buffers immediately after receiving
those. I think i might try reducing the framerate in my pipeline as my
monitor runs in 60Hz and therefore I would never be able to consume
an infinite amount of those without running out of buffers somewhen.
Nicolas Dufresne-5 wrote
> You can of course upgrade your kernel, but you could also ensure you
> don't starve the source. You could copy and return immediately the
> frames (the would not be zero copy) or you could use a pad probe to
> intercept the allocation query and request more buffers to be
> allocated.
Could you give an example for using a pad probe to request more buffers?
Best,
Henning
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel
mailing list