final solution to use onboard camera on gscam and gstreamer1.0

hello

i’m desperately trying to use the onboard camera.
i have been navigating through the forum for the weekend and cant find a solution to use it in a opencv program. It is really difficult to understand what to do with these multiples topics
the classic gst pipeline works …

gst-launch-1.0 nvcamerasrc fpsRange="30.0 30.0" ! 'video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)I420, framerate=(fraction)30/1' ! nvtee ! nvvidconv flip-method=2 ! 'video/x-raw(memory:NVMM), format=(string)I420' ! nvoverlaysink -e

… in my console but i cant make it work in a program even a simple videocapture opencv.
can someone provide me a way to make it useable in a c++ program ?
what version of opencv should i use. i read that opencv4tegra doenst support yet the camera.
i’m sorry if it has already been answered but the forum is all messy about cameras on tx1

edit : i’m trying t get the stream through the gscam node after facing many errors about missing appsink or somethinkg liek that i am stuck to this error

GStreamer: cannot link outelement("nvvconv0") -> sink

if someone could provide me an explanation seeing my pipeline
any helps or info on integration of a gst pipeline in gscam is welcome

thanks a lot
david

Assuming you’re using L4T 24.1, installing OpenCV 3.1.0 may work around this issue. See this thread: [url]https://devtalk.nvidia.com/default/topic/943129/jetson-tx1/highgui-error-v4l-v4l2-while-opening-camera-with-opencv4tegra-l4t-r24/post/4921383/#4921383[/url]