Gstreamer v4l2src: Failed to allocate required memory

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Gstreamer v4l2src: Failed to allocate required memory

Andrea
Hi,
I'm writing a v4l2 driver but I've some problems when is used by gstreamer
pipeline. I've implemented theese ioctl operations:

vidioc_querycap
vidioc_s_fmt_vid_cap
vidioc_try_fmt_vid_cap
vidioc_enum_frameintervals
vidioc_enum_framesizes
vidioc_enum_input
vidioc_enum_fmt_vid_cap
When I run the gstreamer pipeline (gst-launch-1.0 v4l2src !
video/x-raw,format=RGB,width=4096,height=2160,framerate=60/1 ! fakesink) I
receive this error:

/*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:
Buffer pool activation failed*/

This is some of the debug output from gstreamer:
/*
DEBUG                   v4l2
gstv4l2object.c:2858:gst_v4l2_object_setup_pool:<v4l2src0> initializing the
capture system
INFO                    v4l2
gstv4l2object.c:2882:gst_v4l2_object_setup_pool:<v4l2src0> accessing buffers
via mode 1
LOG                     v4l2
gstv4l2object.c:2891:gst_v4l2_object_setup_pool:<v4l2src0> initiating buffer
pool
DEBUG                   v4l2
gstv4l2object.c:4035:gst_v4l2_object_decide_allocation:<v4l2src0> decide
allocation
DEBUG                   v4l2
gstv4l2object.c:4061:gst_v4l2_object_decide_allocation:<v4l2src0>
allocation: size:0 min:0 max:0 pool:(NULL)
DEBUG                   v4l2
gstv4l2object.c:4088:gst_v4l2_object_decide_allocation:<v4l2src0> read/write
mode: no downstream pool, using our own
DEBUG                   v4l2
gstv4l2object.c:4195:gst_v4l2_object_decide_allocation:<v4l2src0> setting
own pool config to GstBufferPoolConfig, caps=(GstCaps)"video/x-raw\,\
format\=\(string\)RGB\,\ width\=\(int\)4096\,\ height\=\(int\)2160\,\
framerate\=\(fraction\)60/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;
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:
Buffer pool activation failed
Execution ended after 0:00:00.410428919
Setting pipeline to PAUSED ...
LOG                     v4l2
gstv4l2object.c:3913:gst_v4l2_object_unlock:<v4l2src0> start flushing
Setting pipeline to READY ...
LOG                     v4l2
gstv4l2object.c:3913:gst_v4l2_object_unlock:<v4l2src0> start flushing
LOG                     v4l2
gstv4l2object.c:3926:gst_v4l2_object_unlock_stop:<v4l2src0> stop flushing
DEBUG                   v4l2
gstv4l2object.c:3937:gst_v4l2_object_stop:<v4l2src0> stopping
DEBUG                   v4l2
gstv4l2object.c:3945:gst_v4l2_object_stop:<v4l2src0> deactivating pool
Setting pipeline to NULL ...
DEBUG                   v4l2 v4l2_calls.c:719:gst_v4l2_close:<v4l2src0>
Trying to close /dev/video0
DEBUG                   v4l2
v4l2_calls.c:464:gst_v4l2_empty_lists:<v4l2src0> deleting enumerations
Freeing pipeline ...*/

I can't find the cause of the error, maybe I forgot an ioctl operation?

Thank you



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer v4l2src: Failed to allocate required memory

Nicolas Dufresne-5
Le lundi 25 mars 2019 à 02:22 -0500, Andrea a écrit :
> Hi,
> I'm writing a v4l2 driver but I've some problems when is used by gstreamer
> pipeline. I've implemented theese ioctl operations:

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.

https://git.linuxtv.org/v4l-utils.git/

>
> vidioc_querycap
> vidioc_s_fmt_vid_cap
> vidioc_try_fmt_vid_cap
No g_fmt ?

> vidioc_enum_frameintervals
> vidioc_enum_framesizes
> vidioc_enum_input
> vidioc_enum_fmt_vid_cap
> When I run the gstreamer pipeline (gst-launch-1.0 v4l2src !
> video/x-raw,format=RGB,width=4096,height=2160,framerate=60/1 ! fakesink) I
> receive this error:

Un-related, but use fakevideosink for testing v4l2src. This is the only
way to avoid copy path.

>
> /*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:
> Buffer pool activation failed*/
>
> This is some of the debug output from gstreamer:
> /*
> DEBUG                   v4l2
> gstv4l2object.c:2858:gst_v4l2_object_setup_pool:<v4l2src0> initializing the
> capture system
> INFO                    v4l2
> gstv4l2object.c:2882:gst_v4l2_object_setup_pool:<v4l2src0> accessing buffers
> via mode 1
> LOG                     v4l2
> gstv4l2object.c:2891:gst_v4l2_object_setup_pool:<v4l2src0> initiating buffer
> pool
> DEBUG                   v4l2
> gstv4l2object.c:4035:gst_v4l2_object_decide_allocation:<v4l2src0> decide
> allocation
> DEBUG                   v4l2
> gstv4l2object.c:4061:gst_v4l2_object_decide_allocation:<v4l2src0>
> allocation: size:0 min:0 max:0 pool:(NULL)
> DEBUG                   v4l2
> gstv4l2object.c:4088:gst_v4l2_object_decide_allocation:<v4l2src0> read/write
> mode: no downstream pool, using our own
> DEBUG                   v4l2
> gstv4l2object.c:4195:gst_v4l2_object_decide_allocation:<v4l2src0> setting
> own pool config to GstBufferPoolConfig, caps=(GstCaps)"video/x-raw\,\
> format\=\(string\)RGB\,\ width\=\(int\)4096\,\ height\=\(int\)2160\,\
> framerate\=\(fraction\)60/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;
> ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to
> allocate required memory.

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

Also, try most recent version of GStreamer (head of 1.14 branch, or
master branch), sometimes we already have patches queued for the
following release.

> Additional debug info:
> ../../../git/sys/v4l2/gstv4l2src.c(555): gst_v4l2src_decide_allocation ():
> /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
> Buffer pool activation failed
> Execution ended after 0:00:00.410428919
> Setting pipeline to PAUSED ...
> LOG                     v4l2
> gstv4l2object.c:3913:gst_v4l2_object_unlock:<v4l2src0> start flushing
> Setting pipeline to READY ...
> LOG                     v4l2
> gstv4l2object.c:3913:gst_v4l2_object_unlock:<v4l2src0> start flushing
> LOG                     v4l2
> gstv4l2object.c:3926:gst_v4l2_object_unlock_stop:<v4l2src0> stop flushing
> DEBUG                   v4l2
> gstv4l2object.c:3937:gst_v4l2_object_stop:<v4l2src0> stopping
> DEBUG                   v4l2
> gstv4l2object.c:3945:gst_v4l2_object_stop:<v4l2src0> deactivating pool
> Setting pipeline to NULL ...
> DEBUG                   v4l2 v4l2_calls.c:719:gst_v4l2_close:<v4l2src0>
> Trying to close /dev/video0
> DEBUG                   v4l2
> v4l2_calls.c:464:gst_v4l2_empty_lists:<v4l2src0> deleting enumerations
> Freeing pipeline ...*/
>
> I can't find the cause of the error, maybe I forgot an ioctl operation?
>
> Thank you
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer v4l2src: Failed to allocate required memory

Andrea
>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/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer v4l2src: Failed to allocate required memory

Nicolas Dufresne-5


Le mar. 26 mars 2019 04 h 55, Andrea <[hidden email]> 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
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer v4l2src: Failed to allocate required memory

Andrea
This post was updated on .
I've installed v4l2-utils and run v4l2-compliance.

v4l2-compliance SHA   : not available

Driver Info:
        Driver name   : video
        Card type     : PL video
        Bus info      : platform:Pl-0.0.0
        Driver version: 4.14.0
        Capabilities  : 0x81200001
                Video Capture
                Read/Write
                Extended Pix Format
                Device Capabilities
        Device Caps   : 0x01200001
                Video Capture
                Read/Write
                Extended Pix Format

Compliance test for device /dev/video0 (not using libv4l2):

Required ioctls:
        test VIDIOC_QUERYCAP: OK

Allow for multiple opens:
        test second video open: OK
        test VIDIOC_QUERYCAP: OK
        test VIDIOC_G/S_PRIORITY: OK
        test for unlimited opens: OK

Debug ioctls:
        test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
        test VIDIOC_LOG_STATUS: OK (Not Supported)

Input ioctls:
        test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported)
        test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
        test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported)
        test VIDIOC_ENUMAUDIO: OK (Not Supported)
        test VIDIOC_G/S/ENUMINPUT: OK
        test VIDIOC_G/S_AUDIO: OK (Not Supported)
        Inputs: 1 Audio Inputs: 0 Tuners: 0

Output ioctls:
        test VIDIOC_G/S_MODULATOR: OK (Not Supported)
        test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
        test VIDIOC_ENUMAUDOUT: OK (Not Supported)
        test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
        test VIDIOC_G/S_AUDOUT: OK (Not Supported)
        Outputs: 0 Audio Outputs: 0 Modulators: 0

Input/Output configuration ioctls:
        test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported)
        test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported)
        test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported)
        test VIDIOC_G/S_EDID: OK (Not Supported)

Test input 0:

        Control ioctls:
                test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported)
                test VIDIOC_QUERYCTRL: OK (Not Supported)
                test VIDIOC_G/S_CTRL: OK (Not Supported)
                test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported)
                test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported)
                test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
                Standard Controls: 0 Private Controls: 0

        Format ioctls:
                test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK
                warn:
../../../v4l-utils-1.12.3/utils/v4l2-compliance/v4l2-test-formats.cpp(1121):
V4L2_MODE_HIGHQUALITY is poorly defined
                warn:
../../../v4l-utils-1.12.3/utils/v4l2-compliance/v4l2-test-formats.cpp(1121):
V4L2_MODE_HIGHQUALITY is poorly defined
                test VIDIOC_G/S_PARM: OK
                test VIDIOC_G_FBUF: OK (Not Supported)
                test VIDIOC_G_FMT: OK
                warn:
../../../v4l-utils-1.12.3/utils/v4l2-compliance/v4l2-test-formats.cpp(717):
TRY_FMT cannot handle an invalid pixelformat.
                warn:
../../../v4l-utils-1.12.3/utils/v4l2-compliance/v4l2-test-formats.cpp(718):
This may or may not be a problem. For more information see:
                warn:
../../../v4l-utils-1.12.3/utils/v4l2-compliance/v4l2-test-formats.cpp(719):
http://www.mail-archive.com/linux-media@vger.kernel.org/msg56550.html
                test VIDIOC_TRY_FMT: OK
                warn:
../../../v4l-utils-1.12.3/utils/v4l2-compliance/v4l2-test-formats.cpp(977):
S_FMT cannot handle an invalid pixelformat.
                warn:
../../../v4l-utils-1.12.3/utils/v4l2-compliance/v4l2-test-formats.cpp(978):
This may or may not be a problem. For more information see:
                warn:
../../../v4l-utils-1.12.3/utils/v4l2-compliance/v4l2-test-formats.cpp(979):
http://www.mail-archive.com/linux-media@vger.kernel.org/msg56550.html
                test VIDIOC_S_FMT: OK
                test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
                test Cropping: OK (Not Supported)
                test Composing: OK (Not Supported)
                test Scaling: OK (Not Supported)

        Codec ioctls:
                test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
                test VIDIOC_G_ENC_INDEX: OK (Not Supported)
                test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)

        Buffer ioctls:
                test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported)
                test VIDIOC_EXPBUF: OK (Not Supported)

Test input 0:


Total: 43, Succeeded: 43, Failed: 0, Warnings: 8

After solving some fail, lanching again the pipeline the error did not
change:

DEBUG                   v4l2 gstv4l2object.c:3095:gst_v4l2_object_save_format:<v4l2src0> Got sizeimage 26542080
DEBUG                   v4l2 gstv4l2object.c:2858:gst_v4l2_object_setup_pool:<v4l2src0> initializing the capture system
INFO                    v4l2 gstv4l2object.c:2882:gst_v4l2_object_setup_pool:<v4l2src0> accessing buffers via mode 1
LOG                     v4l2 gstv4l2object.c:2891:gst_v4l2_object_setup_pool:<v4l2src0> initiating buffer pool
WARN           v4l2allocator gstv4l2allocator.c:660:gst_v4l2_allocator_new:<v4l2src0:pool:src:allocator> Could not probe supported memory type, assuming MMAP is supported, this is expected for older drivers not  yet ported to videobuf2 framework
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\,\ colorimetry\=\(string\)sRGB", size=(uint)26542080, min-buffers=(uint)0, max-buffers=(uint)0, allocator=(GstAllocator)"NULL", params=(GstAllocationParams)NULL;
DEBUG                   v4l2 gstv4l2object.c:4035:gst_v4l2_object_decide_allocation:<v4l2src0> decide allocation
DEBUG                   v4l2 gstv4l2object.c:4061:gst_v4l2_object_decide_allocation:<v4l2src0> allocation: size:26542080 min:2 max:0 pool:(NULL)
DEBUG                   v4l2 gstv4l2object.c:4088:gst_v4l2_object_decide_allocation:<v4l2src0> read/write mode: no downstream pool, using our own
DEBUG                   v4l2 gstv4l2object.c:4186:gst_v4l2_object_decide_allocation:<v4l2src0> activate Video Meta
DEBUG                   v4l2 gstv4l2object.c:4195:gst_v4l2_object_decide_allocation:<v4l2src0> setting own pool config to 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\,\ colorimetry\=\(string\)sRGB", size=(uint)26542080, min-buffers=(uint)4, max-buffers=(uint)0, allocator=(GstAllocator)"NULL", params=(GstAllocationParams)NULL, options=(string)< GstBufferPoolOptionVideoMeta >;
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\,\ colorimetry\=\(string\)sRGB", 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 0x7fb40110e0
DEBUG         v4l2bufferpool gstv4l2bufferpool.c:1414:gst_v4l2_buffer_pool_release_buffer:<v4l2src0:pool:src> release buffer 0x7fb40111f0
DEBUG         v4l2bufferpool gstv4l2bufferpool.c:1414:gst_v4l2_buffer_pool_release_buffer:<v4l2src0:pool:src> release buffer 0x7fb4011300
DEBUG         v4l2bufferpool gstv4l2bufferpool.c:1414:gst_v4l2_buffer_pool_release_buffer:<v4l2src0:pool:src> release buffer 0x7fb4011410
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:
Buffer pool activation failed
Execution ended after 0:00:01.053742187
Setting pipeline to PAUSED ...
LOG                     v4l2 gstv4l2object.c:3913:gst_v4l2_object_unlock:<v4l2src0> start flushing
Setting pipeline to READY ...
LOG                     v4l2 gstv4l2object.c:3913:gst_v4l2_object_unlock:<v4l2src0> start flushing
LOG                     v4l2 gstv4l2object.c:3926:gst_v4l2_object_unlock_stop:<v4l2src0> stop flushing
DEBUG                   v4l2 gstv4l2object.c:3937:gst_v4l2_object_stop:<v4l2src0> stopping
DEBUG                   v4l2 gstv4l2object.c:3945:gst_v4l2_object_stop:<v4l2src0> deactivating pool
LOG            v4l2allocator gstv4l2allocator.c:407:gst_v4l2_allocator_dispose:<v4l2src0:pool:src:allocator> called
LOG            v4l2allocator gstv4l2allocator.c:424:gst_v4l2_allocator_finalize:<v4l2src0:pool:src:allocator> called
Setting pipeline to NULL ...
DEBUG                   v4l2 v4l2_calls.c:719:gst_v4l2_close:<v4l2src0> Trying to close /dev/video0
DEBUG                   v4l2 v4l2_calls.c:464:gst_v4l2_empty_lists:<v4l2src0> deleting enumerations
Freeing pipeline ...
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer v4l2src: Failed to allocate required memory

Nicolas Dufresne-5


Le mer. 27 mars 2019 04 h 55, Andrea <[hidden email]> a écrit :
I've installed v4l2-utils and run v4l2-compliance.

v4l2-compliance SHA   : not available

Driver Info:
        Driver name   : video
        Card type     : PL video
        Bus info      : platform:Pl-0.0.0
        Driver version: 4.14.0
        Capabilities  : 0x81200001
                Video Capture
                Read/Write
                Extended Pix Format
                Device Capabilities
        Device Caps   : 0x01200001
                Video Capture
                Read/Write
                Extended Pix Format

