Nvv4l2camerasrc distorts colors in images from IMX290

Hello.

I ported the imx290 driver (which I used on the jetson tx2) to my Jetson AGX Orin with an AVerMedia D315 board. The driver works and with the run of the command:

gst-launch-1.0 nvarguscamerasrc ! ‘video/x-raw(memory:NVMM), width=1920, height=1080, format=(string)NV12, framerate=(fraction)30/1’ ! nvvidconv ! xvimagesink sync=0

The image looks normal.
Also I was able to get the image using the command:

gst-launch-1.0 nvv4l2camerasrc ! nvvidconv ! ‘video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)30/1’ ! nvvidconv ! xvimagesink sync=0 -v

I can see my hand but the colors are distorted.

Could you suggest where the problem might be? Maybe I didn’t write dts correctly or do I need to make changes to the driver?
Why are the colors in the image distorted?

I will provide information that I think can help, if you need anything else please let me know.

tegra-ubuntu:~$ media-ctl -p
Media controller API version 5.10.104
Media device information

driver tegra-camrtc-ca
model NVIDIA Tegra Video Input Device
serial
bus info
hw revision 0x3
driver version 5.10.104
Device topology

  • entity 1: 13e40000.host1x:nvcsi@15a00000- (2 pads, 2 links)
    type V4L2 subdev subtype Unknown flags 0
    device node name /dev/v4l-subdev0
    pad0: Sink
    ← “nv_imx290 2-001a”:0 [ENABLED]
    pad1: Source
    → “vi-output, nv_imx290 2-001a”:0 [ENABLED]
  • entity 4: nv_imx290 2-001a (1 pad, 1 link)
    type V4L2 subdev subtype Sensor flags 0
    device node name /dev/v4l-subdev1
    pad0: Source
    [fmt:SRGGB12_1X12/1920x1080 field:none colorspace:srgb]
    → “13e40000.host1x:nvcsi@15a00000-”:0 [ENABLED]
  • entity 6: vi-output, nv_imx290 2-001a (1 pad, 1 link)
    type Node subtype V4L flags 0
    device node name /dev/video0
    pad0: Sink
    ← “13e40000.host1x:nvcsi@15a00000-”:1 [ENABLED]

hello svl4583,

this IMX290 should be bayer raw sensor, right?
you should refer to Camera Architecture Stack, you should use nvarguscamerasrc plugin.

hello JerryChang,
yes, it’s a bayer raw sensor.
Thanks, I will use nvarguscamerasrc plugin only.

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