I am trying to access my ip camera fom opencv without success.
VideoCapture capture("http://IP/MJPEG.CGI?.mjpeg&user=username&password=mypassword")
when trying using VLC it's works :
http://IP/MJPEG.CGI?.mjpeg
then VLC ask for username&password and it's fine.
Thanks for helping
Done Successfully using the following: