deepstream-test1-app ../samples/streams/sample_720p.h264 --> One element could not be created. Exiting

I have execute sample app but error. “One element could not be created. Exiting.”
What is the problem?

@dl-host:/opt/nvidia/deepstream/deepstream-4.0/bin$ GST_DEBUG=4 ./deepstream-test1-app …/samples/streams/sample_720p.h264
0:00:00.000147581 1821 0x55b2f22b9800 INFO GST_INIT gst.c:586:init_pre: Initializing GStreamer Core Library version 1.14.5
0:00:00.000235838 1821 0x55b2f22b9800 INFO GST_INIT gst.c:587:init_pre: Using library installed in /usr/lib/x86_64-linux-gnu
0:00:00.000267224 1821 0x55b2f22b9800 INFO GST_INIT gst.c:607:init_pre: Linux dl-host 5.0.0-23-generic #24~18.04.1-Ubuntu SMP Mon Jul 29 16:12:28 UTC 2019 x86_64
0:00:00.000784078 1821 0x55b2f22b9800 INFO GST_INIT gstmessage.c:127:_priv_gst_message_initialize: init messages
0:00:00.001890682 1821 0x55b2f22b9800 INFO GST_INIT gstcontext.c:84:_priv_gst_context_initialize: init contexts
0:00:00.002358717 1821 0x55b2f22b9800 INFO GST_PLUGIN_LOADING gstplugin.c:317:_priv_gst_plugin_initialize: registering 0 static plugins
0:00:00.002557528 1821 0x55b2f22b9800 INFO GST_PLUGIN_LOADING gstplugin.c:225:gst_plugin_register_static: registered static plugin “staticelements”
0:00:00.002591310 1821 0x55b2f22b9800 INFO GST_PLUGIN_LOADING gstplugin.c:227:gst_plugin_register_static: added static plugin “staticelements”, result: 1
0:00:00.002645599 1821 0x55b2f22b9800 INFO GST_REGISTRY gstregistry.c:1727:ensure_current_registry: reading registry cache: /home/maponarooo/.cache/gstreamer-1.0/registry.x86_64.bin
0:00:00.017014043 1821 0x55b2f22b9800 INFO GST_REGISTRY gstregistrybinary.c:621:priv_gst_registry_binary_read_cache: loaded /home/maponarooo/.cache/gstreamer-1.0/registry.x86_64.bin in 0.014315 seconds
0:00:00.017061993 1821 0x55b2f22b9800 INFO GST_REGISTRY gstregistry.c:1583:scan_and_update_registry: Validating plugins from registry cache: /home/maponarooo/.cache/gstreamer-1.0/registry.x86_64.bin
0:00:00.017940196 1821 0x55b2f22b9800 INFO GST_REGISTRY gstregistry.c:1685:scan_and_update_registry: Registry cache has not changed
0:00:00.017949881 1821 0x55b2f22b9800 INFO GST_REGISTRY gstregistry.c:1762:ensure_current_registry: registry reading and updating done, result = 1
0:00:00.017955758 1821 0x55b2f22b9800 INFO GST_INIT gst.c:807:init_post: GLib runtime version: 2.56.4
0:00:00.017961065 1821 0x55b2f22b9800 INFO GST_INIT gst.c:809:init_post: GLib headers version: 2.56.4
0:00:00.017966715 1821 0x55b2f22b9800 INFO GST_INIT gst.c:810:init_post: initialized GStreamer successfully
0:00:00.017989493 1821 0x55b2f22b9800 INFO GST_ELEMENT_FACTORY gstelementfactory.c:359:gst_element_factory_create: creating element “pipeline” named “dstest1-pipeline”
0:00:00.018500145 1821 0x55b2f22b9800 INFO GST_PLUGIN_LOADING gstplugin.c:901:_priv_gst_plugin_load_file_for_registry: plugin “/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstcoreelements.so” loaded
0:00:00.018513264 1821 0x55b2f22b9800 INFO GST_ELEMENT_FACTORY gstelementfactory.c:359:gst_element_factory_create: creating element “filesrc” named “file-source”
0:00:00.018586267 1821 0x55b2f22b9800 INFO GST_ELEMENT_PADS gstelement.c:670:gst_element_add_pad:GstBaseSrc@0x55b2f24fc120 adding pad ‘src’
0:00:00.019374725 1821 0x55b2f22b9800 INFO GST_PLUGIN_LOADING gstplugin.c:901:_priv_gst_plugin_load_file_for_registry: plugin “/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstvideoparsersbad.so” loaded
0:00:00.019385710 1821 0x55b2f22b9800 INFO GST_ELEMENT_FACTORY gstelementfactory.c:359:gst_element_factory_create: creating element “h264parse” named “h264-parser”
0:00:00.019436591 1821 0x55b2f22b9800 INFO GST_ELEMENT_PADS gstelement.c:670:gst_element_add_pad:GstBaseParse@0x55b2f2503490 adding pad ‘sink’
0:00:00.019449029 1821 0x55b2f22b9800 INFO GST_ELEMENT_PADS gstelement.c:670:gst_element_add_pad:GstBaseParse@0x55b2f2503490 adding pad ‘src’
0:00:00.019470255 1821 0x55b2f22b9800 INFO baseparse gstbaseparse.c:3961:gst_base_parse_set_pts_interpolation:GstH264Parse@0x55b2f2503490 PTS interpolation: no
0:00:00.021722045 1821 0x55b2f22b9800 INFO GST_PLUGIN_LOADING gstplugin.c:901:_priv_gst_plugin_load_file_for_registry: plugin “/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libgstnvvideo4linux2.so” loaded
0:00:00.021736385 1821 0x55b2f22b9800 INFO GST_ELEMENT_FACTORY gstelementfactory.c:359:gst_element_factory_create: creating element “nvv4l2decoder” named “nvv4l2-decoder”
0:00:00.021807259 1821 0x55b2f22b9800 INFO GST_ELEMENT_PADS gstelement.c:670:gst_element_add_pad:GstVideoDecoder@0x55b2f2522490 adding pad ‘sink’
0:00:00.021820102 1821 0x55b2f22b9800 INFO GST_ELEMENT_PADS gstelement.c:670:gst_element_add_pad:GstVideoDecoder@0x55b2f2522490 adding pad ‘src’
0:00:00.037365219 1821 0x55b2f22b9800 INFO GST_PLUGIN_LOADING gstplugin.c:901:_priv_gst_plugin_load_file_for_registry: plugin “/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_multistream.so” loaded
0:00:00.037384624 1821 0x55b2f22b9800 INFO GST_ELEMENT_FACTORY gstelementfactory.c:359:gst_element_factory_create: creating element “nvstreammux” named “stream-muxer”
0:00:00.037515278 1821 0x55b2f22b9800 INFO GST_ELEMENT_PADS gstelement.c:670:gst_element_add_pad:GstNvStreamMux@0x55b2f25ac100 adding pad ‘src’
0:00:00.037529455 1821 0x55b2f22b9800 WARN GST_ELEMENT_FACTORY gstelementfactory.c:456:gst_element_factory_make: no such element factory “nvinfer”!
0:00:00.037771380 1821 0x55b2f22b9800 INFO GST_PLUGIN_LOADING gstplugin.c:901:_priv_gst_plugin_load_file_for_registry: plugin “/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libgstnvvideoconvert.so” loaded
0:00:00.037782754 1821 0x55b2f22b9800 INFO GST_ELEMENT_FACTORY gstelementfactory.c:359:gst_element_factory_create: creating element “nvvideoconvert” named “nvvideo-converter”
0:00:00.037863040 1821 0x55b2f22b9800 INFO GST_ELEMENT_PADS gstelement.c:670:gst_element_add_pad:GstBaseTransform@0x55b2f25ae970 adding pad ‘sink’
0:00:00.037878742 1821 0x55b2f22b9800 INFO GST_ELEMENT_PADS gstelement.c:670:gst_element_add_pad:GstBaseTransform@0x55b2f25ae970 adding pad ‘src’
0:00:00.039862990 1821 0x55b2f22b9800 INFO GST_PLUGIN_LOADING gstplugin.c:901:_priv_gst_plugin_load_file_for_registry: plugin “/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_osd.so” loaded
0:00:00.039878662 1821 0x55b2f22b9800 INFO GST_ELEMENT_FACTORY gstelementfactory.c:359:gst_element_factory_create: creating element “nvdsosd” named “nv-onscreendisplay”
0:00:00.039950553 1821 0x55b2f22b9800 INFO GST_ELEMENT_PADS gstelement.c:670:gst_element_add_pad:GstBaseTransform@0x55b2f25bd8d0 adding pad ‘sink’
0:00:00.039969763 1821 0x55b2f22b9800 INFO GST_ELEMENT_PADS gstelement.c:670:gst_element_add_pad:GstBaseTransform@0x55b2f25bd8d0 adding pad ‘src’
0:00:00.040597629 1821 0x55b2f22b9800 INFO GST_PLUGIN_LOADING gstplugin.c:901:_priv_gst_plugin_load_file_for_registry: plugin “/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_eglglessink.so” loaded
0:00:00.040610016 1821 0x55b2f22b9800 INFO GST_ELEMENT_FACTORY gstelementfactory.c:359:gst_element_factory_create: creating element “nveglglessink” named “nvvideo-renderer”
0:00:00.040727007 1821 0x55b2f22b9800 INFO GST_ELEMENT_PADS gstelement.c:670:gst_element_add_pad:GstBaseSink@0x55b2f2618310 adding pad ‘sink’
One element could not be created. Exiting.

Per error log -

0:00:00.037529455 1821 0x55b2f22b9800 WARN GST_ELEMENT_FACTORY gstelementfactory.c:456:gst_element_factory_make: no such element factory “nvinfer”!

please check if you got nvinfer installed

$ gst-inspect-1.0 nvinfer

===========================================

Thank you so much~~~~

maponarooo@dl-host:~ gst-inspect-1.0 nvinfer No such element or plugin 'nvinfer' maponarooo@dl-host:~

By the way… :D How can I install the nvinfer element?

So, I have reinstall TensorRT 7 again. But, Same…

maponarooo@dl-host:~/shared$ dpkg -l | grep TensorRT
ii graphsurgeon-tf 7.0.0-1+cuda10.2 amd64 GraphSurgeon for TensorRT package
ii libnvinfer-bin 7.0.0-1+cuda10.2 amd64 TensorRT binaries
ii libnvinfer-dev 7.0.0-1+cuda10.2 amd64 TensorRT development libraries and headers
ii libnvinfer-doc 7.0.0-1+cuda10.2 all TensorRT documentation
ii libnvinfer-plugin-dev 7.0.0-1+cuda10.2 amd64 TensorRT plugin libraries
ii libnvinfer-plugin6 6.0.1-1+cuda10.1 amd64 TensorRT plugin libraries
ii libnvinfer-plugin7 7.0.0-1+cuda10.2 amd64 TensorRT plugin libraries
ii libnvinfer-samples 7.0.0-1+cuda10.2 all TensorRT samples
ii libnvinfer6 6.0.1-1+cuda10.1 amd64 TensorRT runtime libraries
ii libnvinfer7 7.0.0-1+cuda10.2 amd64 TensorRT runtime libraries
ii libnvonnxparsers-dev 7.0.0-1+cuda10.2 amd64 TensorRT ONNX libraries
ii libnvonnxparsers6 6.0.1-1+cuda10.1 amd64 TensorRT ONNX libraries
ii libnvonnxparsers7 7.0.0-1+cuda10.2 amd64 TensorRT ONNX libraries
ii libnvparsers-dev 7.0.0-1+cuda10.2 amd64 TensorRT parsers libraries
ii libnvparsers6 6.0.1-1+cuda10.1 amd64 TensorRT parsers libraries
ii libnvparsers7 7.0.0-1+cuda10.2 amd64 TensorRT parsers libraries
ii python-libnvinfer 7.0.0-1+cuda10.2 amd64 Python bindings for TensorRT
ii python-libnvinfer-dev 7.0.0-1+cuda10.2 amd64 Python development package for TensorRT
ii python3-libnvinfer 7.0.0-1+cuda10.2 amd64 Python 3 bindings for TensorRT
ii python3-libnvinfer-dev 7.0.0-1+cuda10.2 amd64 Python 3 development package for TensorRT
ii tensorrt 7.0.0.11-1+cuda10.2 amd64 Meta package of TensorRT
ii uff-converter-tf 7.0.0-1+cuda10.2 amd64 UFF converter for TensorRT package
maponarooo@dl-host:~/shared$ gst-inspect-1.0 nvinfer
No such element or plugin ‘nvinfer’

