How to run deepstream-test4 (Python apps)

I need help on how to run the above sample in Python apps

• Hardware Platform (Jetson / GPU)
Jetson Nano 4gb
• DeepStream Version
DeepStream 5.0
• JetPack Version (valid for Jetson only)
Jetpack: 4.5 [l4T 32.5.0]
• TensorRT Version
7.1.3.0
• NVIDIA GPU Driver Version (valid for GPU only)

• Issue Type( questions, new requirements, bugs)
Questions: How to run deepstream-test4 for Azure IoT

• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
Following are the cmds I use and I get this

	cd /opt/nvidia/deepstream/deepstream-5.0/sources/deepstream_python_apps/apps/deepstream-test4
	python3 deepstream_test_4.py -i sample_qHD.h264 --proto-lib /opt/nvidia/deepstream/deepstream-5.0/lib --conn-str='HostName=myHost.azure-devices.net;DeviceId=abc;SharedAccessKey=myAccesskey' -s 0

I get the following error
Error: gst-library-error-quark: Could not initialize supporting library. (3): /dvs/git/dirty/git-master_linux/deepstream/sdk/src/gst-plugins/gst-nvmsgbroker/gstnvmsgbroker.c(359): legacy_gst_nvmsgbroker_start (): /GstPipeline:pipeline0/GstNvMsgBroker:nvmsg-broker:
unable to open shared library

python3 deepstream_test_4.py -i < H264 filename > -p < Proto adaptor library > --conn-str=< Connection string > -s < 0/1 >

< Proto adaptor library > includes the path and file name

1 Like

Hi @Fiona.Chen ,

How can I run deepstream-test1(Python apps) with CSI camera? What should be the command?

Regards,
Tuna.

@tuna.akyol There is README file in every sample app’s folder. There instruction of command line is also in the README file.

@Fiona.Chen I know but I am not sure what do I need to replace command for this <h264_elementary_stream> to run CSI camera instead of recorded video. There is no information about cameras in README.

If you are using Jetson board, there is camera source sample code in /opt/nvidia/deepstream/deepstream-5.0/sources/apps/apps-common/src/deepstream_source_bin.c, please refer to create_camera_source_bin() function. And you can also refer to Jetson multimedia document, https://docs.nvidia.com/jetson/archives/l4t-archived/l4t-325/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide/accelerated_gstreamer.html#wwpID0E0LR0HA

1 Like

Fiona

    Works awesome, thanks for the quick response.