Ask Your Question

ameerhamzakhan's profile - activity

2016-02-26 14:52:06 -0500 received badge  Supporter (source)
2016-02-20 09:31:00 -0500 asked a question IP camera: rtsp streaming on openCV 3.0.1

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

rtsp://admin:123456@192.168.0.101:554/live/ch1

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@192.168.0.101:554/live/ch1");

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

WARNING: Couldn't read movie file rtsp://admin:123456@192.168.0.101:554/live/ch1

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?