Gstreamer v4l2src: Failed to allocate required memory

Andrea andrea.rossetto at videomed.biz
Tue Mar 26 08:22:41 UTC 2019


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

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/


More information about the gstreamer-devel mailing list