Cannot get HebiCam to work with FDT H264 IP Camera
3 views (last 30 days)
Show older comments
I get the following error when I try to associate an H264 stream from an FDT IP Camera. This stream will work in VLC. I've seen references to similar errors but not sure how to debug this.
>> cam1 = HebiCam('rtsp://admin:admin@10.0.0.210:554/11') Warning: The following error was caught while executing 'HebiCam' class destructor: Undefined function 'stop' for input arguments of type 'double'.
Error in HebiCam/delete (line 226) stop(this.cam);
Error in HebiCam (line 90) function this = HebiCam(varargin) > In HebiCam (line 90) Error using HebiCam (line 177) Java exception occurred: java.lang.IllegalArgumentException: Unsupported number of channels: 0
at us.hebi.matlab.streaming.BackgroundFrameGrabber.<init>(BackgroundFrameGrabber.java:63)
Additional information: I now believe that it is strictly a problem with rtsp and HebiCam. I just tried a Foscam IP Camera that uses MJPEG. It works fine from the http interface but fails the same way as the FDT when using rtsp:
>> cam = HebiCam('rtsp://admin:admin@10.0.0.28:88/videoMain') Warning: The following error was caught while executing 'HebiCam' class destructor: Undefined function 'stop' for input arguments of type 'double'.
Error in HebiCam/delete (line 226) stop(this.cam);
Error in HebiCam (line 90) function this = HebiCam(varargin) > In HebiCam (line 90) Error using HebiCam (line 177) Java exception occurred: java.lang.IllegalArgumentException: Unsupported number of channels: 0
at us.hebi.matlab.streaming.BackgroundFrameGrabber.<init>(BackgroundFrameGrabber.java:63)
2 Comments
Astarag Chattopadhyay
on 26 Sep 2020
Hi Ralph,
MATLAB Support Package for IP Cameras now support decoding H.264 RTSP streams from MATLAB version R2020b. I know this is an old post but if your use-case here is still valid, you can give it a try.
Hope it helps!
-Astarag
Walter Roberson
on 26 Sep 2020
My guess with respect to the old problem is that this.cam is [] at that point.
Answers (0)
See Also
Categories
Find more on MATLAB Support Package for IP Cameras 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!