How to create Gstreamer pipeline using VideoCapture() in openCV?

the argument is supposed to be just the pipeline, not gst-launch-1.0

OpenCV does not start a subprocess. it calls into the gstreamer library.