Try “sudo apt install deepstream-4.0” if you have JetPack 4.3. That will install DeepStream (which includes nvinfer).

I’m sorry… I’m not a Jetson but AMD + GTX1050ti.

In this case you will have to download and install DeepStream from .deb package. Once DeepStream is installed you should have the nvinfer element available.

https://developer.nvidia.com/deepstream-download

Download the Tesla version. Officially GTX is not supported, especially in production in which case I believe the license requires you to use Tesla (or Jetson). Yeah I don’t agree with it either and think it’s a short sighted decision, but I guess the market research doesn’t agree.

Tesla version?
You mean “DeepStream 4.0.2 for T4 and V100
This release supports Tesla T4 and V100.” is right?

Okay. I will try again. Thank you…

Yes… You are right! I succeed! I got it!

Thank you so much~

maponarooo@dl-host:~/shared$ gst-inspect-1.0 nvinfer
Factory Details:
Rank primary (256)
Long-name NvInfer plugin
Klass NvInfer Plugin
Description Nvidia DeepStreamSDK TensorRT plugin
Author NVIDIA Corporation. Deepstream for Tesla forum: https://devtalk.nvidia.com/default/board/209

Plugin Details:
Name nvdsgst_infer
Description NVIDIA DeepStreamSDK TensorRT plugin
Filename /usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_infer.so
Version 4.0.2
License Proprietary
Source module nvinfer
Binary package NVIDIA DeepStreamSDK TensorRT plugin
Origin URL http://nvidia.com/

