Doubt with OpenCV VideoCapture and gstreamer pipeline

asked 2017-09-07 05:39:56 -0600

simozz gravatar image

Hello,

To make VideoCapture be able to open a gstreamer pipeline as

capture.open("v4l2src device=/dev/video0 ! videoconvert ! video/x-raw,width=544,height=288,framerate=10/1 ! appsink");

is it required to compile OpenCV with WITH_GSTREAMER=ON macro defined ? I am asking it because the pipeline works with gst-launch, but not with my opencv program.

edit retag flag offensive close merge delete