V4L2 capture with GStreamer: NVMM & BGRA/BGRx color format

Hi everybody,

we are trying to capture video from a v4l2 source using GStreamer pipeline. We wrote a v4l2 driver for our device. It outputs video in BGRx color format.

We have problems to find a way to capture directly into GPU memory (NVMM).

nvgstcapture and nvv4l2camerasrc do not support the color formats.

Any suggestion on how to solve this?

Thanks
Bruno

Hi,
Yo can download source code of nvv4l2camerasrc and customize it to support BGRx. The matched NvBuffer format is NvBufferColorFormat_XRGB32. All source code is packetized into
Jetson Linux | NVIDIA Developer
L4T Driver Package (BSP) Sources

FYR, there is also jetson_multimedia_api sample demonstrating v4l2 capture:

/usr/src/jetson_multimedia_api/samples/12_camera_v4l2_cuda
1 Like

Hi DaneLLL,

thanks for the help! After updating L4T to 32.6.1 we were able to build the customized nvv4l2camerasrc.

1 Like

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