Red stripes using nvoverlaysink

We use AGX xavier to display a 4K H264 video. When the video played by the nveglglessink, we found the video is not smooth at all. The pipeline is shown as below:
$ gst-launch-1.0 -v filesrc location=bbb_sunflower_2160p_60fps_normal.mp4 ! qtdemux ! h264parse ! nvv4l2decoder ! queue ! nvegltransform ! fpsdisplaysink text-overlay=0 video-sink=nveglglessink sync=0

Then we use the nvoverlaysink. the video looks smooth, but there are stripes on the screen. The pipeline is shown as below:
$ gst-launch-1.0 -v filesrc location=bbb_sunflower_2160p_60fps_normal.mp4 ! qtdemux ! h264parse ! queue ! nvv4l2decoder ! queue ! nvoverlaysink

The video is attached. How can we solve this problem? Thank you.

Sorry I don’t know how to add my video attachment. The red stripes appear ervey time, and if I click the mouse, the whole screen will become red.

please dump sudo cat /sys/kernel/debug/tegradc.0/stats when the red screen happened.

When the screen become red, I can’t quit the display. Neither the mouse nor the keyboard respond.

Hi,
Please check and confirm if the TV supports 4K resolution. If it does not support 4K display mode, you will see the screen becomes whole red.

If the TV does not support 4K, you can downscale the frames from 4K to 1080p through nvvidconv plugin, and then link to nvoverlaysink.

1 Like

We checked the monitor and make sure that it can support 3840X2160 in 60 fps.
We also execute:
sudo cat /sys/class/graphics/fb0/mode
reply is :
U:3840X2160p-60

By the way,Our Monitor can display the video input information in real time. We found that the Xavier’s HDMI output is:
HDMI 3840 X 2160
fH: 134.91 kHz
fV: 59.96 Hz
fD: 593.6 MHz
Maybe these information can help.

We also tried to downscale the video with this pipeline:
$ gst-launch-1.0 -v filesrc location=bbb_sunflower_2160p_60fps_normal.mp4 ! qtdemux ! h264parse ! nvv4l2decoder ! nvvidconv ! ‘video/x-raw(memory:NVMM),format=NV12,width=1920,height=1080’ ! queue ! nvoverlaysink
The output also become red.

When the screen become red, I can’t quit the display. Neither the mouse nor the keyboard respond.

You can try to use ssh to access your device from another ubuntu host. No need to always rely on HDMI monitor to check log.

Hi,
We support AGX Xavier on Jetpack 4 and 5 releases. Please check if you use latest 4.6.3 or 5.1.1.

And please set the property to run decoder at maximum performance mode:

  enable-max-performance: Set to enable max performance
                        flags: readable, writable
                        Boolean. Default: false

And run VIC engine at maximum clock:
Nvvideoconvert issue, nvvideoconvert in DS4 is better than Ds5? - #3 by DaneLLL

OK, We will try ssh for the log soon as possible.

Our Jetpack version is 4.6.1
We will try to maximize the performance by your suggestion.

Hi, when the red screen happened, we checked as your suggestions :
rootdubuntu:/home/bsm# sudo cat /sys/kernel/
tegradc.o/stats
underflows : 8
underflow frames : 0
root@ubuntu:/home/bsm# sudo cat /sys/class/graphics/fb0/mode
U:3840x2160p-60

We also checked dsmg, when red screen appear, it shows:
[ 889.344047] tegradc 15200000.nvdisplay: dc_poll_register 0x41: timeout
[ 889.344190] tegradc 15200000.nvdisplay: dc timeout waiting for cursor act_req
[ 890.528388] tegradc 15200000.nvdisplay: dc_poll_register 0x41: timeout
[ 890.528528] tegradc 15200000.nvdisplay: dc timeout waiting for cursor act_req
[ 890.580397] tegradc 15200000.nvdisplay: dc_poll_register 0x41: timeout
[ 890.580538] tegradc 15200000.nvdisplay: dc timeout waiting for cursor act_req
[ 891.316597] tegradc 15200000.nvdisplay: dc_poll_register 0x41: timeout
[ 891.316747] tegradc 15200000.nvdisplay: dc timeout waiting for cursor act_req
[ 891.368624] tegradc 15200000.nvdisplay: dc_poll_register 0x41: timeout
[ 891.368778] tegradc 15200000.nvdisplay: dc timeout waiting for cursor act_req

Hi,
Could you try Jetpack 4.6.3 or 5.1.1? It would be great if you can upgrade to latest release.

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