Deepstream-test1-rtsp-out does not work in ssh terminal

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)
NVIDIA AGX Xavier
• DeepStream Version
6.2
• JetPack Version (valid for Jetson only)
5.1
• TensorRT Version
8.5.2.2

When running the code ($ /opt/nvidia/deepstream/deepstream/sources/apps/deepstream_python_apps/apps/deepstream-test1-rtsp-out$ python3 deepstream_test1_rtsp_out.py -i /opt/nvidia/deepstream/deepstream-6.2/samples/streams/sample_720p.mp4) through the console or through the graphical shell, everything works fine.

WARNING: Serialize engine failed because of file path: /opt/nvidia/deepstream/deepstream-6.2/samples/models/Primary_Detector/resnet10.caffemodel_b1_gpu0_int8.engine opened error
0:00:53.771687865 332764     0x1177aa70 WARN                 nvinfer gstnvinfer.cpp:677:gst_nvinfer_logger:<primary-inference> NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:1950> [UID = 1]: failed to serialize cude engine to file: /opt/nvidia/deepstream/deepstream-6.2/samples/models/Primary_Detector/resnet10.caffemodel_b1_gpu0_int8.engine
INFO: [Implicit Engine Info]: layers num: 3
0   INPUT  kFLOAT input_1         3x368x640       
1   OUTPUT kFLOAT conv2d_bbox     16x23x40        
2   OUTPUT kFLOAT conv2d_cov/Sigmoid 4x23x40         

0:00:53.882259100 332764     0x1177aa70 INFO                 nvinfer gstnvinfer_impl.cpp:328:notifyLoadModelStatus:<primary-inference> [UID 1]: Load new model:dstest1_pgie_config.txt sucessfully
NvMMLiteOpen : Block : BlockType = 261 
NVMEDIA: Reading vendor.tegra.display-size : status: 6 
NvMMLiteBlockCreate : Block : BlockType = 261 
NvMMLiteOpen : Block : BlockType = 4 
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4 
Frame Number=0 Number of Objects=10 Vehicle_count=6 Person_count=4
H264: Profile = 66, Level = 0 
Frame Number=1 Number of Objects=9 Vehicle_count=5 Person_count=4
Frame Number=2 Number of Objects=8 Vehicle_count=4 Person_count=4
NVMEDIA: Need to set EMC bandwidth : 846000 
Frame Number=3 Number of Objects=11 Vehicle_count=5 Person_count=6
NVMEDIA: Need to set EMC bandwidth : 846000 
NVMEDIA_ENC: bBlitMode is set to TRUE 
Frame Number=4 Number of Objects=7 Vehicle_count=4 Person_count=3
Frame Number=5 Number of Objects=8 Vehicle_count=5 Person_count=3
Frame Number=6 Number of Objects=10 Vehicle_count=6 Person_count=4
Frame Number=7 Number of Objects=10 Vehicle_count=6 Person_count=4

And when you run the same command in ssh client mode, an error occurs.

923> [UID = 1]: Trying to create engine from model files
WARNING: [TRT]: The implicit batch dimension mode has been deprecated. Please create the network with NetworkDefinitionCreationFlag::kEXPLICIT_BATCH flag whenever possible.
WARNING: Serialize engine failed because of file path: /opt/nvidia/deepstream/deepstream-6.2/samples/models/Primary_Detector/resnet10.caffemodel_b1_gpu0_int8.engine opened error
0:00:53.623642790 445036      0xff13470 WARN                 nvinfer gstnvinfer.cpp:677:gst_nvinfer_logger:<primary-inference> NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:1950> [UID = 1]: failed to serialize cude engine to file: /opt/nvidia/deepstream/deepstream-6.2/samples/models/Primary_Detector/resnet10.caffemodel_b1_gpu0_int8.engine
INFO: [Implicit Engine Info]: layers num: 3
0   INPUT  kFLOAT input_1         3x368x640
1   OUTPUT kFLOAT conv2d_bbox     16x23x40
2   OUTPUT kFLOAT conv2d_cov/Sigmoid 4x23x40

