IP camera connection Error

조회 수: 33 (최근 30일)
Mariano Gonzalez de Soto
Mariano Gonzalez de Soto 2019년 7월 26일
답변: MarkRobot Mark 2024년 3월 27일 3:23
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?

답변 (5개)

Urmila Rajpurohith
Urmila Rajpurohith 2019년 11월 12일
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);
  댓글 수: 4
Mariano Gonzalez de Soto
Mariano Gonzalez de Soto 2020년 3월 4일
The IP camera model is FS-VCBOZ-4M, more info in https://img-en.fs.com/file/datasheet/fs-vcboz-4m-datasheet.pdf
Lorenzo Giannini
Lorenzo Giannini 2020년 12월 9일

댓글을 달려면 로그인하십시오.


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

Konstantin Beckmann
Konstantin Beckmann 2021년 4월 8일
I have similar problem and still no solution. Can you help me?
I tried to read in two different IP Cams (Ubiquiti UniFi UVC G3 and a virtual camera via OBS Studio) independently.
It works with the VLC player, but not with Matlab. Unfortunately the matlab help could not help me either. I get the error: Cannot connect to the IP Camera Stream URL. Make sure the URL is correct and authentication is provided if needed.
I entered the URL from the interface (stand alone mode) of the camera or from the OBS-Studio into VLC and in VLC the video is displayed. I also checked the codec information from the VLC. Compared to the matlab help I have 2 streams, but the video stream is H264 (see pictures).
Code for connecting to virtual camera:
cam=ipcam('rtsp://localhost:554/live')
Code for connecting to UniFi camera:
cam=ipcam('rtsp://xxx.xxx.xxx.xxx:xxx/s0','user','pw'
What am I doing wrong?
Thanks for your help!
  댓글 수: 1
Roberto
Roberto 2022년 7월 6일
@MathWorks Support Team Do you have a solution for this? I have the same problem.

댓글을 달려면 로그인하십시오.


MarkRobot Mark
MarkRobot Mark 2024년 3월 20일 8:57
편집: MarkRobot Mark 2024년 3월 20일 8:58
you can try to use python programming language to solve this problem.
Promotion and function introduction of equipment
BaudcomBaudcom
I will be gald.
Product Product

MarkRobot Mark
MarkRobot Mark 2024년 3월 27일 3:23
You can get some help from here.
You can also get some useful info here.

카테고리

Help CenterFile Exchange에서 MATLAB Support Package for IP Cameras에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by