Xavier NX HDMI output yuv failed

Hi,

We want to use our custom board with Xavier NX to get HDMI yuv output(Jetpack version is 4.6.3), and we followed this topic. But we failed get the right output

When we use 08_video_dec_drm to output the source, there is only black in screen and the sample prints these err info

nvidia@tegra-ubuntu:~/rccb_color_test$ sudo systemctl stop gdm
nvidia@tegra-ubuntu:~/rccb_color_test$ sudo loginctl terminate-seat seat0
nvidia@tegra-ubuntu:~/rccb_color_test$
nvidia@tegra-ubuntu:~/rccb_color_test$
nvidia@tegra-ubuntu:~/rccb_color_test$
nvidia@tegra-ubuntu:~/rccb_color_test$
nvidia@tegra-ubuntu:~/rccb_color_test$
nvidia@tegra-ubuntu:~/rccb_color_test$ sudo ./video_dec_drm Converted.h265 H265 --disable-ui
nvbuf_utils: Could not get EGL display connection
Set governor to performance before enabling profiler
Using VT number 3
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 279
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NvMMLiteBlockCreate : Block : BlockType = 279
Starting decoder capture loop thread
Input file read complete
Video Resolution: 2560x1440
Query and set capture successful
NvDdkVicConfigure Failed
nvbuffer_transform Failed
Transform failed
NvDdkVicConfigure Failed
nvbuffer_transform Failed
Transform failed
NvDdkVicConfigure Failed
nvbuffer_transform Failed
Transform failed
NvDdkVicConfigure Failed
nvbuffer_transform Failed
Transform failed

Hi,
We don’t hit the issue on Xavier NX developer kit. Please try to decode the file and see if it can be successfully played:

/usr/src/jetson_multimedia_api/data/Video/sample_outdoor_car_1080p_10fps.h264

this file can be decode successfully played. But the out put we detect is also RGB format

Hi,
Please try standard resolution such as 1920x1080. Probably the display device does not support 2560x1440 in HDR mode.

I’ll try, but the err infomation is about after decoding, the frame transformation from yuv to DRM failed. I don’t think this is related to display device.

What we actully want is to get yuv HDMI out, as the case said, the only way is to transform HDR stream? Because we tried encode yuv420 or 422, but the decode output is always RGB.

Hi,

Yes, HDMI outputting YUV is only supported in HDR video playback.

If you have Xavier NX developer kit, please also try it on developer kit.

Thanks,

and how to set hdr mode using mutimedia api? I know in NvDrmRenderer to set

NvDrmRenderer *
NvDrmRenderer::createDrmRenderer(const char *name, uint32_t width,
                               uint32_t height, uint32_t w_x, uint32_t w_y,
                               uint32_t connector, uint32_t crtc,
                               struct drm_tegra_hdr_metadata_smpte_2086 metadata,
                               bool streamHDR)

But ,we tried set the hdr metadata, and get the same failure as ffmepeg way

I get the same result when using 1920x1080

nvidia@tegra-ubuntu:~/rccb_color_test$ sudo ./video_dec_drm Converted.h265 H265 --disable-ui
[sudo] password for nvidia:
nvbuf_utils: Could not get EGL display connection
Set governor to performance before enabling profiler
Using VT number 3
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 279
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NvMMLiteBlockCreate : Block : BlockType = 279
Starting decoder capture loop thread
Input file read complete
Video Resolution: 1920x1080
Query and set capture successful
NvDdkVicConfigure Failed
nvbuffer_transform Failed
Transform failed
NvDdkVicConfigure Failed
nvbuffer_transform Failed
Transform failed
NvDdkVicConfigure Failed
nvbuffer_transform Failed
Transform failed
NvDdkVicConfigure Failed
nvbuffer_transform Failed
Transform failed

Hi,
Please apply the prebuilt lib and try again:

Making sure you're not a bot!
[MMAPI] 07_video_convert sample result not match as expected

Hi,

The jetpack version we used is 4.6.3, and from this prebuilt lib info, it had applied in 4.6.1, right?

Hi,
It is required for Jetpack 4.6.3. Please apply it and try.

I’ll try it, thanks!

Hi,

We applied the prebuilt lib and now we can output yuv format video through HDMI !

Thanks for help!

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