Gstreamer v4l2src: Failed to allocate required memory

Nicolas Dufresne nicolas at ndufresne.ca
Tue Mar 26 13:12:00 UTC 2019


Le mar. 26 mars 2019 04 h 55, Andrea <andrea.rossetto at videomed.biz> a
écrit :

> >Have you considered running v4l2-compliance test suite from v4l-utils ?
> >It is generally a much easier place to start when validating a V4L2
> >driver then GStreamer. It's much more low level and the error message
> >are written for Kernel devs.
>
> I'm trying to build petalinux with v4l2-utils.
>
> >No g_fmt ?
> I've implemented the "vidioc_g_fmt_vid_cap" but it seems that is never
> called.
>
> >This is just a high level error saying that the buffer pool failed to
> >start. The buffer pool is doing a bit too much in my opinion, basically
> >it could fail at many stages, including for non-kernel related issues.
> >Try enabling more traces, like GST_DEBUG="v4l2*:7".
>

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).


> Using GST_DEBUG="v4l2*:7" the error is more complete:
>
> DEBUG         v4l2bufferpool
> gstv4l2bufferpool.c:509:gst_v4l2_buffer_pool_set_config:<v4l2src0:pool:src>
> config GstBufferPoolConfig, caps=(GstCaps)"video/x-raw\,\
> format\=\(string\)RGB\,\ width\=\(int\)4096\,\ height\=\(int\)2160\,\
> framerate\=\(fraction\)30/1\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\
> interlace-mode\=\(string\)progressive", size=(uint)26542080,
> min-buffers=(uint)4, max-buffers=(uint)0, allocator=(GstAllocator)"NULL",
> params=(GstAllocationParams)NULL, options=(string)<
> GstBufferPoolOptionVideoMeta >;
> DEBUG         v4l2bufferpool
> gstv4l2bufferpool.c:707:gst_v4l2_buffer_pool_start:<v4l2src0:pool:src>
> activating pool
> DEBUG         v4l2bufferpool
>
> gstv4l2bufferpool.c:1414:gst_v4l2_buffer_pool_release_buffer:<v4l2src0:pool:src>
> release buffer 0x7f900100d0
> DEBUG         v4l2bufferpool
>
> gstv4l2bufferpool.c:1414:gst_v4l2_buffer_pool_release_buffer:<v4l2src0:pool:src>
> release buffer 0x7f900101e0
> DEBUG         v4l2bufferpool
>
> gstv4l2bufferpool.c:1414:gst_v4l2_buffer_pool_release_buffer:<v4l2src0:pool:src>
> release buffer 0x7f900102f0
> DEBUG         v4l2bufferpool
>
> gstv4l2bufferpool.c:1414:gst_v4l2_buffer_pool_release_buffer:<v4l2src0:pool:src>
> release buffer 0x7f90010400
> ERROR         v4l2bufferpool
> gstv4l2bufferpool.c:888:gst_v4l2_buffer_pool_start:<v4l2src0:pool:src>
> failed to queue buffers into the capture queue
> WARN                 v4l2src
> gstv4l2src.c:555:gst_v4l2src_decide_allocation:<v4l2src0> error: Failed to
> allocate required memory.
> WARN                 v4l2src
> gstv4l2src.c:555:gst_v4l2src_decide_allocation:<v4l2src0> error: Buffer
> pool
> activation failed
> ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to
> allocate required memory.
> Additional debug info:
> ../../../git/sys/v4l2/gstv4l2src.c(555): gst_v4l2src_decide_allocation ():
> /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
>
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190326/fb410f72/attachment.html>


More information about the gstreamer-devel mailing list