Stream using gstreamer with nvh264enc and nvh264dec

I’m using the following pipeline to stream the test video

gst-launch-1.0 videotestsrc ! video/x-raw,framerate=20/1 ! videoconvert ! nvh264enc ! rtph264pay ! udpsink host=127.0.0.1 port=5000

and using the following to receive the stream

gst-launch-1.0 -v udpsrc port=5000 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! rtph264depay ! decodebin ! videoconvert ! queue ! autovideosink

the streaming side starts fine with no issues and the clock is running.

the receiving side is set to playing but just waiting.

I want to use nvidia to decode as well. What would be the best pipeline to use here?
the stream should be h264 encoded video over UDP.

hello, did you solved this problem? I have this issue, too.