0:00:53.889648070 445036      0xff13470 INFO                 nvinfer gstnvinfer_impl.cpp:328:notifyLoadModelStatus:<primary-inference> [UID 1]: Load new model:dstest1_pgie_config.txt sucessfully
NvMMLiteOpen : Block : BlockType = 261
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NvMMLiteBlockCreate : Block : BlockType = 261
Error: gst-stream-error-quark: Internal data stream error. (1): gstbaseparse.c(3666): gst_base_parse_loop (): /GstPipeline:pipeline0/GstH264Parse:h264-parser:
streaming stopped, reason not-negotiated (-4)
nvstreammux: Successfully handled EOS for source_id=0

Can you enable more log with “export GST_DEBUG=3” to check where the app failed?

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


Starting pipeline

Opening in BLOCKING MODE
0:00:00.611472394 1941015     0x38ddd470 WARN                    v4l2 gstv4l2object.c:2395:gst_v4l2_object_add_interlace_mode:0x38da1cf0 Failed to determine interlace mode
0:00:00.611589391 1941015     0x38ddd470 WARN                    v4l2 gstv4l2object.c:2395:gst_v4l2_object_add_interlace_mode:0x38da1cf0 Failed to determine interlace mode
0:00:00.611663570 1941015     0x38ddd470 WARN                    v4l2 gstv4l2object.c:2395:gst_v4l2_object_add_interlace_mode:0x38da1cf0 Failed to determine interlace mode
0:00:00.611723349 1941015     0x38ddd470 WARN                    v4l2 gstv4l2object.c:2395:gst_v4l2_object_add_interlace_mode:0x38da1cf0 Failed to determine interlace mode
0:00:00.611859835 1941015     0x38ddd470 WARN                    v4l2 gstv4l2object.c:4497:gst_v4l2_object_probe_caps:<encoder:src> Failed to probe pixel aspect ratio with VIDIOC_CROPCAP: Unknown error -1
Opening in BLOCKING MODE
0:00:00.793765779 1941015     0x38ddd470 WARN                    v4l2 gstv4l2object.c:4497:gst_v4l2_object_probe_caps:<nvv4l2-decoder:src> Failed to probe pixel aspect ratio with VIDIOC_CROPCAP: Unknown error -1
0:00:00.793893624 1941015     0x38ddd470 WARN                    v4l2 gstv4l2object.c:2395:gst_v4l2_object_add_interlace_mode:0x3852b3f0 Failed to determine interlace mode
0:00:00.793964571 1941015     0x38ddd470 WARN                    v4l2 gstv4l2object.c:2395:gst_v4l2_object_add_interlace_mode:0x3852b3f0 Failed to determine interlace mode
0:00:00.794036702 1941015     0x38ddd470 WARN                    v4l2 gstv4l2object.c:2395:gst_v4l2_object_add_interlace_mode:0x3852b3f0 Failed to determine interlace mode
0:00:00.794105185 1941015     0x38ddd470 WARN                    v4l2 gstv4l2object.c:2395:gst_v4l2_object_add_interlace_mode:0x3852b3f0 Failed to determine interlace mode
0:00:00.800169381 1941015     0x38ddd470 WARN                 nvinfer gstnvinfer.cpp:677:gst_nvinfer_logger:<primary-inference> NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::initialize() <nvdsinfer_context_impl.cpp:1170> [UID = 1]: Warning, OpenCV has been deprecated. Using NMS for clustering instead of cv::groupRectangles with topK = 20 and NMS Threshold = 0.5
WARNING: Deserialize engine failed because file path: /home/jetson/resnet10.caffemodel_b1_gpu0_int8.engine open error
0:00:03.062266332 1941015     0x38ddd470 WARN                 nvinfer gstnvinfer.cpp:677:gst_nvinfer_logger:<primary-inference> NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:1897> [UID = 1]: deserialize engine from file :/home/jetson/resnet10.caffemodel_b1_gpu0_int8.engine failed
0:00:03.117276468 1941015     0x38ddd470 WARN                 nvinfer gstnvinfer.cpp:677:gst_nvinfer_logger:<primary-inference> NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:2002> [UID = 1]: deserialize backend context from engine from file :/home/jetson/resnet10.caffemodel_b1_gpu0_int8.engine failed, try rebuild
0:00:03.117401210 1941015     0x38ddd470 INFO                 nvinfer gstnvinfer.cpp:680:gst_nvinfer_logger:<primary-inference> NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:1923> [UID = 1]: Trying to create engine from model files
WARNING: [TRT]: The implicit batch dimension mode has been deprecated. Please create the network with NetworkDefinitionCreationFlag::kEXPLICIT_BATCH flag whenever possible.
WARNING: Serialize engine failed because of file path: /opt/nvidia/deepstream/deepstream-6.2/samples/models/Primary_Detector/resnet10.caffemodel_b1_gpu0_int8.engine opened error
0:00:57.554379365 1941015     0x38ddd470 WARN                 nvinfer gstnvinfer.cpp:677:gst_nvinfer_logger:<primary-inference> NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:1950> [UID = 1]: failed to serialize cude engine to file: /opt/nvidia/deepstream/deepstream-6.2/samples/models/Primary_Detector/resnet10.caffemodel_b1_gpu0_int8.engine
INFO: [Implicit Engine Info]: layers num: 3
0   INPUT  kFLOAT input_1         3x368x640
1   OUTPUT kFLOAT conv2d_bbox     16x23x40
2   OUTPUT kFLOAT conv2d_cov/Sigmoid 4x23x40

