Populating NvBuvSurface from cv::Mat in Jetson

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

Please check the “memType” in NvBufSurface. NVIDIA DeepStream SDK API Reference: NvBufSurface Struct Reference | NVIDIA Docs

Please check the “pitch” of NVIDIA DeepStream SDK API Reference: NvBufSurfaceParams Struct Reference | NVIDIA Docs

There is a sample of get the read/write buffer from NvBufSurface. DeepStream SDK FAQ - Intelligent Video Analytics / DeepStream SDK - NVIDIA Developer Forums. It is a little complicated for Jetson.