Ask Your Question

Revision history [back]

Opencv Gstreamer Pipeline VideoCapture doesn't work on Raspberry Pi 4


I'm trying to straem Gstreamer video (Gazebo Simulation) to Raspberry Pi 4 via UDP stream using gstreamer.

Gazebo Sim Camera --- (port 5600) ----> Raspberry Pi 4

Capture video by using VideoCapture of Opencv Function. And add some features of OpenCV.

The problem is that I can easily handle video with:

VideoCapture video("udpsrc port=5600 ! application/x-rtp,payload=96,encoding-name=H264 !"
                               "rtpjitterbuffer mode=1 ! rtph264depay ! h264parse ! decodebin ! videoconvert ! appsink emit-signals=true sync=false max-buffers=1 drop=true", CAP_GSTREAMER);

But this pipeline of gstreamer doesn't work on Raspberry pi 4.

Furthermore Raspberry Pi 4 can open and receive video with this code: C++ Opencv Gstreamer Pipeline

But it's hard to face with this code to manipulate it.

Note: I tried this code another Ubuntu PC and it works well.