Support for RAW12 / GREY12 in Jetson Nano

We have a monochrome sensor VG5761 supports RAW10, RAW12 and RAW16
using v4l2-ctl we are able to verify the sensor is working fine
We want an optimized pipeline to run @ 60fps pipeline
None of the gstreamer plugins support them to capture this format
Does Nano supports these formats or not ?

Hi,
There is no existing solution for the formats. If you can capture frames through v4l2-ctl command, can refer to the sample for capturing frame data into CUDA buffer directly:

/usr/src/jetson_multimedia_api/samples/v4l2cuda

And then customize nvv4l2camerasrc to add the code of converting frame data info YUV420 or NV12. So that you can link to next element like nvvidconv or nvv4l2h264enc.

@DaneLLL
v4l2cuda uses NvBufferColorFormat_GRAY8
but there is no support for GRAY10, GRAY12 or GRAY16 in NvBufferColorFormat

Also nvvidconv converter supports input format

 format: { (string)I420, (string)I420_10LE, (string)P010_10LE, (string)UYVY, (string)YUY2, (string)YVYU, (string)NV12, (string)NV16, (string)NV24, (string)GRAY8, (string)BGRx, (string)RGBA, (string)Y42B }

it is not supporting GRAY10 ,GRAY12 or GRAY16.
how to convert GRAY12 to I420 / NV12 to encode it
There is no hardware plugin to do the conversion
how can we achieve the performance for 60fps ?

Hi,
There is no hardware plugin to do the conversion. You would need to implement CUDA code for converting GRAY10/12/16 to either NvBuffer-supported format.

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