IP camera: rtsp streaming on openCV 3.0.1

asked 2016-02-20 08:45:37 -0500

I am using openCV to view an IP camera's RTSP stream. I am using Mac OS El Capitan. The stream URL is:


When I open the stream using the vlc player, it works fine. It also works fine on Linux; I tried it on another machine having openCV 2, using following code

cv::VideoCapture capWebcam("rtsp://admin:123456@");

but when I tried it on Mac with openCV 3.0.1, it is returning

WARNING: Couldn't read movie file rtsp://admin:123456@

It seems that openCV is not treating it as URL. Instead, it is treating it as a file. Is there any way to correct this, or am I missing something?

edit retag flag offensive close merge delete