Gstreamer blacklists Deepstream 5.0.1 plugins (installed from .deb package)

• Hardware Platform : Jetson NX
• DeepStream Version: 5.0.1
• JetPack Version - unknown
cat /etc/nv_tegra_release
R32 (release), REVISION: 5.1, GCID: 26202423, BOARD: t186ref, EABI: aarch64, DATE: Fri Feb 19 16:50:29 UTC 2021
• TensorRT Version 7.1.3-1
• Issue Type: question, possibly a bug or software incompatibility

Hello, I have a jetson NX with pre-installed JetPack, it’s a remote system and I’m not currently able to update it via jetpack installer.

The system is missing Deepstream, so I downloaded the 5.0.1 package (both tar and deb)
and tried to make it work.
Install works perfectly, and my app that uses deepstream compiles without issues.

However, when I’m trying to run anything (app or the DS samples) - the pipeline creation fails because of missing deepstream plugins.

I verified with gst-inspect, and all deepstream libs seem to be blacklisted:

nvidia@nvidia-desktop:~$ gst-inspect-1.0 -b
Blacklisted files:
libnvdsgst_multistream.so
libnvdsgst_tracker.so
libnvdsgst_infer.so
libnvdsgst_dsexample.so
libnvdsgst_multistreamtiler.so
libgstnvvideoconvert.so
libnvdsgst_dewarper.so
libnvdsgst_osd.so
libnvdsgst_inferserver.so

Total count: 9 blacklisted files

Running gst-inspect with debug level 5 gives this for deepstram plugins:
GST_PLUGIN_LOADING gstpluginloader.c:277:plugin_loader_replay_pending: Plugin file /usr/lib/aarch64-linux-gnu/gstreamer-1.0/deepstream/libgstnvvideoconvert.so failed to load. Blacklisting

gstreamer version is 1.14.5-0

Next week I’ll be able to re-install everything from Jetpack, but I’m just wondering if there is anything I can do to fix this?

Do you install the package according to the instruction in Quickstart Guide — DeepStream 6.1.1 Release documentation?

yes, I followed those instructions (tried both method 2 and method 3)
jetpack version is 4.5

Can you run “ls -l /etc/alternatives” and “ls -l /usr/lib/aarch64-linux-gnu/gstreamer-1.0” to check whether the soft links are created correctly. And then check with “ls -l /op/nvidia/deepstream”?

Yes, links do seem to be there. Gstreamer is able to locate nvidia plugins, also it loads the ones that are not part of the deepstream package just fine.
(like nvv4l2decoder)

Also, we just tried installing deepstream 5.0 from jetpack -

