Nvvideoconvert output format

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) :- dGPU
• DeepStream Version :- 6.4

I want to use nvvideoconvert to convert buffer data to RGB.

My question is, how do I make the nvvideoconvert output, Gst-Buffer of type RGB ?? is there any property of this element that I can set ?

This needs to be set through the capsfilter plugin.
You can refer to our source code deepstream_opencv_test.c in the sources\apps\sample_apps\deepstream-opencv-test\deepstream_opencv_test.c.

...
  GstCaps *caps =
      gst_caps_new_simple ("video/x-raw", "format", G_TYPE_STRING, "RGBA",
      NULL);
  GstCapsFeatures *feature = gst_caps_features_new (MEMORY_FEATURES, NULL);
  gst_caps_set_features (caps, 0, feature);

  g_object_set (G_OBJECT (caps_filter), "caps", caps, NULL);
  gst_caps_unref(caps);
...

Pipeline: …nvvideoconvert->capsfilter->…

I added the caps filter according to the opencv-test app and the pipeline graph looks like above, does it look fine ?

Im unable to verify.

Yes. It looks fine just from the location of the plugin. But the pipeline is not at PLAYING state when you dump the graph. So there is no confirmation that you have set the format correctly.

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

1 Like

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