Deepstream_test3_app.c, rtsp pipeline doesn't work

Description

Can’t get deepstream_test3_app to run even though gstreamer is ok

Environment

Jetson TX1
ubuntu 18.04 LTS
Deepstream 6.0
Jetpack 4.5.1-b17, 4.5-b129
TensorRT 7.1.3
CUDA 10.2
GStreamer Core Library 1.14.5:

This works fine (note that ‘uridecodebin3’ and ‘rtspt’ are necessary):
gst-launch-1.0 uridecodebin3 uri=“rtspt://MyUserName:MyPassword@192.168.1.100:554/ch01/0” ! nvstreammux0.sink_0 nvstreammux name=nvstreammux0 batch-size=1 batched-push-timeout=40000 width=928 height=480 live-source=TRUE ! queue ! nvvideoconvert ! nvinfer config-file-path=“/opt/nvidia/deepstream/deepstream-6.0/samples/configs/deepstream-app/config_infer_primary.txt” ! queue ! nvvideoconvert ! nvdsosd process-mode=HW_MODE ! nvegltransform ! nveglglessink

But this hangs up at ‘Decodebin child added: rtph264depay0’:
./deepstream_test3_app rtspt://MyUserName:MyPassword@192.168.1.100:554/ch01/0


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:27.874837885 27339 0x557d301550 INFO nvinfer gstnvinfer_impl.cpp:313:notifyLoadModelStatus: [UID 1]: Load new model:dstest3_pgie_config.txt sucessfully
Decodebin child added: source
Running…
Decodebin child added: decodebin0
Decodebin child added: rtph264depay0

So it seems that the pipeline that deepstream_test3_app creates is not working. My gst-launch command doesn’t include ‘rtph264depay’. Looking at the c code it’s not straightforward as to how the pipeline is constructed. Any clue as to how I could manipulate deepstream_test3_app.c to allow manually setting/overwriting the pipeline to the desired gstreamer parameters before it is used?

Hi,

This looks like a Deepstream related issue. We will move this post to the Deepstream forum.

Thanks!

Can you change uridecodebin to uridecodebin3 in deepstream_test3_app.c and test?

Could you help to dump the pipeline graph by referring to the link below?
https://forums.developer.nvidia.com/t/deepstream-sdk-faq/80236/10

The only place I saw to change that was line 255. I did that, and it hung up for a few minutes then core seg dumped:



Decodebin child added: urisourcebin0
Running…
In cb_newpad

(deepstream-test3-app:31695): GStreamer-CRITICAL **: 14:18:43.996: gst_caps_get_structure: assertion ‘GST_IS_CAPS (caps)’ failed

(deepstream-test3-app:31695): GStreamer-CRITICAL **: 14:18:44.005: gst_structure_get_name: assertion ‘structure != NULL’ failed

(deepstream-test3-app:31695): GStreamer-CRITICAL **: 14:18:44.006: gst_caps_get_features: assertion ‘GST_IS_CAPS (caps)’ failed
Segmentation fault (core dumped)


BTW, I figured out how to get good old detectnet to take the rtspt IP address, so that is taking care of the need for now.

You can modify the code with your gst-launch-1.0 cli to set some paras.
Like set the paras of nvstreamux, paras of nvinfer, paras of nvdsosd through g_object_get.

Hi yingliu, I’m back at this. In line 3 of section 4.1 of your link, when I try “deepstream-test3-app -c deepstream_test3_app_config_yoloV2.txt” it tries to run but hangs up with the error shown:



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:29.648335012 23998 0x2ec6ce90 INFO nvinfer gstnvinfer_impl.cpp:313:notifyLoadModelStatus: [UID 1]: Load new model:dstest3_pgie_config.txt sucessfully
Running…
ERROR from element uri-decode-bin: Invalid URI “-c”.


There is no update from you for a period, assuming this is not an issue anymore.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

It’s just a demo, you should use it according to your situation.
If you use gst-launch-1.0, you should use 4.2.
If you use the deepstream_test3_app code, you should use 4.3. Add the patch in the code, compile and generate new applications, then run it.

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