NvUtils NvBufSurface to gstreamer

Hi,
Please try the attachment.

// generate input frame data
$ gst-launch-1.0 videotestsrc num-buffers=150 ! video/x-raw,width=1920,height=1080,format=RGBA ! filesink location=1080.yuv
// build sample
$ make
// run
$ ./appsrc_nvbufsurface
// check a.mkv for the effect

appsrc_nvbufsurface.zip (3.9 KB)