lrwxrwxrwx 1 root root 56 Mar 6 05:57 deepstream-app → /opt/nvidia/deepstream/deepstream-5.0/bin/deepstream-app
lrwxrwxrwx 1 root root 64 Mar 6 05:57 deepstream-appsrc-test → /opt/nvidia/deepstream/deepstream-5.0/bin/deepstream-appsrc-test
lrwxrwxrwx 1 root root 65 Mar 6 05:57 deepstream-dewarper-app → /opt/nvidia/deepstream/deepstream-5.0/bin/deepstream-dewarper-app
lrwxrwxrwx 1 root root 69 Mar 6 05:57 deepstream-gst-metadata-app → /opt/nvidia/deepstream/deepstream-5.0/bin/deepstream-gst-metadata-app
lrwxrwxrwx 1 root root 69 Mar 6 05:57 deepstream-image-decode-app → /opt/nvidia/deepstream/deepstream-5.0/bin/deepstream-image-decode-app
lrwxrwxrwx 1 root root 68 Mar 6 05:57 deepstream-image-meta-test → /opt/nvidia/deepstream/deepstream-5.0/bin/deepstream-image-meta-test
lrwxrwxrwx 1 root root 74 Mar 6 05:57 deepstream-infer-tensor-meta-app → /opt/nvidia/deepstream/deepstream-5.0/bin/deepstream-infer-tensor-meta-app
lrwxrwxrwx 1 root root 62 Mar 6 05:57 deepstream-mrcnn-app → /opt/nvidia/deepstream/deepstream-5.0/bin/deepstream-mrcnn-app
lrwxrwxrwx 1 root root 71 Mar 6 05:57 deepstream-nvdsanalytics-test → /opt/nvidia/deepstream/deepstream-5.0/bin/deepstream-nvdsanalytics-test
lrwxrwxrwx 1 root root 61 Mar 6 05:57 deepstream-nvof-app → /opt/nvidia/deepstream/deepstream-5.0/bin/deepstream-nvof-app
lrwxrwxrwx 1 root root 64 Mar 5 01:52 deepstream-opencv-test → /opt/nvidia/deepstream/deepstream-5.0/bin/deepstream-opencv-test
lrwxrwxrwx 1 root root 62 Mar 6 05:57 deepstream-perf-demo → /opt/nvidia/deepstream/deepstream-5.0/bin/deepstream-perf-demo
lrwxrwxrwx 1 root root 53 Mar 6 05:57 deepstream-plugins → /opt/nvidia/deepstream/deepstream-5.0/lib/gst-plugins
lrwxrwxrwx 1 root root 69 Mar 6 05:57 deepstream-segmentation-app → /opt/nvidia/deepstream/deepstream-5.0/bin/deepstream-segmentation-app
lrwxrwxrwx 1 root root 62 Mar 6 05:57 deepstream-test1-app → /opt/nvidia/deepstream/deepstream-5.0/bin/deepstream-test1-app
lrwxrwxrwx 1 root root 62 Mar 6 05:57 deepstream-test2-app → /opt/nvidia/deepstream/deepstream-5.0/bin/deepstream-test2-app
lrwxrwxrwx 1 root root 62 Mar 6 05:57 deepstream-test3-app → /opt/nvidia/deepstream/deepstream-5.0/bin/deepstream-test3-app
lrwxrwxrwx 1 root root 62 Mar 6 05:57 deepstream-test4-app → /opt/nvidia/deepstream/deepstream-5.0/bin/deepstream-test4-app
lrwxrwxrwx 1 root root 62 Mar 6 05:57 deepstream-test5-app → /opt/nvidia/deepstream/deepstream-5.0/bin/deepstream-test5-app
lrwxrwxrwx 1 root root 74 Mar 5 01:52 deepstream-transfer-learning-app → /opt/nvidia/deepstream/deepstream-5.0/bin/deepstream-transfer-learning-app
lrwxrwxrwx 1 root root 70 Mar 6 05:57 deepstream-user-metadata-app → /opt/nvidia/deepstream/deepstream-5.0/bin/deepstream-user-metadata-app

ls -l /usr/lib/aarch64-linux-gnu/gstreamer-1.0
drwxr-xr-x 3 root root 16384 Mar 6 06:23 .
drwxr-xr-x 140 root root 110592 Mar 8 11:32 …
lrwxrwxrwx 1 root root 36 Mar 6 05:57 deepstream → /etc/alternatives/deepstream-plugins
drwxr-xr-x 3 root root 4096 Jan 20 03:31 include
-rw-r–r-- 1 root root 14104 Mar 19 2018 libcluttergst3.so
-rw-r–r-- 1 root root 43976 Jul 4 2019 libgst1394.so
-rw-r–r-- 1 root root 23104 Jul 4 2019 libgsta52dec.so
-rw-r–r-- 1 root root 18816 Jul 4 2019 libgstaasink.so
-rw-r–r-- 1 root root 14456 Jul 4 2019 libgstaccurip.so

ls -l /op/nvidia/deepstream
lrwxrwxrwx 1 root root 37 Jul 27 2020 deepstream → /opt/nvidia/deepstream/deepstream-5.0
drwxr-xr-x 7 root root 4096 Mar 8 14:26 deepstream-5.0

The links are fine. There should not be any error.
Clean the cache with following commands:

rm -rf /home/*/.cache/gstreamer-1.0/
rm -rf /root/.cache/gstreamer-1.0/

And then run “gst-inspect-1.0” to check.

Ok will try that, thank you.