AGX Orin 35.5.0 V4L2_MEMORY_USERPTR VIDIOC_QBUF returned -1 (Invalid argument)

I am able to stream with mmap but can’t able to do so with userptr.

v4l2-utils install by apt. version:1.18.0

v4l2-ctl -d /dev/video0 --stream-user
VIDIOC_QBUF returned -1 (Invalid argument)

https://forums.developer.nvidia.com/t/jetson-agx-v4l2-memory-userptr-vidioc-qbuf-returned-1-invalid-argument/264687

https://forums.developer.nvidia.com/t/v4l2-capture-jitter-problem/147386/7

I tried the methods mentioned in the topic above.

Using the v4l-ctl -d /dev/video0 —stream-user is normal but use v4l-code VIDIOC_QBUF Still wrong.

If anyone can help me, I would be very grateful!

Try this if no problem you can reference to MMAPI sample code to implement the v4l APP to user USERPTR

v4l2-ctl-r36 (567.2 KB)