How can i get jpeg data from the plugin nvjpegenc?

Hi
NvJpegEncoder in 05_jpeg_encode supports NvBuffer. It does not support NvBufSurface defined in DeepStream SDK. For encoding/saving the frames to JPEG files, you would need to utilize cv::imwrite(). Please refer to
RTSP camera access frame issue - #19 by DaneLLL