How do I use GStreamer pipeline to extract frames to Cuda's GpuMat?

You may find some ways to do that from this topic.