OpenCV doesn't throw exception even you build source code without GStreamer support. The problem is about using GStreamer library as a plugin of OpenCV. ) can easily handle video but also it's hard to use with opencv. Also following lines can run upcoming gstream video: gst-launch-1.0 udpsrc port=5600 caps='application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264' ! rtph264depay ! h264parse ! avdec_h264 ! autovideosink fps-update-interval=1000 sync=falseįurthermore specific code stack (e.g. This works on loopback test and another Ubuntu 18.04 PC but RPi 4 (Buster OS) couldn't run it. However, video.isOpened() return false and I couldn't be able to open with this code. "rtpjitterbuffer mode=1 ! rtph264depay ! h264parse ! decodebin ! videoconvert ! appsink emit-signals=true sync=false max-buffers=2 drop=true", cv::CAP_GSTREAMER) Ĭout << "Could not read video file" << endl I'm trying to open UDP stream video in Raspberry Pi using this pipeline: VideoCapture video("udpsrc port=5600 ! application/x-rtp,payload=96,encoding-name=H264 !"
0 Comments
Leave a Reply. |