I am working on a simple motion detection project. I would like my video input to originate from a Sony network camera, thus I am trying to capture an RTSP stream.
I am doing this at the moment:
VideoCapture camera = new VideoCapture("rtsp://admin:admin@172.23.1.9/media/video1");
and I open the camera stream like this:
camera.open("rtsp://admin:admin@172.23.1.9/media/video1");
The problem I am facing is when is try to check whether the stream has indeed opened up.
Using the isOpened() method always returns false.
I have tried to search online for a solution to this but so far I have not managed to find any.
Does anyone have any idea as to how I can overcome this issue?