GStreamer Playback Issues with RTSP Stream (H.264) on Ubuntu

Hi,
I am currently trying to play an RTSP stream with H.264 video encoding using GStreamer on Ubuntu 16.04.05 22.04.5 LTS. However, I am encountering some issues.
When I run the following command:

GST_DEBUG=3 gst-launch-1.0 rtspsrc location=rtsp://192.168.1.99:554/profile2 ! queue ! rtph264depay ! avdec_h264 ! autovideosink

I receive the following log:

$ sudo GST_DEBUG=3 gst-launch-1.0 rtspsrc location=rtsp://192.168.1.99:554/profile2 ! queue ! rtph264depay ! avdec_h264 ! autovideosink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Pipeline is PREROLLED ...
Prerolled, waiting for progress to finish...
Progress: (connect) Connecting to rtsp://192.168.1.99:554/profile2
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
Progress: (open) Opened Stream
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Progress: (request) Sending PLAY request
Redistribute latency...
Progress: (request) Sending PLAY request
0:00:00.068836340  2395 0x70e0640168c0 FIXME                default gstutils.c:4025:gst_pad_create_stream_id_internal:<fakesrc0:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
Redistribute latency...
Progress: (request) Sent PLAY request
Redistribute latency...
Redistribute latency...

As a result, no video is displayed.

Interestingly, I have tested other H.264 RTSP streams, and they work without issues. Additionally, I can successfully play the problematic stream using both ffplay and VLC.

Could you please advise if there are any adjustments I need to make to my GStreamer command to successfully play this RTSP stream? Any help would be greatly appreciated!

Ubuntu 16.04.06 LTS is too old. I guess it is better for you to upgrade your OS to Ubuntu 22 or above. Otherwise, very few people will have interest in helping you.

Hi @Joe ,

Thank you for your suggestion!
I have upgraded my OS to Ubuntu 22 and retested gstreamer. The test results have been updated in my post.

Better to upgrade your hardware as well if it is too old.