Gstreamer pipeline in OpenCV multiple camera

Hallo guys,
I have OpenCV installed gstreamer for semi-Autonomous capability in underwater robot using Bluerov

I have a working on Gstreamer pipeline from my raspberry pi 3b(camera logitech c270 and raspicam) to Ubuntu 18.04. (Ground Station)

This is my Gstreamer pipeline sender script line from raspberry pi for logitech c270:

gst-launch-1.0 -v v4l2src device=/dev/video0 ! "image/jpeg,width=960, height=720,framerate=30/1" ! rtpjpegpay ! udpsink clients=192.168.2.1:5001

This is my Gstreamer pipeline receiver script line in ubuntu for logitech c270:

gst-launch-1.0 -e -v udpsrc port=5001 ! application/x-rtp, encoding-name=JPEG,payload=26 ! rtpjpegdepay ! jpegdec !  autovideosink 

This is my Gstreamer pipeline sender script line from raspberry pi for raspicam:

raspivid -n -t 0 -rot 180 -w 960 -h 720 -fps 30 -b 6000000 -o - | gst-launch-1.0 -e -vvvv fdsrc ! h264parse ! rtph264pay pt=96 config-interval=5 ! udpsink clients=192.168.2.1:5000

This is my Gstreamer pipeline receiver script line in ubuntu for raspicam:

gst-launch-1.0 -e -v udpsrc port=5000 !  application/x-rtp, payload=96 ! rtpjitterbuffer ! rtph264depay ! avdec_h264 ! fpsdisplaysink sync=false text-overlay=false 

Can anyone help me how to use this videostream in Python OpenCV for the receiver side only?
Thanks :slight_smile:

1 Like

Hi Ryan,

Check our OpenCV Examples, it’ll probably help you.

Okay thank you , it helps so much :slight_smile: