Unable to acquire the live (streaming) video h264 over rtsp of my ip camera using the “IP camera acquisition” package on Matlab2020b

90 vues (au cours des 30 derniers jours)
I am unable to acquire the live (streaming) video of my ip camera using the “IP camera acquisition” package.
Premise:
(1) Operating System: MacOS Big Sur (11.0.1)
(2) Matlab version: 2020b
(3) Installed package: IP camera acquisition packages
(4) Camera type: Dahua DH-IPC-HFW2431TP-ZAS
I would like to capture live video from my camera using the rtsp link with H264 codec. I did a lot of testing, but never managed to capture the video stream. The rtsp links I used are (7):
rtsp://admin:admin1993@192.168.0.108:554/cam/realmonitor?channel=1&subtype=0
rtsp: //192.168.0.108: 554/live
Both of these links placed on any browser open VLC correctly and the video stream is regularly captured.
Camera data:
IP address: 192.168.0.108
admin: admin
password: admin1993
RTSP port: 554
Resolution: 1080p (I also tried 720p and other formats)
Bit rate: 4096 kbit / s (I did different tests with different rate)
Below I have reported some of the tests carried out:
cam = ipcam('rtsp://admin:admin1993@192.168.0.108:554/cam/realmonitor?channel=1&subtype=0')
cam = ipcam('rtsp://admin:admin1993@192.168.0.108:554/cam/realmonitor?channel=1&subtype=0','admin','admin1993')
cam = ipcam('rtsp://192.168.0.108:554/live','admin','admin1993')
cam = ipcam('rtsp://192.168.0.108:554/live')
I also tried to do some tests by changing the 'Timeout' time but to no avail:
cam = ipcam('rtsp://192.168.0.108:554/live','admin','admin1993','Timeout',30)
The error generated is always the same:
Cannot connect to the IP Camera Stream URL. Make sure the URL is correct and authentication is provided if needed.
I have read the PDF guide on the MATLAB website several times and I believe I have made all the correct configurations: https://it.mathworks.com/help/pdf_doc/supportpkg/ipcamera/ipcamera_ug.pdf
Can anyone help me to solve this problem?
I thought it was a codec problem or camera settings everything seems fine. I also leave attached a photo of the characteristics of the video stream.
Many thanks in advance
  2 commentaires
Walter Roberson
Walter Roberson le 9 Déc 2020
As an experiment, try opening Network Utility https://osxdaily.com/2013/10/31/use-network-utility-mac-os-x/ and go to the portscan section, and ask for a port scan for 192.168.0.108 to see whether any ports at that IP address can be reached (and which ones)
Lorenzo Giannini
Lorenzo Giannini le 10 Déc 2020
Thank you so much for the answer @Walter. The Network Utily Tool is no longer available for MacOS Big Sur. But I try this experiment with nmap command inside the terminal (Homebrew). The result is as expected, the ports communicate correctly.

Connectez-vous pour commenter.

Réponse acceptée

Lorenzo Giannini
Lorenzo Giannini le 12 Fév 2021
Modifié(e) : Lorenzo Giannini le 12 Fév 2021
After contacting support I was able to figure out what the problem was:
"Unfortunately, MATLAB do not support cameras having only digest authentication yet and currently there is no workaround available for this limitation. We sincerely apologize for the inconvenience this brought to you.
Our developers have plans to support this feature in one of the future releases. I have added you into our notify list, so you will get updates once this feature is published in one of the future releases."
Joey Wang from support
  1 commentaire
Yafei Wang
Yafei Wang le 26 Mar 2021
Hi, Lorenzo Giannini. I have also encountered this problem listed above, and tried every solution like you but failed. Fortunately, this sentence of "Unfortunately, MATLAB do not support cameras having only digest authentication yet " enlightens me. Such being the case, why not to change the RTSP Authentication of IP cameras to basic authentication. Take HIKVISION IP camera (DS-2CD4024F or DS-2CD3T25) for example, in the camera's web interface, we can set the RTSP Authentication to digest/basic, and ipcam() can work well. Thank you for your information posted above.

Connectez-vous pour commenter.

Plus de réponses (2)

Victor Zaccardo
Victor Zaccardo le 11 Fév 2021
Were you able to solve this issue?
  1 commentaire
Lorenzo Giannini
Lorenzo Giannini le 12 Fév 2021
The problem is that, the cam requires “digest” authentication scheme, but the ipcam library (Matlab) can only provide “basic” authentication scheme.
Hope can help you

Connectez-vous pour commenter.


MathWorks MATLAB Hardware Team
The MATLAB Support Package for IP Cameras now supports "digest authentication" from R2022b release.
  2 commentaires
rajasekar
rajasekar le 31 Oct 2023
This issue still exists in R2023a release; the bug is not yet fixed.
@MathWorks MATLAB Hardware Team, Can you suggest why the issue still exists in 23a release though you have mentioned that its fixed in R2022b release
Vineeth Nair
Vineeth Nair le 31 Oct 2023
Hi Rajasekar,
The issue that you are facing could be a different one, as digest authentication is supported in all releases from 22b. Please ensure you have installed the latest updates for 23a release and for the IP camera support package. You can follow the steps here for installing the updates.
If you are still facing an issue, please reach out to us at MathWorks Technical Support: https://www.mathworks.com/support/contact_us.html , and we can debug this issue further.
Thanks

Connectez-vous pour commenter.

Catégories

En savoir plus sur MATLAB Support Package for IP Cameras dans Help Center et File Exchange

Produits


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by