Deepstream test5 app is not working

I have encountered the following error when running the sample test 5 app.

** ERROR: <create_multi_source_bin:1457>: Failed to create element ‘src_bin_muxer’
** ERROR: <create_multi_source_bin:1550>: create_multi_source_bin failed
** ERROR: <create_pipeline:1327>: create_pipeline failed
** ERROR: main:1459: Failed to create pipeline
Quitting
App run failed

I have followed below steps:

  1. Docker Setup

Docker commands

docker run -it -v $PWD:/home --net=host --ipc=host --gpus device=0 nvcr.io/nvidia/deepstream:6.1.1-devel

Navigate to /opt/nvidia/deepstream/deepstream-6.1/sources/apps/sample_apps/deepstream-test5

make (export CUDA_VER=11.7)

  1. Create configuration file inside configs folder
    Create sample.txt
    Run deepstream-test5-app -c configs/sample.txt

Configuration File:
Configuration_file_new.txt (9.4 KB)

Can your run deepstream-app examples with existing config (can be found at samples/configs/deepstream-app)?
Can you share how you installed docker? There is a install guide for your reference: Installation Guide — NVIDIA Cloud Native Technologies documentation

After running deepstream-app sample app I am getting same error.
root@e2e-96-190:/opt/nvidia/deepstream/deepstream-6.1/samples/configs/deepstream-app# deepstream-app -c source30_1080p_dec_infer-resnet_tiled_display_int8.txt
** ERROR: <create_multi_source_bin:1457>: Failed to create element ‘src_bin_muxer’
** ERROR: <create_multi_source_bin:1550>: create_multi_source_bin failed
** ERROR: <create_pipeline:1327>: create_pipeline failed
** ERROR: main:697: Failed to create pipeline
Quitting
App run failed

I have checked docker and cuda installations output is as follows:
root@e2e-96-190:~# nvidia-smi
Wed Nov 9 10:49:31 2022
±----------------------------------------------------------------------------+
| NVIDIA-SMI 510.39.01 Driver Version: 510.39.01 CUDA Version: 11.6 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 Tesla T4 Off | 00000000:01:01.0 Off | 0 |
| N/A 39C P8 15W / 70W | 14MiB / 15360MiB | 0% Default |
| | | N/A |
±------------------------------±---------------------±---------------------+

±----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1906 G /usr/lib/xorg/Xorg 14MiB |
±----------------------------------------------------------------------------+

root@e2e-96-190:~# sudo docker -v
Docker version 20.10.21, build baeda1f

root@e2e-96-190:~# sudo apt list --installed nvidia
Listing… Done
libnvidia-container-tools/bionic,now 1.11.0-1 amd64 [installed,automatic]
libnvidia-container1/bionic,now 1.11.0-1 amd64 [installed,automatic]
nvidia-container-toolkit-base/bionic,now 1.11.0-1 amd64 [installed,automatic]
nvidia-container-toolkit/bionic,now 1.11.0-1 amd64 [installed]
nvidia-docker2/bionic,now 2.11.0-1 all [installed]

Please add your :Hardware Platform (Jetson / GPU) :
Could you add GST_DEBUG=3 before running the cli and attach the log? Thanks

GST_DEBUG=3 deepstream-test5-app -c configs/sample.txt

[quote=“yuweiw, post:5, topic:233129”]
GST_DEBUG=3 deepstream-test5-app -c configs/sample.txt
I am getting below resuls:
root@e2e-96-190:/opt/nvidia/deepstream/deepstream-6.1/sources/apps# cd /opt/nvidia/deepstream/deepstream-6.1/sources/apps/sample_apps/deepstream-test5
root@e2e-96-190:/opt/nvidia/deepstream/deepstream-6.1/sources/apps/sample_apps/deepstream-test5# GST_DEBUG=3 deepstream-test5-app -c configs/sample.txt
0:00:00.014584307 55 0x5566ba5b7400 WARN GST_ELEMENT_FACTORY gstelementfactory.c:458:gst_element_factory_make: no such element factory “nvstreammux”!
** ERROR: <create_multi_source_bin:1457>: Failed to create element ‘src_bin_muxer’
** ERROR: <create_multi_source_bin:1550>: create_multi_source_bin failed
** ERROR: <create_pipeline:1327>: create_pipeline failed
** ERROR: main:1459: Failed to create pipeline
Quitting
App run failed

