D-Link 942L connection problems

asked 2014-02-26 04:32:58 -0600

updated 2014-02-26 05:08:00 -0600

berak gravatar image

Dear all, I installed OpenCV 2.4.8 (mac OS mavericks) and I compile a small C++ program taken by a tutorial to connect my D-Link 942L IP camera. I turned off any PWD/USER.

I'm trying any http request embedded in the code (as below): int main(int, char**) { cv::VideoCapture vcap; cv::Mat image;

const std::string videoStreamAddress = "http://10.187.250.158:80/video.cgi"; // and many others...

//open the video stream and make sure it's opened
if(!vcap.open(videoStreamAddress)) {
    std::cout << "Error opening video stream or file" << std::endl;
    return -1;
}

but the answer is always the same: "Couldn't read movie file ....". :-(

Can anybody help me, please?

Just another question: does OpenCV 2.4.8 support FFMPEG or should I install the support?

Thanks.

Cristiano

edit retag flag offensive close merge delete