Xavier NX camera data error , frame rate error

Dear,
I have a problem about the frame rate and image data when I capture image data via Xavier NX.
The image is 1008x2000@50fps with YUYV 16bit(YUV422) format. The follow picture show our board connect.
image
We the connection: fpga–>tc358748(4 lanes) -->Xavier nx CSI A/B port.
image
When I set the dtb parameter as follows :


I can capture 1080p@60fps with format YUYV 16bit when tc358748 set parameter as 1080p@60fps.
But, when I config dtb parameter as follows:

I can capture image 1008x2000 @55fps, and the image data is not right.I have make changs with “mclk_khz” parameter, but there is no changes with the result.
We config the image parameter : 1320 pixels one line, 2250 lines in one frame.
so, the pix_clk_hz is 148500000(1320x2250x50), this get from the webset:
image
The error data is : there are 32 bytes data with 0 at the end of every 2 lines.
image
I do not know where I ignore. The 1080P@60 image that I can capture, means the NX can capture 1008x2000@50, so I think just any parameter is not right.
I make another try: we have a board connect fpga ==> tc358748 ==> hi3559av100, the save fpga program ,the same tc358748 configuration , but my program on hi3559av100 can get the right data. So I think the problem is at Xavier NX program.
The media-ctl information is:
root@nx-desktop:/home/nx# media-ctl -p -d /dev/media0
Media controller API version 0.1.0

Media device information

driver tegra194-vi5
model NVIDIA Tegra Video Input Device
serial
bus info
hw revision 0x3
driver version 0.0.0

Device topology

  • entity 1: imx219 9-0010 (1 pad, 1 link)
    type V4L2 subdev subtype Sensor flags 0
    device node name /dev/v4l-subdev0
    pad0: Source
    [fmt:YUYV8_1X16/1008x2000 field:none colorspace:srgb]
    → “15a00000.nvcsi–3”:0 [ENABLED]

  • entity 3: 15a00000.nvcsi–3 (2 pads, 2 links)
    type V4L2 subdev subtype Unknown flags 0
    device node name /dev/v4l-subdev1
    pad0: Sink
    ← “imx219 9-0010”:0 [ENABLED]
    pad1: Source
    → “vi-output, imx219 9-0010”:0 [ENABLED]

  • entity 6: vi-output, imx219 9-0010 (1 pad, 1 link)
    type Node subtype V4L flags 0
    device node name /dev/video0
    pad0: Sink
    ← “15a00000.nvcsi–3”:1 [ENABLED]

  • entity 18: imx219 10-0010 (1 pad, 1 link)
    type V4L2 subdev subtype Sensor flags 0
    device node name /dev/v4l-subdev2
    pad0: Source
    [fmt:YUYV8_1X16/1008x2000 field:none colorspace:srgb]
    → “15a00000.nvcsi–2”:0 [ENABLED]

  • entity 20: 15a00000.nvcsi–2 (2 pads, 2 links)
    type V4L2 subdev subtype Unknown flags 0
    device node name /dev/v4l-subdev3
    pad0: Sink
    ← “imx219 10-0010”:0 [ENABLED]
    pad1: Source
    → “vi-output, imx219 10-0010”:0 [ENABLED]

  • entity 23: vi-output, imx219 10-0010 (1 pad, 1 link)
    type Node subtype V4L flags 0
    device node name /dev/video1
    pad0: Sink
    ← “15a00000.nvcsi–2”:1 [ENABLED]

  • entity 35: imx219 11-0010 (1 pad, 1 link)
    type V4L2 subdev subtype Sensor flags 0
    device node name /dev/v4l-subdev4
    pad0: Source
    [fmt:YUYV8_1X16/1008x2000 field:none colorspace:srgb]
    → “15a00000.nvcsi–1”:0 [ENABLED]

  • entity 37: 15a00000.nvcsi–1 (2 pads, 2 links)
    type V4L2 subdev subtype Unknown flags 0
    device node name /dev/v4l-subdev5
    pad0: Sink
    ← “imx219 11-0010”:0 [ENABLED]
    pad1: Source
    → “vi-output, imx219 11-0010”:0 [ENABLED]

  • entity 40: vi-output, imx219 11-0010 (1 pad, 1 link)
    type Node subtype V4L flags 0
    device node name /dev/video2
    pad0: Sink
    ← “15a00000.nvcsi–1”:1 [ENABLED]

The v4lt-ctl information is as follows:
root@nx-desktop:/home/nx# v4l2-ctl -d /dev/video0 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Index : 0
Type : Video Capture
Pixel Format: ‘YUYV’
Name : YUYV 4:2:2
Size: Discrete 1008x2000
Interval: Discrete 0.020s (50.000 fps)

Index       : 1
Type        : Video Capture
Pixel Format: 'YUYV'
Name        : YUYV 4:2:2
	Size: Discrete 1008x2000
		Interval: Discrete 0.020s (50.000 fps)

root@nx-desktop:/home/nx#
So, can you help me to solve the problem?
Thank you very much.

Add some information: SDK 32.4.2 version, XavierNX board with emmc.

Please try asking in the Xavier forum, this one is mainly about the x86 graphics drivers.
https://forums.developer.nvidia.com/c/agx-autonomous-machines/jetson-embedded-systems/jetson-xavier-nx/258

Hello generix,
Thank you for your replay.
I will move the topic to Xavier forum. Hope someone can help me.
Thank you.

I can move this over to the Jetson Xavier forum for you.

Best,
Tom K

Duplicated with Xavier NX camera data error - Jetson & Embedded Systems / Jetson Xavier NX - NVIDIA Developer Forums
Let’s track this issue there.

Hello Tomk,
Thank you for your replay.

1 Like

Hello kayccc,
Thank you for your replay.

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