How to get a Cuda GpuMat into Gstreamer?

Hi,
Please refer to the sample:

The script is updated:
https://github.com/AastaNV/JEP/blob/master/script/install_opencv4.5.0_Jetson.sh