Why I can not connect to IP camera with ipcam
Show older comments
I can connect to my IP camera (Sony SRG 300SE) through VLC media player just with the URL: rtsp://192.168.100.8/video2 but not with Matlab ipcam object.
I tried:
>> cam=ipcam('rtsp://192.168.100.8/video2')
Error: Cannot connect to the IP Camera Stream URL. Make sure the URL is correct and authentication is provided
if needed.
>> cam=ipcam('rtsp://192.168.100.8/video2.mjpeg')
Error: Unable to connect to the IP Camera Stream URL due to incorrect Username or Password.
>> cam=ipcam('rtsp://192.168.100.8/video2.mjpeg','admin','admin')
Error: Unable to connect to the IP Camera Stream URL due to incorrect Username or Password.
There are some curious aspects:
-VLC does not ask for password
-URL for VLC works without the extension ".mjpeg" and does not work with it
- Matlab asks for password when i add the extension but the password does not work
Does any body know what could be happening here?
Accepted Answer
More Answers (1)
MathWorks MATLAB Hardware Team
on 8 Mar 2023
1 vote
As mentioned in the above answer, this connection issue was a known bug. It is now fixed in the latest MATLAB update. Update your MATLAB and IP camera support package to the latest versions to get the fix.
Categories
Find more on Image Acquisition in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!