Can not run RTSP camera with Deepstream Python Apps (Test3 and Test1)

Information:
• Hardware Platform (Jetson / GPU) Jetson Nano
• DeepStream Version Deepstream 5.0.1
• JetPack Version (valid for Jetson only) Jetpack 4.4.1-b50
• TensorRT Version TensorRT 7.1.3

Hello Everyone,
I got some problems with run python test apps (Deepstream-test1 and Deepstream-test3 ) for stream my RTSP camera.

1) With Deepstream_Test3 case

nhan@nhan-desktop:/opt/nvidia/deepstream/deepstream-5.0/sources/deepstream_python_apps/apps/deepstream-test3$ python3 deepstream_test_3.py rtsp://admin:TX****@192.168.1.12/H.264

Creating Pipeline
Creating streamux
Unable to create NvStreamMux
Traceback (most recent call last):
File “deepstream_test_3.py”, line 376, in
sys.exit(main(sys.argv))
File “deepstream_test_3.py”, line 243, in main
pipeline.add(streammux)
File “/usr/lib/python3/dist-packages/gi/overrides/Gst.py”, line 64, in add
if not Gst.Bin.add(self, arg):
TypeError: Argument 1 does not allow None as a value

2) With Deepstream-test1 case

nhan@nhan-desktop:/opt/nvidia/deepstream/deepstream-5.0/sources/deepstream_python_apps/apps/deepstream-test1$ python3 deepstream_test_1.py rtsp://admin:TX****@192.168.1.12/H.264

Creating Pipeline
Creating Source
Creating H264Parser
Creating Decoder
nvbuf_utils: Could not get EGL display connection
Unable to create NvStreamMux
Unable to create pgie
Unable to create nvvidconv
Unable to create nvosd
Creating EGLSink
Playing file rtsp://admin:TX****@192.168.1.12/H.264
Traceback (most recent call last):
File “deepstream_test_1.py”, line 266, in
sys.exit(main(sys.argv))
File “deepstream_test_1.py”, line 199, in main
streammux.set_property(‘width’, 1920)
AttributeError: ‘NoneType’ object has no attribute ‘set_property’

Could someone give me some advices for 2 case. How i can stream my camera? And in the future, i want stream 4 cameras in the same time with jetson nano, so Need i choose Deepstream Test3 or Test1 ?

  1. Please read the README file for deepstream_test_1.py, it only support H264 ES local stream. It is wrong to run it with rtsp input. https://github.com/NVIDIA-AI-IOT/deepstream_python_apps/blob/master/apps/deepstream-test1/README
  2. Can you run the following command on your platform to check whether there are nvstreammux, nvinfer , nvvideoconvert,… in your platform? Seems your DeepStreamSDK is not installed correctly. https://docs.nvidia.com/metropolis/deepstream/dev-guide/text/DS_Quickstart.html#jetson-setup
    commandline:
    gst-inspect-1.0

Thanks for your advices, i will check again