The demo code of 12_camera_v4l2_cuda is fatal error

I successed compile the demo code of 12_camera_v4l2_cuda , when I ran it , which occured error. My agx board is customized board.
like this:

root@nvidia-desktop:/usr/src/jetson_multimedia_api/samples/12_camera_v4l2_cuda# ./camera_v4l2_cuda
userptr:0x7f8389a000, int :1027
WARN: request_camera_buff(): (line:376) Camera v4l2 buf length is not expected
size :24883200
ERROR: request_camera_buff(): (line:384) Failed to enqueue buffers: Bad address (14)
ERROR: prepare_buffers(): (line:507) Failed to set up camera buff
ERROR: main(): (line:656) Failed to prepare v4l2 buffs
nvbuf_utils: dmabuf_fd 0 mapped entry NOT found
nvbuf_utils: Can not get HW buffer from FD... Exiting...
App run failed

12_camera_v4l2_cuda file :
camera_v4l2_cuda.cpp (18.7 KB)

root@nvidia-desktop:/usr/src/jetson_multimedia_api/samples/12_camera_v4l2_cuda# cat /etc/nv_tegra_release
# R32 (release), REVISION: 6.1, GCID: 27863751, BOARD: t186ref, EABI: aarch64, DATE: Mon Jul 26 19:36:31 UTC 2021

v4l2 driver  upload  the format is V4L2_PIX_FMT_RGB24.
[17142.426377] contiguous chunk is too small 393216/24883200 b
[17697.390987] contiguous chunk is too small 65536/24883200 b

please give some advices.

Please check if the source supports YUV422 such as YUYV or UYVY. RGB24 is not supported. The supported formats are listed in

-f              Set output pixel format of video device (supports only YUYV/YVYU/UYVY/VYUY/GREY/MJPEG)

You may also check Jetson Nano FAQ

Q: I have a USB camera. How can I launch it on Jetson Nano?

I want to confirm which the board of jetson agx xavier can support the mode of V4L2_MEMORY_DMABUF ?
thanks !

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.