IP camera connection Error
7 次查看(过去 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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/231399/image.png)
I don't know what is the problem, could you help me?
0 个评论
回答(3 个)
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 个评论
Lorenzo Giannini
2020-12-9
Do you solve your problem? Can you help me? https://it.mathworks.com/matlabcentral/answers/673723-ipcam-command-with-rtsp
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).
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/577677/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/577682/image.png)
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 个评论
另请参阅
类别
在 Help Center 和 File 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!