0:00:52.295323652 12723 0x55bd589070 ERROR v4l2allocator gstv4l2allocator.c:1247:gst_v4l2_allocator_qbuf:<v4l2src0:pool:src:allocator> failed queueing buffer X: Bad file descriptor
0:00:52.295424227 12723 0x55bd589070 ERROR v4l2bufferpool gstv4l2bufferpool.c:1112:gst_v4l2_buffer_pool_qbuf:<v4l2src0:pool:src> could not queue a buffer X
where X is usually 0-3. I only get this error if I use “inputVideo.grab();” + “inputVideo.retrieve(image);”. If I run all the other commands without actually grabbing video, I do not see this error.
The error is distracting and ultimately has no effect on me grabbing video but I would like to get rid of the error message as it is distracting. Thanks.
OpenCV(4.5.5) /home/nano/opencv/modules/videoio/src/cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name
of file): v4l2src device=/dev/video1 ! video/x-raw, width=1280, height=720 ! videoconvert ! video/x-raw,format=BGR ! appsink in function 'icvExtrac
tPattern'
I tried this with GST_DEBUG=2 but the open method fails:
[ WARN:0@3.941] global /home/nano/opencv/modules/videoio/src/cap_gstreamer.cpp (2402) handleMessage OpenCV | GStreamer warning: Embedded video playb
ack halted; module v4l2src0 reported: Internal data stream error.
[ WARN:0@3.941] global /home/nano/opencv/modules/videoio/src/cap_gstreamer.cpp (1356) open OpenCV | GStreamer warning: unable to start pipeline
[ WARN:0@3.941] global /home/nano/opencv/modules/videoio/src/cap_gstreamer.cpp (862) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
Hi,
If you don’t hit any real issue such as failing to launch the camera in next run, it should be harmless and can be ignored. You can download source code of gst-v4l2, remove the prints, and rebuild/replace libgstnvvideo4linux2.so