How can I integrate my live streaming Gstreamer pipeline with openCV?

gst-launch-1.0 -e nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=(int)1280, height=(int)720, format=(string)NV12, framerate=(fraction)60/1' ! nvv4l2h265enc maxperf-enable=1 bitrate=8000000 iframeinterval=40 preset-level=1 control-rate=1 ! h265parse ! rtph265pay config-interval=1 ! udpsink host= localhost port=5000 sync=false async=false

How can I integrate this code with openCV? preferably with cv2.videocapture or cv2.videowriter.

By doing so, I am hoping to be able to reduce the latency streaming latency

There are a few posts about cv2.VideoWriter: