MATLAB Answers

IP camera connection Error

조회 수: 26(최근 30일)
Hi,
I have installed MATLAB Support Package for IP Cameras and I am trying to connect a IP camera model FS-VCBOZ-4M (https://www.fs.com/file/datasheet/fs-vcboz-4m-datasheet.pdf) but I cannot connect, I always obtain the next problem:
>> camera = ipcam('http://IP:80', 'user', 'pass', 'timeout', 50);
Cannot connect to the IP Camera Stream URL. Make sure the URL is correct and authentication is provided if needed.
>> camera = ipcam('rtsp://IP:554', 'user', 'pass', 'timeout', 300);
Cannot connect to the IP Camera Stream URL. Make sure the URL is correct and authentication is provided if needed.
I have follow the instruction of https://es.mathworks.com/help/supportpkg/ipcamera/ug/connect-to-ip-cameras.html, and de connection with VLC media player works fine.
Captura.PNG
I don't know what is the problem, could you help me?

  댓글 수: 0

로그인 to comment.

답변 수 (2)

Urmila Rajpurohith
Urmila Rajpurohith 12 Nov 2019
The first input argument to “ipcam” function is URL.
The URL is made up of the IP address of the camera, followed by a video file designation, such as video.mjpeg or mjpg.cgi.
So, create a “ipcam”object as follows
camera = ipcam('http://IP:80/video.mjpeg', 'user', 'pass', 'timeout', 50);

  댓글 수: 2

Mariano Gonzalez de Soto
I also have proved it, but the part video.mjpeg or mjpg.cgi depends of the camera, in this case it works in the VLC without this part (http://user:pass@IP:80 works in VLC media player). But in matlab it does not work and, if i put it, I have the same result:
>> camera = ipcam('rtsp://IP:554/mjpg.cgi', 'user', 'pass');
Cannot connect to the IP Camera Stream URL. Make sure the URL is correct
and authentication is provided if needed.
>> camera = ipcam('rtsp://IP:554/video.mjpeg', 'user', 'pass');
Cannot connect to the IP Camera Stream URL. Make sure the URL is
correct and authentication is provided if needed.
>> camera = ipcam('http://IP:80/video.mjpeg', 'user', 'pass');
Cannot connect to the IP Camera Stream URL. Make sure the URL is
correct and authentication is provided if needed.
>> camera = ipcam('http://IP:80/mjpg.cgi', 'user', 'pass');
Cannot connect to the IP Camera Stream URL. Make sure the URL is
correct and authentication is provided if needed.
I think that it is relacionated with the camera model (IP camera model FS-VCBOZ-4M), maybe same especific URL, but i do not find this data
Urmila Rajpurohith
Urmila Rajpurohith 20 Nov 2019
can you provide the exact camera details which you used?

로그인 to comment.


Mariano Gonzalez de Soto
The IP camera model is FS-VCBOZ-4M, more info in https://img-en.fs.com/file/datasheet/fs-vcboz-4m-datasheet.pdf

  댓글 수: 0

로그인 to comment.

이 질문에 답변하려면 로그인을(를) 수행하십시오.


Translated by