GObject
±—GInitiallyUnowned
±—GstObject
±—GstElement
±—GstBaseTransform
±—GstNvInfer

Pad Templates:
SINK template: ‘sink’
Availability: Always
Capabilities:
video/x-raw(memory:NVMM)
format: { (string)NV12, (string)RGBA }
width: [ 1, 2147483647 ]
height: [ 1, 2147483647 ]
framerate: [ 0/1, 2147483647/1 ]

SRC template: ‘src’
Availability: Always
Capabilities:
video/x-raw(memory:NVMM)
format: { (string)NV12, (string)RGBA }
width: [ 1, 2147483647 ]
height: [ 1, 2147483647 ]
framerate: [ 0/1, 2147483647/1 ]

Element has no clocking capabilities.
Element has no URI handling capabilities.

Pads:
SINK: ‘sink’
Pad Template: ‘sink’
SRC: ‘src’
Pad Template: ‘src’

Element Properties:
name : The name of the object
flags: readable, writable
String. Default: “nvinfer0”
parent : The parent of the object
flags: readable, writable
Object of type “GstObject”
qos : Handle Quality-of-Service events
flags: readable, writable
Boolean. Default: false
unique-id : Unique ID for the element. Can be used to identify output of the element
flags: readable, writable, changeable only in NULL or READY state
Unsigned Integer. Range: 0 - 4294967295 Default: 15
process-mode : Infer processing mode
flags: readable, writable, changeable only in NULL or READY state
Enum “GstNvInferProcessModeType” Default: 1, “primary”
(1): primary - Primary (Full Frame)
(2): secondary - Secondary (Objects)
config-file-path : Path to the configuration file for this instance of nvinfer
flags: readable, writable, changeable only in NULL or READY state
String. Default: “”
infer-on-gie-id : Infer on metadata generated by GIE with this unique ID.
Set to -1 to infer on all metadata.
flags: readable, writable, changeable only in NULL or READY state
Integer. Range: -1 - 2147483647 Default: -1
infer-on-class-ids : Infer on objects with specified class ids
Use string with values of class ids in ClassID (int) to set the property.
e.g. 0:2:3
flags: readable, writable, changeable only in NULL or READY state
String. Default: “”
model-engine-file : Absolute path to the pre-generated serialized engine file for the model
flags: readable, writable, changeable only in NULL or READY state
String. Default: “”
batch-size : Maximum batch size for inference
flags: readable, writable, changeable only in NULL or READY state
Unsigned Integer. Range: 1 - 1024 Default: 1
interval : Specifies number of consecutive batches to be skipped for inference
flags: readable, writable, changeable only in NULL or READY state
Unsigned Integer. Range: 0 - 2147483647 Default: 0
gpu-id : Set GPU Device ID
flags: readable, writable, changeable only in NULL or READY state
Unsigned Integer. Range: 0 - 4294967295 Default: 0
raw-output-file-write: Write raw inference output to file
flags: readable, writable, changeable only in NULL or READY state
Boolean. Default: false
raw-output-generated-callback: Pointer to the raw output generated callback funtion
(type: gst_nvinfer_raw_output_generated_callback in ‘gstnvdsinfer.h’)
flags: readable, writable, changeable only in NULL or READY state
Pointer.
raw-output-generated-userdata: Pointer to the userdata to be supplied with raw output generated callback
flags: readable, writable, changeable only in NULL or READY state
Pointer.
output-tensor-meta : Attach inference tensor outputs as buffer metadata
flags: readable, writable, changeable only in NULL or READY state
Boolean. Default: false
maponarooo@dl-host:~/shared$