How to solve Pixel format is invalid

Hi All,

I am trying to change v4l2 pixel format from V4L2_PIX_FMT_SRGGB12 to V4L2_PIX_FMT_SBGGR12.

But I always got
image

And device had define the V4L2_PIX_FMT_SBGGR12.
image

In Xavier device. I can correctly get V4L2_PIX_FMT_SBGGR12.

What cause them different and How to solve it?

hello syan,

it looks you’re still working with kernel v4.9, may I also know which Jetpack release version it is?
furthermore, please share the v4l format dumps. i.e. $ v4l2-ctl -d /dev/video0 --list-formats-ext

Hi @JerryChang,

Here’s Orin Jetpack version and v4l format dumps.

And Xavier Jetpack version and v4l format dumps.

You need to add the BG12 to camera_common.c in the camera_common_color_fmts{}

Thanks

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