Python rtsp sample shows no output

Please provide complete information as applicable to your setup.

• Hardware Platform(GPU)
• DeepStream Version 5.0
• NVIDIA GPU Driver Version (440.64)

When rtsp sample provided with 5.0 SDK is executed as below, no RTSP stream is generated and Warnings are noticed with GST_DEBUG=2.

/opt/nvidia/deepstream/deepstream-5.0/sources/python/apps/deepstream-test1-rtsp-out# python3 -i …/…/…/…/samples/streams/sample_1080p_h264.mp4
Creating Pipeline

Creating Source

Creating H264Parser

Creating Decoder

Creating H264 Encoder
Creating H264 rtppay
Playing file …/…/…/…/samples/streams/sample_1080p_h264.mp4
Warn: ‘threshold’ parameter has been deprecated. Use ‘pre-cluster-threshold’ instead.
Adding elements to Pipeline

Linking elements in the Pipeline

*** DeepStream: Launched RTSP Streaming at rtsp://localhost:8554/ds-test ***

Starting pipeline

0:00:00.049295786 99 0x1fbfd80 WARN v4l2 gstv4l2object.c:3035:gst_v4l2_object_get_nearest_size:encoder:sink Unable to try format: Unknown error -1
0:00:00.049308610 99 0x1fbfd80 WARN v4l2 gstv4l2object.c:2921:gst_v4l2_object_probe_caps_for_format:encoder:sink Could not probe minimum capture size for pixelformat YM12

0:00:01.283839821 99 0x17e7590 WARN codecparsers_h264 gsth264parser.c:1550:gst_h264_parse_sps_data: failed to read UE
0:00:01.283844851 99 0x17e7590 WARN codecparsers_h264 gsth264parser.c:1768:gst_h264_parse_sps: error parsing “Sequence parameter set”
0:00:01.283849660 99 0x17e7590 WARN h264parse gsth264parse.c:739:gst_h264_parse_process_nal: failed to parse SPS:
0:00:01.283855350 99 0x17e7590 WARN h264parse gsth264parse.c:1237:gst_h264_parse_handle_frame: broken/invalid nal Type: 7 SPS, Size: 5 will be dropped
0:00:01.283931484 99 0x17e7590 WARN h264parse gsth264parse.c:1237:gst_h264_parse_handle_frame: broken/invalid nal Type: 0 Unknown, Size: 38363 will be dropped
It is not clear what is going on beyond this.

No further logs are displayed and the application waits permanently.

Any suggestions as to how to go about this issues?

Please have another PC and try to open network stream rtsp://<IP_ADDRESS_OF_GPU_MACHINE>:8554/ds-test via VLC

Thanks for your response.

The problem seems to be due to the Video file format. The sample rtsp application works with /opt/nvidia/deepstream/deepstream-5.0/samples/streams/sample_720p.h264.

A related question: The samples are slightly different from the C/C++ samples. The structure of the application as well as config file structure are different. Is there any plan to provide compatible versions of source code for C/C++ and Python sample applications?

The sample is implemented to have h264 stream as source. If you would like to have other kinds of sources, you would need to customize the sample.