Xavier NX HDMI output yuv encode issue

Hi,

We are using xavier nx board with Jetpack 4.6.3(r3273) to realize video encode and output through HDMI. For our usage we want to get less loss in video color, the input format is yuv422 through mipi-csi. And app encode it into yuv420.

In default, it will output RGB through HDMI by DRM, so we want to output yuv format to get better video image. But when followed this step to output HDR stream.

the output video color is much worse than default.

So we have these questions

  1. Can the encoding adopt an 8-bit format instead of the 10le format?
  2. Currently, after encoding and decoding the MIPI input signal, we output YUV through the HDR stream and find that the resulting image’s color differs significantly from the original.
  3. Is it possible to obtain the default color conversion matrix (YUV420-RGB) for HDMI output in Jetson?

Hi,
Outputting YUV through HDMI is supported in HDR video playback. It is not supported if your source is YUV422 through MIPI-CSI.

Do you capture frame data through v4l2? If yes, you can try this sample:

/usr/src/jetson_multimedia_api/samples/12_v4l2_camera_cuda

And check if camera preview is good first.

Apologies for the unclear explanation. The camera capture is good.

The main issue we’re facing is that when we input the NV12 8-bit data into DRM for HDMI output in YUV format, converting it to NV12 10-bit HDR as suggested in the reference post. We get results in a significant color deviation from the original data. Our input nvbuffer format is NV12 8bit, we hope the output color by HDMI will be consistent with the input data

Thanks

Hi,
Please confirm the color is good if you follow the steps to do HDR video playback:
Hdmi yuv422 - #10 by DaneLLL

And also suggest use Jetpack 5.1.5 r35.6.2.

Hi,

When we follow the steps to do HDR video playback, the output color is worse than original.

By the way, if we don’t do HDR video playback, just use nv12 yuv420 to DRM output, the defualt format is RGB. So, we want to know if we can modify the color space in this process like change limited to full

Thanks

Hi,

We would suggest check it on Xavier NX devkit with Jetpack 5.1.5

Please refer to
Jetson Xavier NX Limited/Full HDMI Range - #5 by Tom_Bond

Hi,

In this topic, it modifiy the xorg.conf to set full or limited. But our system don’t have desktop and the video is output by APP through multimedia-api. If we change the xorg.conf, can change the output color space by APP?

Thanks

Hi,

Now we just want to get RGB output. And compared with the encoded NV12 color, DRM output RGB color is not good as before. The most difference is the RED color.

the first pic is encoded NV12 color and original color comparsion, it is good as we want.

The second pic is HDMI output color and original comparsion, it’s bad in RED below 75

So, we want to know why after DRM output, the RED color get worse

Thanks!

Hi,
Would suggest update to Jetpack 5.1.5 and check again.

Hi,

We’ll try Jetpack 5.1.5, thanks!

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