- deepstream-app version 6.1.0
- DeepStreamSDK 6.1.0
- CUDA Driver Version: 11.4
- CUDA Runtime Version: 11.0
- TensorRT Version: 8.2
- cuDNN Version: 8.4
- libNVWarp360 Version: 2.0.1d3
- on A6000
1,I based on deepstream-test3, modified the source code, created the dsexample plugin with gst_element_factory_make and then added it to the pipeline, and it reported an error: gstDsExample has no property named ‘nvbuf-memory- type’ and Gst_dsexample_transform_ip:NEED NVBUF_MEM_CUDA_UNIFIED memory for opencv blurring.
2,But in deepsteam-app modify the configuration file, add ds-example can run, I analyzed the deepstream-app source code, found that he used create_dsexample_bin, in this function set nvbuf-memory-type separately.
3,I am modifying the source code, I can’t use deepstream-app, so I create dsexample plugin in the source code by gst_element_factory_make, what should I write in?
...
GstElement *osd = deepstream_test1_app_add_nvdsosd (pipeline, pgie, 0, 0, "OSD");
GstElement *dsexample = gst_element_factory_make ("dsexample", "dsexample");
g_object_set (G_OBJECT (dsexample), "full-frame", 0, "processing-width", 640, "processing-height", 480, "batch-size", 1, "unique-id", 15, "gpu-id", 0, "blur-objects", 1, "nvbuf-memory-type", 3, "roi-top-offset", 0, "roi-left-offset", 0, "roi-width", 640, "roi-height", 480, NULL);
gst_bin_add (GST_BIN (pipeline), dsexample);
gst_element_link (osd, dsexample);
...