GStreamer Video Flickering Problem When Video Streaming Over RTP

Hello Everyone,

I am just new in AGX Xavier and i want to dig it in more. I have specific case with i just want to send RAW data over Host to Client(AGX) then encode it to with hardware accelerated H264 and send it back to the my Host over UDP again.

Here is my case:

My test video: Big_Back_Bunny.y4m

My Host Terminal (RAW File Sender):
gst-launch-1.0 filesrc location=~/Videos/big_buck_bunny_720p24.y4m ! video/x-raw, width=720, height=576,format=BGRA, aspect-ratio=1/1, framerate=24/1 ! decodebin ! videoconvert ! rtpvrawpay mtu=65000 chunks-per-frame=1 ! queue max-size-time=5000000000 max-size-buffers=10000 ! udpsink host= port=5005 buffer-size=50000000 sync=true async=true -v

My Client Terminal (Get RAW file, encode and send it back):
gst-launch-1.0 udpsrc port=5005 caps=“application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)RAW, colorimetry=(string)BT709-2, sampling=(string)YCbCr-4:2:0, width=(string)1280, height=(string)720” buffer-size=50000000 ! rtpvrawdepay ! videoconvert ! nvvidconv ! nvv4l2h264enc maxperf-enable=1 ! h264parse ! rtph264pay ! queue max-size-time=5000000000 max-size-buffers=10000 ! udpsink host= port=5006

My Another Host Terminal (To Display H264 Encoded Video):
gst-launch-1.0 udpsrc port=5006 ! application/x-rtp, encoding-name=H264, payload=96 ! rtph264depay ! h264parse ! avdec_h264 ! autovideosink

Everything is correctly working but there is a flickering problem in the video when the objects move or scenes changed like the image below:

Is there anything wrong in our pipelines or do you have any suggestions to improve it?

Thank you in advance!

Hello @renantaylan ,

I hope you are doing well.

It is a bit hard to tell at which point those artifacts are being induced in the video. I would suggest isolating each pipe as much as possible to pinpoint the source of the problem.

I was wondering if you could let me know where can I download the exact same video you are using so that I can try replicate the problem. I don’t seem able to find it.

We have a wiki page that might be useful for you. You can access it through:

Let me know how it goes. It would be great if you shared with me the video, so I can play with it on my end.

best regards,
Andres Campos
Embedded Software Engineer

1 Like

Thanks for the advise. I will try it.

I think I found the video on
720p y4m format

I don’t know how the host and Xavier are connected, but you may try to keep default mtu value for a standard ethernet LAN.

1 Like

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