Why is the created decoder is none? Why is the created h264parser is not none? and the created streammux is also none? What wrong with my envs? It is the sample of deepstream_test_1.py.
…
print(“Creating H264Parser \n”)
h264parser = Gst.ElementFactory.make(“h264parse”, “h264-parser”)
if not h264parser:
sys.stderr.write(" Unable to create h264 parser \n")
# Use nvdec_h264 for hardware accelerated decode on GPU
print("Creating Decoder \n")
decoder = Gst.ElementFactory.make("nvv4l2decoder", "nvv4l2-decoder")
if not decoder:
sys.stderr.write(" Unable to create Nvv4l2 Decoder \n")
# Create nvstreammux instance to form batches from one or more sources.
streammux = Gst.ElementFactory.make("nvstreammux", "Stream-muxer")
if not streammux:
sys.stderr.write(" Unable to create NvStreamMux \n")
The deepstream SDK should have been installed correctly because:
(1) in the same sample, I can create the source and h264parser elements which are not none. But the following elements are none, such as decoder and streammux.
source = Gst.ElementFactory.make("filesrc", "file-source")
if not source:
sys.stderr.write(" Unable to create Source \n")
# Since the data format in the input file is elementary h264 stream,
# we need a h264parser
print("Creating H264Parser \n")
h264parser = Gst.ElementFactory.make("h264parse", "h264-parser")
(2) I can get the inform after reinstalling the deepstream SDK.
deepstream-app version 5.1.0
DeepStreamSDK 5.1.0
CUDA Driver Version: 11.3
CUDA Runtime Version: 11.3
TensorRT Version: 7.2
cuDNN Version: 8.2
Dewarper: not found
Thank you for your reply. But I cannot step forward because the decoder is none.
If the deepstream element can not be created correctly, the SDK is not installed correctly. Please use “gst-launch-1.0 nvstreammux” command to check whether the SDK is installed correctly.
I had installed the deepstream SDK step by step according to the document. But it seems the SDK is not installed correctly. I conducted “gst-launch-1.0 nvstreammux” command twice as following:
*(gst-plugin-scanner:13952): GStreamer-WARNING *: 23:05:20.235: Failed to load plugin ‘/opt/intel/openvino_2021/data_processing/gstreamer/lib/gstreamer-1.0/libgstdirectfb.so’: libdirectfb-1.7.so.7: cannot open shared object file: No such file or directory
*(gst-plugin-scanner:13952): GStreamer-WARNING *: 23:05:20.285: Failed to load plugin ‘/opt/intel/openvino_2021/data_processing/gstreamer/lib/gstreamer-1.0/libgstneonhttpsrc.so’: libneon.so.27: cannot open shared object file: No such file or directory DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument Assuming 131072kB available aperture size. May lead to reduced performance or incorrect rendering. get chip id failed: -1 [22] param: 4, val: 0 DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument Assuming 131072kB available aperture size. May lead to reduced performance or incorrect rendering. get chip id failed: -1 [22] param: 4, val: 0 DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument Assuming 131072kB available aperture size. May lead to reduced performance or incorrect rendering. get chip id failed: -1 [22] param: 4, val: 0
*(gst-plugin-scanner:13952): GStreamer-WARNING *: 23:05:20.693: Failed to load plugin ‘/opt/intel/openvino_2021/data_processing/gstreamer/lib/gstreamer-1.0/libgstladspa.so’: liblrdf.so.0: cannot open shared object file: No such file or directory
*(gst-plugin-scanner:13952): GStreamer-WARNING *: 23:05:20.718: Failed to load plugin ‘/opt/intel/openvino_2021/data_processing/gstreamer/lib/gstreamer-1.0/libgstopenni2.so’: libOpenNI2.so.0: cannot open shared object file: No such file or directory
*(gst-plugin-scanner:13952): GStreamer-WARNING *: 23:05:20.728: Failed to load plugin ‘/opt/intel/openvino_2021/data_processing/gstreamer/lib/gstreamer-1.0/libgstfdkaac.so’: libfdk-aac.so.1: cannot open shared object file: No such file or directory
*(gst-plugin-scanner:13952): GStreamer-WARNING *: 23:05:20.750: Failed to load plugin ‘/opt/intel/openvino_2021/data_processing/gstreamer/lib/gstreamer-1.0/libgstfaac.so’: libfaac.so.0: cannot open shared object file: No such file or directory
On another computer, I can create decoder, streammux, and so on, but can not create pgie and nvosd. They are all none. How to install, find and add these plugin in the program?
uubuntu18.08
1080Ti
deepstream-app version 5.1.0
DeepStreamSDK 5.1.0
CUDA Driver Version: 11.3
CUDA Runtime Version: 11.3
TensorRT Version: 7.2
cuDNN Version: 8.2
Dewarper: not found
I test the docker of ds5.1. Some plugin can not be used. It seems that some plugins are in the blacklist. The docker is just download without any change.
Unable to create NvStreamMux
Unable to create pgie
Unable to create nvvidconv
Creating EGLSink
Unable to create egl sink
Playing file /opt/nvidia/deepstream/deepstream/samples/streams/sample_720p.h264
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’
Now I changed a docker, nvcr.io/nvidia/tlt-streamanalytics:v3.0-dp-py3. I can create the decoder, and the h264parser, the streammux. But I can not run the sample deepstream-opticalflow.py. It informed me that:
WARNING:root:kernel be408254-d236-4dc4-aae6-509b84b547a4 restarted
Device Number: 0
Device name: GeForce GTX 1080 Ti
Device Version 6.1
ERROR : Device Does NOT Supports Optical Flow Functionality
And I test these comand and find some errors:
nvcc -V
bash: nvcc: command not found
ldd /opt/nvidia/deepstream/deepstream-5.1/lib/gst-plugins/libnv
ldd: /opt/nvidia/deepstream/deepstream-5.1/lib/gst-plugins/libnv: No such file or directory
The docker has not cuda toolkit? Why is Device Version 6.1?