Compliance test for device /dev/video0 (not using libv4l2):

Required ioctls:
        test VIDIOC_QUERYCAP: OK

Allow for multiple opens:
        test second video open: OK
        test VIDIOC_QUERYCAP: OK
        test VIDIOC_G/S_PRIORITY: OK
        test for unlimited opens: OK

Debug ioctls:
        test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
        test VIDIOC_LOG_STATUS: OK (Not Supported)

Input ioctls:
        test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported)
        test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
        test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported)
        test VIDIOC_ENUMAUDIO: OK (Not Supported)
        test VIDIOC_G/S/ENUMINPUT: OK
        test VIDIOC_G/S_AUDIO: OK (Not Supported)
        Inputs: 1 Audio Inputs: 0 Tuners: 0

Output ioctls:
        test VIDIOC_G/S_MODULATOR: OK (Not Supported)
        test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
        test VIDIOC_ENUMAUDOUT: OK (Not Supported)
        test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
        test VIDIOC_G/S_AUDOUT: OK (Not Supported)
        Outputs: 0 Audio Outputs: 0 Modulators: 0

Input/Output configuration ioctls:
        test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported)
        test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported)
        test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported)
        test VIDIOC_G/S_EDID: OK (Not Supported)

Test input 0:

        Control ioctls:
                test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported)
                test VIDIOC_QUERYCTRL: OK (Not Supported)
                test VIDIOC_G/S_CTRL: OK (Not Supported)
                test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported)
                test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported)
                test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
                Standard Controls: 0 Private Controls: 0

        Format ioctls:
                test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK
                warn:
../../../v4l-utils-1.12.3/utils/v4l2-compliance/v4l2-test-formats.cpp(1121):
V4L2_MODE_HIGHQUALITY is poorly defined
                warn:
../../../v4l-utils-1.12.3/utils/v4l2-compliance/v4l2-test-formats.cpp(1121):
V4L2_MODE_HIGHQUALITY is poorly defined
                test VIDIOC_G/S_PARM: OK
                test VIDIOC_G_FBUF: OK (Not Supported)
                test VIDIOC_G_FMT: OK
                warn:
../../../v4l-utils-1.12.3/utils/v4l2-compliance/v4l2-test-formats.cpp(717):
TRY_FMT cannot handle an invalid pixelformat.
                warn:
../../../v4l-utils-1.12.3/utils/v4l2-compliance/v4l2-test-formats.cpp(718):
This may or may not be a problem. For more information see:
                warn:
../../../v4l-utils-1.12.3/utils/v4l2-compliance/v4l2-test-formats.cpp(719):
http://www.mail-archive.com/linux-media@.../msg56550.html
                test VIDIOC_TRY_FMT: OK
                warn:
../../../v4l-utils-1.12.3/utils/v4l2-compliance/v4l2-test-formats.cpp(977):
S_FMT cannot handle an invalid pixelformat.
                warn:
../../../v4l-utils-1.12.3/utils/v4l2-compliance/v4l2-test-formats.cpp(978):
This may or may not be a problem. For more information see:
                warn:
../../../v4l-utils-1.12.3/utils/v4l2-compliance/v4l2-test-formats.cpp(979):
http://www.mail-archive.com/linux-media@.../msg56550.html
                test VIDIOC_S_FMT: OK
                test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
                test Cropping: OK (Not Supported)
                test Composing: OK (Not Supported)
                test Scaling: OK (Not Supported)

        Codec ioctls:
                test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
                test VIDIOC_G_ENC_INDEX: OK (Not Supported)
                test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)

        Buffer ioctls:
                test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported)
                test VIDIOC_EXPBUF: OK (Not Supported)

Test input 0:


Total: 43, Succeeded: 43, Failed: 0, Warnings: 8

After solving some fail, lanching again the pipeline the error did not
change:

No idea, did you test doing capture with v4l2-ctl utility, like I suggested ?


