Unable to create Nvv4l2 Decoder

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson) Jetson
• DeepStream Version 5.0
• JetPack Version (valid for Jetson only) 4.4.1[L4T 32.4.4]
• TensorRT Version 7.1.3.0
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs) questions
• 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)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

==================================================================
jetsonai@jetsonai-desktop:/opt/nvidia/deepstream/deepstream-5.0/sources/deepstream_python_apps/apps/deepstream-test1$ sudo python3 deepstream_test_1.py …/…/…/…/samples/streams/sample_720p.h264
Creating Pipeline

Creating Source

Creating H264Parser

Creating Decoder

Unable to create Nvv4l2 Decoder
Unable to create NvStreamMux
Unable to create pgie
Unable to create nvvidconv
Unable to create nvosd
Creating EGLSink

Unable to create egl sink
Playing file …/…/…/…/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’

How can I resolve this issue?

Thank you.

Can you run “gst-inspect-1.0 nvstreammux” command and check the output?

Please upgrade to latest Deepstream SDK 5.1 version Quickstart Guide — DeepStream 6.1.1 Release documentation

1 Like

Hello,

I am using jetpack 4.4
Is it possible to use deepstream 5.1?

Thank you.

gst-inspect-1.0 nvstreammux
No such element or plugin ‘nvstreammux’

Thank you.

Please update to JetPack 4.5.1, and install deepstream 5.1.

Deepstream is not installed in your board now.

https://docs.nvidia.com/metropolis/deepstream/dev-guide/text/DS_Quickstart.html

1 Like

Hello,

in jetpack4.4
Can’t I use deepstream 5.0?

Thank you.

Yes. DS 5.0 is based on JetPack4.4. But it is not maintained now. Please upgrade to latest Deepstream version.

Hello,

I’m trying to proceed with tx2, is there a way to check if deepstream is installed?

Thank you.

Hello,

This is the result of running the command you gave me after installing deepstream-5.1 on tx2 using the sdk manager.

nvidia@nvidia-desktop:/opt/nvidia/deepstream/deepstream-5.1$ gst-inspect-1.0 nvstreammux
Factory Details:
Rank primary (256)
Long-name Stream multiplexer
Klass Generic
Description N-to-1 pipe stream multiplexing
Author NVIDIA Corporation. Post on Deepstream for Tesla forum for any queries @ DeepStream SDK - NVIDIA Developer Forums

Plugin Details:
Name nvdsgst_multistream
Description NVIDIA Multistream mux/demux plugin
Filename /usr/lib/aarch64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_multistream.so
Version 5.1.0
License Proprietary
Source module nvmultistream
Binary package NVIDIA Multistream Plugins
Origin URL http://nvidia.com/

GObject
±—GInitiallyUnowned
±—GstObject
±—GstElement
±—GstNvStreamMux

Pad Templates:
SINK template: ‘sink_%u’
Availability: On request
Capabilities:
video/x-raw(memory:NVMM)
format: { (string)NV12, (string)RGBA }
width: [ 1, 2147483647 ]
height: [ 1, 2147483647 ]
framerate: [ 0/1, 2147483647/1 ]
video/x-raw
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:
SRC: ‘src’
Pad Template: ‘src’

Element Properties:
name : The name of the object
flags: readable, writable
String. Default: “nvstreammux0”
parent : The parent of the object
flags: readable, writable
Object of type “GstObject”
batch-size : Maximum number of buffers in a batch
flags: readable, writable
Unsigned Integer. Range: 0 - 1024 Default: 0
batched-push-timeout: Timeout in microseconds to wait after the first buffer is available
to push the batch even if the complete batch is not formed.
Set to -1 to wait infinitely
flags: readable, writable
Integer. Range: -1 - 2147483647 Default: -1
width : Width of each frame in output batched buffer. This property MUST be set.
flags: readable, writable
Unsigned Integer. Range: 0 - 4294967295 Default: 0
height : Height of each frame in output batched buffer. This property MUST be set.
flags: readable, writable
Unsigned Integer. Range: 0 - 4294967295 Default: 0
enable-padding : Maintain input aspect ratio when scaling by padding with black bands.
flags: readable, writable
Boolean. Default: false
gpu-id : Set GPU Device ID
flags: readable, writable
Unsigned Integer. Range: 0 - 4294967295 Default: 0
live-source : Boolean property to inform muxer that sources are live.
flags: readable, writable
Boolean. Default: false
num-surfaces-per-frame: Max number of surfaces per frame
flags: readable, writable
Unsigned Integer. Range: 1 - 4 Default: 1
nvbuf-memory-type : Type of NvBufSurface Memory to be allocated for output buffers
flags: readable, writable, changeable only in NULL or READY state
Enum “GstNvBufMemoryType” Default: 0, “nvbuf-mem-default”
(0): nvbuf-mem-default - Default memory allocated, specific to particular platform
(1): nvbuf-mem-cuda-pinned - Allocate Pinned/Host cuda memory
(2): nvbuf-mem-cuda-device - Allocate Device cuda memory
(3): nvbuf-mem-cuda-unified - Allocate Unified cuda memory
(4): nvbuf-mem-surface-array - Allocate Surface Array memory, applicable for Jetson
compute-hw : Compute Scaling HW
flags: readable, writable, controllable
Enum “GstNvComputeHWType” Default: 0, “Default”
(0): Default - Default, GPU for Tesla, VIC for Jetson
(1): GPU - GPU
(2): VIC - VIC
interpolation-method: Set interpolation methods
flags: readable, writable, controllable
Enum “GstNvInterpolationMethod” Default: 1, “Bilinear”
(0): Nearest - Nearest
(1): Bilinear - Bilinear
(2): Algo-1 - GPU - Cubic, VIC - 5 Tap
(3): Algo-2 - GPU - Super, VIC - 10 Tap
(4): Algo-3 - GPU - LanzoS, VIC - Smart
(5): Algo-4 - GPU - Ignored, VIC - Nicest
(6): Default - GPU - Nearest, VIC - Nearest
buffer-pool-size : Maximum number of buffers in muxer’s internal pool
flags: readable, writable
Unsigned Integer. Range: 0 - 1024 Default: 4
attach-sys-ts : If set to TRUE, system timestamp will be attached as ntp timestamp.
If set to FALSE, ntp timestamp from rtspsrc, if available, will be attached.
flags: readable, writable
Boolean. Default: true
sync-inputs : Boolean property to force sychronization of input frames.
flags: readable, writable
Boolean. Default: false
nvidia@nvidia-desktop:/opt/nvidia/deepstream/deepstream-5.1$

Thank you.

The command " gst-inspect-1.0 nvstreammux" is to help you to check if deepstream SDk has been installed correctly.

Since the " gst-inspect-1.0 nvstreammux" works now. You can gon on with your cases.

1 Like

Hello,

I ran
python3 deepstream_test_1.py …/…/…/…/samples/streams/sample_720p.h264

Where is the sample using _NvBufSurfTransformCompositeParams Struct as shown in the following YouTube video and how does it work?
I am looking for an example of receiving multiple rtsp streams, compositing them, and displaying them.

Thank you.

Please check deepstream-test3 sample. Can you read the document carefully? It will be helpful for you! C/C++ Sample Apps Source Details — DeepStream 6.1.1 Release documentation

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.