
Std::cout << "Capture read error" << std::endl Unsigned int height = cap.get(cv::CAP_PROP_FRAME_HEIGHT) Unsigned int width = cap.get(cv::CAP_PROP_FRAME_WIDTH) Std::cout << cv::getBuildInformation() << std::endl Ĭv::VideoCapture cap("udpsrc uri=udp://224.1.1.1:5000 auto-multicast=true ! application/x-rtp, media=video, encoding-name=H264 ! rtpjitterbuffer latency=200 ! rtph264depay ! decodebin ! videoconvert ! video/x-raw, format=BGR ! appsink", cv::CAP_GSTREAMER) Then made a new console project, selected Release/圆4, added opencv include path, lib path and added this code: #include Added opencv install bin directory to PATH. On Windows host, I have installed gstreamer and added bin directory to PATH.īuilt opencv-4.5.1 with Visual Studio 2019 Community, enabling gstreamer support as shown in the link you’ve provided above and installed. Gst-launch-1.0 nvarguscamerasrc ! nvvidconv ! omxh264enc bitrate=2000000 insert-vui=1 ! h264parse ! rtph264pay config-interval=1 ! udpsink host=224.1.1.1 port=5000 auto-multicast=true

in a second terminal, launch a CSI camera server to H264 with your 2Mb/s bitrate to RTP/UDP with:.You may zoom in this terminal from menu View/ZoomIn for adapting to your camera. I can get about 350 ms latency with sync and about 150ms latency wiithout sync. Hi given this a try and found it was working as expected.
