Support for GRAY8 to YUV conversion using nvvidconv in Jetson Xavier L4T-32.1


I was previously using OV2311 sensor in Jetson TX2. This sensor outputs GRAY8 and I will convert it to YUV format using NV video converter. The gstreamer pipeline goes like,

gst-launch-1.0 v4l2src ! "video/x-raw,format=GRAY8" ! nvvidconv ! "video/x-raw(memory:NVMM),format=I420" ! nvoverlaysink

Now, when I’m trying to port the sensor to Jetson Xavier L4T-32.1, I’m not able to convert the GRAY8 to I420 and getting the following errors,

WARNING: erroneous pipeline: could not link v4l2src0 to nvvconv0, nvvconv0 can’t handle caps video/x-raw, format=(string)GRAY8

On running gst-inspect-1.0, I found that nvvidconv plugin no longer supports GRAY8 format.

Can I know why the GRAY8 support has been deprecated?
Is there any plan on adding GRAY8 support?

hello akash.s,

please refer to Topic 1036708 for grayscale sensor supports.
you might also have a try with below commands to use bayer2rgb plugin. thanks

$ gst-launch-1.0 v4l2src device=/dev/video0 ! 'video/x-bayer, format=(string)rggb, width=(int)640, height=(int)480, framerate=(fraction)30/1' ! bayer2rgb ! videoconvert ! xvimagesink -ev