DEBUG                   v4l2
gstv4l2object.c:4061:gst_v4l2_object_decide_allocation:<v4l2src0>
allocation: size:26542080 min:2 max:0 pool:(NULL)
DEBUG                   v4l2
gstv4l2object.c:4088:gst_v4l2_object_decide_allocation:<v4l2src0> read/write
mode: no downstream pool, using our own
DEBUG                   v4l2
gstv4l2object.c:4186:gst_v4l2_object_decide_allocation:<v4l2src0> activate
Video Meta
DEBUG                   v4l2
gstv4l2object.c:4195:gst_v4l2_object_decide_allocation:<v4l2src0> setting
own pool config to 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\,\ colorimetry\=\(string\)sRGB",
size=(uint)26542080, min-buffers=(uint)4, max-buffers=(uint)0,
allocator=(GstAllocator)"NULL", params=(GstAllocationParams)NULL,
options=(string)< GstBufferPoolOptionVideoMeta >;
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\,\ colorimetry\=\(string\)sRGB",
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 0x7f7c0110e0
DEBUG         v4l2bufferpool
gstv4l2bufferpool.c:1414:gst_v4l2_buffer_pool_release_buffer:<v4l2src0:pool:src>
release buffer 0x7f7c0111f0
DEBUG         v4l2bufferpool
gstv4l2bufferpool.c:1414:gst_v4l2_buffer_pool_release_buffer:<v4l2src0:pool:src>
release buffer 0x7f7c011300
DEBUG         v4l2bufferpool
gstv4l2bufferpool.c:1414:gst_v4l2_buffer_pool_release_buffer:<v4l2src0:pool:src>
release buffer 0x7f7c011410
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:
Buffer pool activation failed




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer v4l2src: Failed to allocate required memory

Nicolas Dufresne-5
In reply to this post by Andrea


Le mer. 27 mars 2019 04 h 55, Andrea <[hidden email]> a écrit :
I've installed v4l2-utils and run v4l2-compliance.

v4l2-compliance SHA   : not available

Driver Info:
        Driver name   : video
        Card type     : PL video
        Bus info      : platform:Pl-0.0.0
        Driver version: 4.14.0
        Capabilities  : 0x81200001
                Video Capture
                Read/Write
                Extended Pix Format
                Device Capabilities
        Device Caps   : 0x01200001
                Video Capture
                Read/Write
                Extended Pix Format

Compliance test for device /dev/video0 (not using libv4l2):

Required ioctls:
        test VIDIOC_QUERYCAP: OK

Allow for multiple opens:
        test second video open: OK
        test VIDIOC_QUERYCAP: OK
        test VIDIOC_G/S_PRIORITY: OK
        test for unlimited opens: OK

Debug ioctls:
        test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
        test VIDIOC_LOG_STATUS: OK (Not Supported)

Input ioctls:
        test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported)
        test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
        test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported)
        test VIDIOC_ENUMAUDIO: OK (Not Supported)
        test VIDIOC_G/S/ENUMINPUT: OK
        test VIDIOC_G/S_AUDIO: OK (Not Supported)
        Inputs: 1 Audio Inputs: 0 Tuners: 0

Output ioctls:
        test VIDIOC_G/S_MODULATOR: OK (Not Supported)
        test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
        test VIDIOC_ENUMAUDOUT: OK (Not Supported)
        test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
        test VIDIOC_G/S_AUDOUT: OK (Not Supported)
        Outputs: 0 Audio Outputs: 0 Modulators: 0

Input/Output configuration ioctls:
        test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported)
        test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported)
        test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported)
        test VIDIOC_G/S_EDID: OK (Not Supported)

Test input 0:

        Control ioctls:
                test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported)
                test VIDIOC_QUERYCTRL: OK (Not Supported)
                test VIDIOC_G/S_CTRL: OK (Not Supported)
                test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported)
                test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported)
                test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
                Standard Controls: 0 Private Controls: 0

        Format ioctls:
                test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK
                warn:
../../../v4l-utils-1.12.3/utils/v4l2-compliance/v4l2-test-formats.cpp(1121):
V4L2_MODE_HIGHQUALITY is poorly defined
                warn:
../../../v4l-utils-1.12.3/utils/v4l2-compliance/v4l2-test-formats.cpp(1121):
V4L2_MODE_HIGHQUALITY is poorly defined
                test VIDIOC_G/S_PARM: OK
                test VIDIOC_G_FBUF: OK (Not Supported)
                test VIDIOC_G_FMT: OK
                warn:
