Runtime errors from Deepstream 7.1 via GXF on Jetson Xavier NX

I ran vlc player on the device as where I ran the graph, but nothing is displayed in the player and the following message is printed in the vlc terminal.

Created new TCP socket 35 for connection
[0000ffff3c0041c0] main decoder error: Codec `h264' (H264 - MPEG-4 AVC (part 10)) is not supported.

Running ffmpeg -codecs returns the following

...
DEV.LS h264                 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (decoders: h264 h264_v4l2m2m ) (encoders: libx264 libx264rgb h264_omx h264_v4l2m2m h264_vaapi )
...

I also ran the gst command as recommended and got the following below:

$ gst-launch-1.0 rtspsrc location=rtsp://<jetson-ip>:8554/ds-test ! rtph264depay ! fakesink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://<jetson-ip>:8554/ds-test
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
Progress: (request) Sending PLAY request
Progress: (request) Sent PLAY request

The results are the same if I try to play the stream in a window

$ gst-launch-1.0 rtspsrc location=rtsp://<jetson-ip>:8554/ds-test ! rtph264depay ! h264parse ! decodebin ! videoconvert ! ximagesink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://<jetson-ip>:8554/ds-test
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
Progress: (request) Sending PLAY request
Progress: (request) Sent PLAY request

I also verified the camera works with the following command gst-launch-1.0 nvarguscamerasrc sensor-id=0 ! "video/x-raw(memory:NVMM),width=1920,height=1080,framerate=60/1" ! nvvidconv ! xvimagesink

You can enable the RTSP client log to get more information.
“export GST_DEBUG=rtspsrc:7”

Thanks for the tip. The console log is attached below.

ds-out.log (56.8 KB)

I tried viewing the stream on vlc player after restarting my device. I got the following message in the terminal with no output on vlc player.

[0000ffff4c00d460] main decoder error: Codec `h264' (H264 - MPEG-4 AVC (part 10)) is not supported.
MultiFramedRTPSource::doGetNextFrame1(): The total received frame size exceeds the client's buffer size (250000).  430139 bytes of trailing data will be dropped!
MultiFramedRTPSource::doGetNextFrame1(): The total received frame size exceeds the client's buffer size (500000).  180893 bytes of trailing data will be dropped!

Could the issue be vlc player? Are there any other methods I can use to view the rtsp stream?

The RTSP session is OK, I don’t find any problem with the log.

When you run the docker, have you exported all the ports with the host? 8554, 5400, 5000

I didn’t forward any ports as I had set my network mode to host in my docker compose file.

Have you tried to run the graph locally in the host?

I have not. I do not have enough storage on my jetson board to set it up on the host.

You may remove the docker image and install DeepStream and Graph Composer packages.

The docker images are installed on a mounted usb drive as my Jetson Xavier NX only has 13GB of EMMC storage. It is also my boot drive and where my apt packages are installed. I have about 500MB of storage left.