Connecting Sony IP camera

3 views (last 30 days)
Erik S.
Erik S. on 10 Jul 2012
I am trying to access a Live Video Stream from an IP-Camera using Matlab 7.12.0(R2011a), my IP-Camera is a Sony Ipela SNC-CH 210.
In the following post it is mentioned that MPEG-4 live streaming is unsupported. http://www.mathworks.com/matlabcentral/answers/36807-connect-ip-camera-to-matlab
My questions are:
1) Is it possible to connect my network camera to Matlab?
2) Is the Instrument control toolbox the best way to do it if it is possible?
3) Which live streaming formats are supported?
Thank you
Erik

Answers (1)

Walter Roberson
Walter Roberson on 10 Jul 2012
Thank you for researching past postings!
There are some unstated parts in the documentation for that camera, but based upon what is said and my experience with other devices, I suspect that it is possible to connect to the camera via HTTP and get JPEG images out of it. Probably individual images can be fetched. Possibly also through what might be turned "streaming HTTP" (I do not recall the correct term.) That is an HTTP trick in which each JPEG image sent is indicated as not being the final item in the HTML page; by continually saying there is at least one more item to be sent afterwards, one can transfer a series of images. I do not know if urlread() is able to handle those kinds of image series.
That model of camera supports MPEG4 and H.264 (which is the major encoding format used by MPEG4), but MATLAB does not support decoding MPEG4 or H.264 streams (only files.) There are some programs around which can decode those streams and which MATLAB can talk to in order to receive individual images, but nothing direct.
It was not obvious to me that it would be possible to control that camera much via HTTP. I can tell that there is some way to do it via IP but the method was not described.
I did not search in depth; possibly there is a reference manual for the camera in addition to the setup manual that is what I found.

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!