Nvcompositor plugin not working

**• Hardware Platform (Jetson / GPU) - Tesla T4 **
• DeepStream Version - Deepstream-6.2
• JetPack Version (valid for Jetson only)
• TensorRT Version - 8.5.2.2nvidia-
• NVIDIA GPU Driver Version (valid for GPU only) - 525.85.12
• Issue Type( questions, new requirements, bugs) - Query
• 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)

I am running my application where I want to composite multiple input streams into a single output window. While I am able to do it using the nvmultistreamtiler plug-in, I cannot set the properties of individual streams if I use this plugin.
I observed that “nvcompositor” plugin can instead be used to composite the streams (while also setting properties like x_pos and y_pos). I tried to run the command " ```
$ gst-launch-1.0 nvcompositor name=comp sink_0::xpos=0 sink_0::ypos=0 sink_0::width=2560 sink_0::height=720 sink_0::zorder=1 sink_0::alpha=1 sink_1::xpos=0 sink_1::ypos=0 sink_1::width=2560 sink_1::height=720 sink_1::zorder=2 sink_1::alpha=0.1 ! ‘video/x-raw(memory:NVMM),format=RGBA’ ! nvvidconv ! video/x-raw ! xvimagesink videotestsrc ! video/x-raw,format=YUY2,width=2560,height=720,framerate=30/1 ! nvvidconv ! ‘video/x-raw(memory:NVMM),format=RGBA’ ! comp.sink_0 videotestsrc ! videoconvert ! video/x-raw,format=RGBA ! nvvidconv ! ‘video/x-raw(memory:NVMM),format=RGBA,width=2560,height=720’ ! comp.sink_1

However, when running the same, I observe the error - "WARNING: erroneous pipeline: no element "nvcompositor"". 
Am I missing something? Is the nvcompositor plugin only supported on Jetson boards?

please refer to this topic.
which property do you want to set? what is your use scenario?

Hi,

I want to set properties like xpos and ypos for each stream. Specifying where the stream is placed in the output window.

  1. currently nvmultistreamtiler dose not support xpos this kind of parameter. it can support row, columns, width, height. please refer to nvmultistreamtiler.
  2. please refer to this topic.
    There is NvBufSurfTransformComposite API for multiple NvBufSurface composition.
    NVIDIA DeepStream SDK API Reference: NvBufSurfTransform Types and Functions
    You may implement a compositor plugin with this API.

Hi,

Thanks for the reply. Since I can only set the rows and columns in nvmultistreamtiler, all the videos have equal size in the window. I cannot set a parameter for a particular input stream.
Can you please provide an example as to how nvbufsurftransform can be used in GStreamer Command Line?

There is no update from you for a period, assuming this is not an issue anymore. Hence we are closing this topic. If need further support, please open a new one. Thanks

you mean NvBufSurfTransformComposite? it is a API, it can’t be used in GStreamer Command Line directly. you can set xpos in NvBufSurfTransformParams’s NvBufSurfTransformRect.

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