It’s werid that your env have no nvstreammux plugin. There’s something wrong with your own env. You can check it with gst-inspect-1.0 nvstreammux cli by yourself.

I am getting following message:

root@e2e-96-190:/opt/nvidia/deepstream/deepstream-6.1/sources/apps/sample_apps/deepstream-test5# gst-inspect-1.0 nvstreammux
No such element or plugin ‘nvstreammux’

Is there any solution for above error?

Basically, all gstreamer plug-ins should have been installed after you start the docker nvcr.io/nvidia/deepstream:6.1.1-devel. Could you try to reinstall it by yourself ? You can refer the link below : dGPU Setup for Ubuntu

I have reinstalled gstreamer plug-ins and created new docker container also still I am getting same error

What’s your gpu card model in your host env?

root@e2e-96-190:~# sudo lshw -C video
*-display UNCLAIMED
description: VGA compatible controller
product: GD 5446
vendor: Cirrus Logic
physical id: 2
bus info: pci@0000:00:02.0
version: 00
width: 32 bits
clock: 33MHz
capabilities: vga_controller
configuration: latency=0
resources: memory:f0000000-f1ffffff memory:fe090000-fe090fff memory:c0000-dffff
*-display
description: 3D controller
product: TU104GL [Tesla T4]
vendor: NVIDIA Corporation
physical id: 1
bus info: pci@0000:01:01.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm bus_master cap_list
configuration: driver=nvidia latency=0
resources: irq:11 memory:fd000000-fdffffff memory:d0000000-dfffffff memory:e0000000-e1ffffff
root@e2e-96-190:~#

It is TeslaT4

root@e2e-96-190:~# nvidia-smi
Mon Nov 14 11:40:25 2022
±----------------------------------------------------------------------------+
| NVIDIA-SMI 510.39.01 Driver Version: 510.39.01 CUDA Version: 11.6 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 Tesla T4 Off | 00000000:01:01.0 Off | 0 |
| N/A 40C P8 15W / 70W | 14MiB / 15360MiB | 0% Default |
| | | N/A |
±------------------------------±---------------------±---------------------+

±----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1878 G /usr/lib/xorg/Xorg 14MiB |
±----------------------------------------------------------------------------+
root@e2e-96-190:~# nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Fri_Dec_17_18:16:03_PST_2021
Cuda compilation tools, release 11.6, V11.6.55
Build cuda_11.6.r11.6/compiler.30794723_0
root@e2e-96-190:~#

Could you check whether there are libnvdsgst_multistream.so libraries in your docker?
path:/opt/nvidia/deepstream/deepstream/lib/gst-plugins/libnvdsgst_multistream.so


libnvdsgst_multistream.so file is present

Could you try to set the env paras by export LD_LIBRARY_PATH=/opt/nvidia/deepstream/deepstream/lib/:$LD_LIBRARY_PATH?


Not able to run the app

The version of CUDA and Driver depend on your host. Deepstream 6.1.1 needs CUDA 11.7. I see your env is CUDA 11.6. Could you update the version of the CUDA and driverin your host? You can refer the link below to update your CUDA and driver version to run deepstream normally.
https://docs.nvidia.com/metropolis/deepstream/dev-guide/text/DS_Quickstart.html?highlight=compatibility#platform-and-os-compatibility

Instead of 6.1.1 I tried using 6.0.1 now deepstream apps are working.
Now I am trying to use deepstream-app for getting kafka messages it is working fine on test5 app but not on deepstream-app can you help me with this?

How do you run the deepstream-app? Could you attach your cli and config files?