Hi, i am trying to get rtsp stream with OpenCV and cant do it.
I am using the stream like this: rtsp://admin:123456@xx.xx.x.xxx:7070 and VLC player open up and play the life video stream perfect.
And i am trying to show the stream in OpenCV window, but the frame is empty everytime:
cv::VideoCapture source("rtsp://admin:123456@xx.xx.x.xxx:7070");
while (cv::waitKey(1) < 1)
{
source >> frame;
if (frame.empty())
{
cv::waitKey();
break;
}
cv::namedWindow("output");
cv::imshow("output", frame);
}
My camera: ACTI d64, here is a web site: D64 | ACTi Corporation
Also i try to get an http mjpeg stream, but result is the same (frame is empty), i can run this script in Firefox browser and can see a life videostream: http://xx.xx.x.xxx/cgi-bin/encoder?USER=Admin&PWD=123456&GET_STREAM
Please help me to get it work with OpenCV VideoCapture class