I am trying to implement a custom DeepStream plugin that is a subclass of GstVideoAggregator
. I need to implement the function prepare_frame
of `GstVideoAggregatorPad. Using the guidelines here a convert the GstBuffer of the pad to a cv::cuda::GpuMat and this is passed to a cv::cuda::resize operation. Now, I need to to populate the GstVideoFrame* prepared_frame with the output cv::cuda::GpuMat. Any hints on how to do this? Thanks in advance!
What is your purpose for implementing this plugin? Maybe you can use our nvdsvideotemplate to meet your needs.
I try to implement a custom plugin for stitching that uses OpenCV stitching and cuda APIs. Not sure if nvdsvideotemplate is suitable for my needs but I will check it.
OK. About the GstVideoFrame, you can refer to our source code in sources\gst-plugins\gst-nvdsA2Vtemplate\gstnvdsA2Vtemplate.cpp
.
gst_nvdsA2Vtemplate_render
That might help.
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
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.