../../../v4l-utils-1.12.3/utils/v4l2-compliance/v4l2-test-formats.cpp(717):
TRY_FMT cannot handle an invalid pixelformat.
                warn:
../../../v4l-utils-1.12.3/utils/v4l2-compliance/v4l2-test-formats.cpp(718):
This may or may not be a problem. For more information see:
                warn:
../../../v4l-utils-1.12.3/utils/v4l2-compliance/v4l2-test-formats.cpp(719):
http://www.mail-archive.com/linux-media@.../msg56550.html
                test VIDIOC_TRY_FMT: OK
                warn:
../../../v4l-utils-1.12.3/utils/v4l2-compliance/v4l2-test-formats.cpp(977):
S_FMT cannot handle an invalid pixelformat.
                warn:
../../../v4l-utils-1.12.3/utils/v4l2-compliance/v4l2-test-formats.cpp(978):
This may or may not be a problem. For more information see:
                warn:
../../../v4l-utils-1.12.3/utils/v4l2-compliance/v4l2-test-formats.cpp(979):
http://www.mail-archive.com/linux-media@.../msg56550.html
                test VIDIOC_S_FMT: OK
                test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
                test Cropping: OK (Not Supported)
                test Composing: OK (Not Supported)
                test Scaling: OK (Not Supported)

        Codec ioctls:
                test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
                test VIDIOC_G_ENC_INDEX: OK (Not Supported)
                test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)

        Buffer ioctls:
                test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported)

Wat!?! I need to speak to Hans, this should really be an error. Basically, allocating buffers is not supported by your driver, so it's totally unusable.

                test VIDIOC_EXPBUF: OK (Not Supported)


Test input 0:


Total: 43, Succeeded: 43, Failed: 0, Warnings: 8

After solving some fail, lanching again the pipeline the error did not
change:

DEBUG                   v4l2
gstv4l2object.c:4061:gst_v4l2_object_decide_allocation:<v4l2src0>
allocation: size:26542080 min:2 max:0 pool:(NULL)
DEBUG                   v4l2
gstv4l2object.c:4088:gst_v4l2_object_decide_allocation:<v4l2src0> read/write
mode: no downstream pool, using our own
DEBUG                   v4l2
gstv4l2object.c:4186:gst_v4l2_object_decide_allocation:<v4l2src0> activate
Video Meta
DEBUG                   v4l2
gstv4l2object.c:4195:gst_v4l2_object_decide_allocation:<v4l2src0> setting
own pool config to 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\,\ colorimetry\=\(string\)sRGB",
size=(uint)26542080, min-buffers=(uint)4, max-buffers=(uint)0,
allocator=(GstAllocator)"NULL", params=(GstAllocationParams)NULL,
options=(string)< GstBufferPoolOptionVideoMeta >;
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\,\ colorimetry\=\(string\)sRGB",
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 0x7f7c0110e0
DEBUG         v4l2bufferpool
gstv4l2bufferpool.c:1414:gst_v4l2_buffer_pool_release_buffer:<v4l2src0:pool:src>
release buffer 0x7f7c0111f0
DEBUG         v4l2bufferpool
gstv4l2bufferpool.c:1414:gst_v4l2_buffer_pool_release_buffer:<v4l2src0:pool:src>
release buffer 0x7f7c011300
DEBUG         v4l2bufferpool
gstv4l2bufferpool.c:1414:gst_v4l2_buffer_pool_release_buffer:<v4l2src0:pool:src>
release buffer 0x7f7c011410
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:
Buffer pool activation failed




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer v4l2src: Failed to allocate required memory

Andrea
This is my first driver, so it can possible (indeed it is very probable) I'm
making some mistakes. For now I've implemented this ioctl operations:

vidioc_querycap
vidioc_s_parm
vidioc_g_parm
vidioc_g_input
vidioc_s_input
vidioc_g_output
vidioc_s_output
vidioc_reqbufs
vidioc_querybuf
vidioc_qbuf
vidioc_dqbuf
vidioc_enum_fmt_vid_cap
vidioc_enum_framesizes
vidioc_enum_frameintervals
vidioc_enum_input
vidioc_try_fmt_vid_cap
vidioc_s_fmt_vid_cap
vidioc_g_fmt_vid_cap

I'm making some other tests and changes to find the error/s.




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel