Hi, I'm trying to display a multicast UDP video stream using OpenCV (4.2.0) with Java. I can grab the webcam and any RTSP video;
VideoCapture videoDevice = new VideoCapture();
videoDevice.open(0);
or
videoDevice.open("rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov");
but I couldn't join a udp stream. For testing, in the server side, I sent the webcam via FFmpeg;
ffmpeg.exe -f dshow -i video="USB2.0 HD UVC WebCam" -r 30 -f rawvideo udp://@239.0.1.100:4378
and I could display the video with ffplay;
ffplay.exe -f rawvideo -i udp://@239.0.1.100:4378
but I could not join the stream with;
videoDevice.open("udp://@239.0.1.100:4378");
and I also tried videoDevice.grab()
but nothings changed. What is wrong? Is there any other settings?
Osman