I'm trying connect to my IP Camera as follows:
const string sourceIPcam = "http://192.168.25.112:202/videostream.cgi? user=admin&pwd=admin&resolution=32";
Mat frame;
VideoCapture cap(sourceIPcam);
namedWindow("IP Video Camera", CV_WINDOW_AUTOSIZE);
if (!cap.isOpened())
{
cout << "Could not open the camera " << sourceIPcam << endl;
return -1;
}
When running the above code I get the following error:
[mp3 @ 023f3980] Header missing
[mp3 @ 023f3980] Header missing
[mp3 @ 023f3980] Header missing
[mp3 @ 023f3980] Header missing
warning: Could not find codec parameters (../../modules/highgui/src/cap_ffmpeg_i
mpl.hpp:556)
init done
opengl support available
Any help would be appreciated.