<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mar. 26 mars 2019 04 h 55, Andrea <<a href="mailto:andrea.rossetto@videomed.biz">andrea.rossetto@videomed.biz</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">>Have you considered running v4l2-compliance test suite from v4l-utils ?<br>
>It is generally a much easier place to start when validating a V4L2<br>
>driver then GStreamer. It's much more low level and the error message<br>
>are written for Kernel devs.<br>
<br>
I'm trying to build petalinux with v4l2-utils.<br>
<br>
>No g_fmt ?<br>
I've implemented the "vidioc_g_fmt_vid_cap" but it seems that is never<br>
called.<br>
<br>
>This is just a high level error saying that the buffer pool failed to <br>
>start. The buffer pool is doing a bit too much in my opinion, basically <br>
>it could fail at many stages, including for non-kernel related issues. <br>
>Try enabling more traces, like GST_DEBUG="v4l2*:7". <br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">There is a tad more information now, but not much. It fails on a check that validate that all 4 buffers have need queued. When you have v4l2-ctl setup, you should use that tool to see if you can capture at that resolution and with this odd pixel format (rgb is 24bit per pixel format, so it's odd in the sense that it does not align each pixel to a 32bit word).</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Using GST_DEBUG="v4l2*:7" the error is more complete:<br>
<br>
DEBUG         v4l2bufferpool<br>
gstv4l2bufferpool.c:509:gst_v4l2_buffer_pool_set_config:<v4l2src0:pool:src><br>
config GstBufferPoolConfig, caps=(GstCaps)"video/x-raw\,\<br>
format\=\(string\)RGB\,\ width\=\(int\)4096\,\ height\=\(int\)2160\,\<br>
framerate\=\(fraction\)30/1\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\<br>
interlace-mode\=\(string\)progressive", size=(uint)26542080,<br>
min-buffers=(uint)4, max-buffers=(uint)0, allocator=(GstAllocator)"NULL",<br>
params=(GstAllocationParams)NULL, options=(string)<<br>
GstBufferPoolOptionVideoMeta >;<br>
DEBUG         v4l2bufferpool<br>
gstv4l2bufferpool.c:707:gst_v4l2_buffer_pool_start:<v4l2src0:pool:src><br>
activating pool<br>
DEBUG         v4l2bufferpool<br>
gstv4l2bufferpool.c:1414:gst_v4l2_buffer_pool_release_buffer:<v4l2src0:pool:src><br>
release buffer 0x7f900100d0<br>
DEBUG         v4l2bufferpool<br>
gstv4l2bufferpool.c:1414:gst_v4l2_buffer_pool_release_buffer:<v4l2src0:pool:src><br>
release buffer 0x7f900101e0<br>
DEBUG         v4l2bufferpool<br>
gstv4l2bufferpool.c:1414:gst_v4l2_buffer_pool_release_buffer:<v4l2src0:pool:src><br>
release buffer 0x7f900102f0<br>
DEBUG         v4l2bufferpool<br>
gstv4l2bufferpool.c:1414:gst_v4l2_buffer_pool_release_buffer:<v4l2src0:pool:src><br>
release buffer 0x7f90010400<br>
ERROR         v4l2bufferpool<br>
gstv4l2bufferpool.c:888:gst_v4l2_buffer_pool_start:<v4l2src0:pool:src><br>
failed to queue buffers into the capture queue<br>
WARN                 v4l2src<br>
gstv4l2src.c:555:gst_v4l2src_decide_allocation:<v4l2src0> error: Failed to<br>
allocate required memory.<br>
WARN                 v4l2src<br>
gstv4l2src.c:555:gst_v4l2src_decide_allocation:<v4l2src0> error: Buffer pool<br>
activation failed<br>
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to<br>
allocate required memory.<br>
Additional debug info:<br>
../../../git/sys/v4l2/gstv4l2src.c(555): gst_v4l2src_decide_allocation ():<br>
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0:<br>
<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></blockquote></div></div></div>