Error using camera (line 1) Cannot connect to the IP Camera Stream URL. Make sure the URL is correct and authentication is provided if needed.

cam = ipcam('http://192.168.11.14/mjpeg','admin','at2rDt07')

2 Comments

try to use with port number :
cam = ipcam('http://ip address:port number/video','username','pass','Timeout',20)
it did work for me
I facing same problem ...but when i reduce the video resolution...it work correctly

Sign in to comment.

Answers (5)

I have encountered the same situation as you, which is a headache for me. Have you solved this problem?
I am facing a similar problem. It will be really helpful if someone can solve this issue!
I am as well. I am using IP cam with iPhone.
url: http://192.168.1.134:8020/videoView.mjpeg
Cannot connect to the IP Camera Stream URL. Make sure the URL is correct and authentication is provided if needed.

4 Comments

What happens if you put that address into a web browser? In particular, does it say that it is unreachable?
On web viewer, it works but when we put the same IP address to Matlab, it shows that message.
try to use with port number :
cam = ipcam('http://ip address:port number/video','username','pass','Timeout',20)
it did work for me

Sign in to comment.

6 month ago, my code was working well but i am trying it again and it's failing.
Cannot connect to the IP Camera Stream URL. Make sure the URL is correct and authentication is provided if needed.
Hello,
Is there anybody getting the solution for this problem? I am facing the same thing but seems there isn't any source discussing about this.
Thank you,

Categories

Find more on MATLAB Support Package for IP Cameras in Help Center and File Exchange

Tags

Asked:

on 18 Nov 2017

Commented:

on 21 Apr 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!