Hi, from 2 months I am trying to “intercept” a Gstreamer pipeline with opencv.
On my regular laptop I am able to to that using something like that:
input = "v4l2src device=/dev/video0 ! video/x-raw, framerate=30/1, width=640, height=480, format=RGB ! videoconvert ! appsink"
output = "appsrc ! videoconvert ! x264enc pass=qual quantizer=20 tune=zerolatency ! rtph264pay ! udpsink host=127.0.0.1 port=65001 sync=false"
cap = cv2.VideoCapture(input)
out = cv2.VideoWriter(output, 0, 30, (640, 480), False)
ret, frame = cap.read()
out.write(frame)
In this way, I can elaborate the frames flowing on the pipeline and, at the same time, continue the streaming.
On my laptop I can do this since I compiled OpenCV with “WITH_V4L=ON” and “WITH_GSTREAMER=ON”.
On my Tx2, if I print(cv2.getBuildInformation())
the output says me: GStreamer: NO; V4L/V4L2: NO/YES
So, is there a way to have a OpenCV4Tegra compiled version with gstreamer interface?
Thanks in advance