An error on H265 decoder

Hi,

When I decode the attached 265 stream with the 00_video_decode , the output yuv is different with ffmpeg’s result.
The decode command is :
./video_decode H265 --disable-rendering -o out3.yuv input3.265
input3.265 (4.0 MB)

As the figure below,the left is the result of FFMPEG, and the right is the result of Xavier NX which looks like wrong.

Thank you for your help.

Hi,
Please set this option and check again:

        -f <out_pixfmt>      1 NV12, 2 I420, 3 NV16, 4 NV24 [Default = 1]

The YUV viewer should treat it as I420 so please try -f 2

Hi DaneLLL,

Thanks for your reply.
I tryed -f 2, and the color is correct now. but there’s another problem, it shows some mosaic:

thanks.

Hi DaneLLL,

Can you help to check the mosaic problem?
thanks.

Hi,
It is very likely the h265 stream is corrupted. Please try

$ export DISPLAY=:0(or 1)
$ ./video_decode H265 input3.265

And check if the video playback is good.

I tryed export DISPLAY=:0 and export DISPLAY=:1
./video_decode H265 --disable-rendering -o out3.yuv input3.265
but the same error happen again

Hi,
Looks like the h265 stream cannot be well decoded by hardware decoder. We will check and update.

Hi DaneLLL,
Thank you for your reply.

Hi,
Please replace attached prebuilt lib and try again:

/usr/lib/aarch64-linux-gnu/tegra/libnvparser.so

r32_6_1_TEST_libnvparser.zip (96.4 KB)

1 Like

Hi, DaneLLL

It fixed the issue, thanks you.

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