How to set GPU device ID when decoding with gstreamer nvv4l2decoder?

I have 2 T4 cards, and I want to decode videos with them and can be setted in gstreamer plugin “nvv4l2decoder”.Is there any propertity can be set in nvv4l2decoder?

Hi,
Do you use Xavier NX? Or desktop GPUs?

Desktop GPU T4. And there are 2 cards.

There should be two devices in your system, /dev/nvidia0 and /dev/nvidia1 corresponding to your 2 T4, you can try to set device=/dev/nvidia0(or 1) following your nvv4l2decoder element.

You can use the “gpu-id” option of nvv4l2decoder, and you’d better to specify the “cudadec-memtype” to be “memtype_unified” if you want to transfer to decoded data accross GPUs.

$ gst-inspect-1.0 nvv4l2decoder

cudadec-memtype : Set to specify memory type for cuda decoder buffers
flags: readable, writable, changeable only in NULL or READY state
Enum “CudaDecMemType” Default: 2, “memtype_unified”
(0): memtype_device - Memory type Device
(1): memtype_pinned - Memory type Host Pinned
(2): memtype_unified - Memory type Unified

gpu-id : Set to GPU Device ID for decoder
flags: readable, writable, changeable only in NULL or READY state
Unsigned Integer. Range: 0 - 4294967295 Default: 0

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