0:00:57.658078505 1941015     0x38ddd470 INFO                 nvinfer gstnvinfer_impl.cpp:328:notifyLoadModelStatus:<primary-inference> [UID 1]: Load new model:dstest1_pgie_config.txt sucessfully
0:00:57.658593343 1941015     0x38ddd470 WARN                 basesrc gstbasesrc.c:3600:gst_base_src_start_complete:<file-source> pad not activated yet
_________________________________
0:00:57.661467164 1941015     0x38dec5e0 WARN               h264parse gsth264parse.c:1310:gst_h264_parse_handle_frame:<h264-parser> input stream is corrupt; it contains a NAL unit of length 0
0:00:57.661645539 1941015     0x38dec5e0 WARN               h264parse gsth264parse.c:1310:gst_h264_parse_handle_frame:<h264-parser> input stream is corrupt; it contains a NAL unit of length 0
0:00:57.661949264 1941015     0x38dec5e0 WARN               h264parse gsth264parse.c:1349:gst_h264_parse_handle_frame:<h264-parser> broken/invalid nal Type: 0 Unknown, Size: 62 will be dropped
0:00:57.662046517 1941015     0x38dec5e0 WARN               h264parse gsth264parse.c:1310:gst_h264_parse_handle_frame:<h264-parser> input stream is corrupt; it contains a NAL unit of length 0
0:00:57.662317344 1941015     0x38dec5e0 WARN               h264parse gsth264parse.c:1349:gst_h264_parse_handle_frame:<h264-parser> broken/invalid nal Type: 0 Unknown, Size: 40 will be dropped
0:00:57.662399268 1941015     0x38dec5e0 WARN               h264parse gsth264parse.c:1349:gst_h264_parse_handle_frame:<h264-parser> broken/invalid nal Type: 0 Unknown, Size: 8 will be dropped
0:00:57.662510025 1941015     0x38dec5e0 WARN               h264parse gsth264parse.c:1310:gst_h264_parse_handle_frame:<h264-parser> input stream is corrupt; it contains a NAL unit of length 0
0:00:57.662747379 1941015     0x38dec5e0 WARN               h264parse gsth264parse.c:1349:gst_h264_parse_handle_frame:<h264-parser> broken/invalid nal Type: 0 Unknown, Size: 42 will be dropped
0:00:57.662927739 1941015     0x38dec5e0 WARN               h264parse gsth264parse.c:1349:gst_h264_parse_handle_frame:<h264-parser> broken/invalid nal Type: 0 Unknown, Size: 10 will be dropped
0:00:57.663316459 1941015     0x38dec5e0 WARN               h264parse gsth264parse.c:1349:gst_h264_parse_handle_frame:<h264-parser> broken/invalid nal Type: 5 Slice IDR, Size: 107 will be dropped
0:00:57.663409584 1941015     0x38dec5e0 WARN               h264parse gsth264parse.c:1349:gst_h264_parse_handle_frame:<h264-parser> broken/invalid nal Type: 22 Invalid, Size: 21 will be dropped
0:00:57.663587287 1941015     0x38dec5e0 WARN               h264parse gsth264parse.c:1349:gst_h264_parse_handle_frame:<h264-parser> broken/invalid nal Type: 0 Unknown, Size: 8 will be dropped
0:00:57.663718045 1941015     0x38dec5e0 WARN               h264parse gsth264parse.c:1349:gst_h264_parse_handle_frame:<h264-parser> broken/invalid nal Type: 0 Unknown, Size: 16 will be dropped
0:00:57.663839874 1941015     0x38dec5e0 WARN               h264parse gsth264parse.c:1349:gst_h264_parse_handle_frame:<h264-parser> broken/invalid nal Type: 0 Unknown, Size: 8 will be dropped
0:00:57.663986664 1941015     0x38dec5e0 WARN               h264parse gsth264parse.c:1349:gst_h264_parse_handle_frame:<h264-parser> broken/invalid nal Type: 0 Unknown, Size: 26 will be dropped
0:00:57.664130287 1941015     0x38dec5e0 WARN               h264parse gsth264parse.c:1349:gst_h264_parse_handle_frame:<h264-parser> broken/invalid nal Type: 0 Unknown, Size: 180 will be dropped
0:00:57.664367481 1941015     0x38dec5e0 WARN               h264parse gsth264parse.c:1310:gst_h264_parse_handle_frame:<h264-parser> input stream is corrupt; it contains a NAL unit of length 0
0:00:57.664507647 1941015     0x38dec5e0 WARN               h264parse gsth264parse.c:1349:gst_h264_parse_handle_frame:<h264-parser> broken/invalid nal Type: 0 Unknown, Size: 5 will be dropped
0:00:57.664640485 1941015     0x38dec5e0 WARN               h264parse gsth264parse.c:1349:gst_h264_parse_handle_frame:<h264-parser> broken/invalid nal Type: 0 Unknown, Size: 416 will be dropped
0:00:57.664792587 1941015     0x38dec5e0 WARN               h264parse gsth264parse.c:1349:gst_h264_parse_handle_frame:<h264-parser> broken/invalid nal Type: 0 Unknown, Size: 20 will be dropped
0:00:57.664930513 1941015     0x38dec5e0 WARN               h264parse gsth264parse.c:1310:gst_h264_parse_handle_frame:<h264-parser> input stream is corrupt; it contains a NAL unit of length 0
0:00:57.665210557 1941015     0x38dec5e0 WARN               h264parse gsth264parse.c:1349:gst_h264_parse_handle_frame:<h264-parser> broken/invalid nal Type: 0 Unknown, Size: 1051 will be dropped
0:00:57.665351555 1941015     0x38dec5e0 WARN               h264parse gsth264parse.c:1349:gst_h264_parse_handle_frame:<h264-parser> broken/invalid nal Type: 0 Unknown, Size: 429 will be dropped
0:00:57.687559108 1941015     0x38dec5e0 WARN               h264parse gsth264parse.c:1349:gst_h264_parse_handle_frame:<h264-parser> broken/invalid nal Type: 0 Unknown, Size: 2182453 will be dropped
0:00:57.687642759 1941015     0x38dec5e0 WARN               baseparse gstbaseparse.c:2998:gst_base_parse_check_sync:<h264-parser> error: Failed to parse stream
0:00:57.688048729 1941015     0x38dec5e0 WARN               baseparse gstbaseparse.c:3666:gst_base_parse_loop:<h264-parser> error: Internal data stream error.
0:00:57.688157982 1941015     0x38dec5e0 WARN               baseparse gstbaseparse.c:3666:gst_base_parse_loop:<h264-parser> error: streaming stopped, reason error (-5)
Error: gst-stream-error-quark: Failed to parse stream (7): gstbaseparse.c(2998): gst_base_parse_check_sync (): /GstPipeline:pipeline0/GstH264Parse:h264-parser
nvstreammux: Successfully handled EOS for source_id=0

this is a codec error, h264/h265/mp4

The README has said the input is H264 element stream(raw data without container). deepstream_python_apps/README at master · NVIDIA-AI-IOT/deepstream_python_apps (github.com)

You can also know this from the code deepstream_python_apps/deepstream_test1_rtsp_out.py at master · NVIDIA-AI-IOT/deepstream_python_apps (github.com)

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