VideoCapture not working with Gstreamer pipeline

Fourier’s code doesn’t even do that. his display_camera() function returns nothing.

that entire code should be questioned.

VideoCapture can take a string describing a pipeline, as is shown in all the examples that demonstrate gstreamer in opencv.