How can MATLAB connect to a camera via the network in order to view its stream?(not a simple USB plugin webcam on local machine)

Is there a way that MATLAB can "recognize" and connect to a camera(not plugged in directly to my local machine) that's on the same network as my local machine and view that particular camera's stream? Any response would be very helpful as I have been stuck on this for a few days.

 Accepted Answer

The Image Acquisition Toolbox should be able to connect to networked cameras, once it is told what the address of the camera is.
If you were hoping that the camera would be located automatically, then that might not be practical; it would depend in part on whether the camera sends out broadcast packets or multicast packets announcing its presence.

2 Comments

Thank you for a quick response.
I was thinking that I could give MATLAB address of the camera also, however my next dilemma is how do I tell it where it is. I haven't found any specific command or place to do that within MATLAB. Would you happen to know? If so, I believe that would solve the issue I am having.
Thanks :)
http://www.mathworks.com/company/events/webinars/wbnr51282.html?id=51282&p1=869883352&p2=869883370

Sign in to comment.

More Answers (2)

Does the camera driver have a Direct Show interface and does it work with AMCAP?

5 Comments

by direct show interface do you mean can just type in IP and view it? If so, not exactly.
The camera we are using is a AW-HE50S HD Integrated Camera. It shoots out raw video to our IP-900 Encoder, which then passes the feed through an ethernet cable out into our network.
The camera can be controlled through the network by typing in IP address of the camera into a browser. The video feed can be viewed through the network stream within VLC media player. This is how it is all setup...I am confident that there is a way to view the feed through MATLAB also, but I just havent been able to figure it out yet.
Ah, it would be the IP-900 you would provide the address of. It appears it streams H.264 (which is used by mp4). I am not finding reference to a direct method of decoding that; I am finding reference to installing codecs for it. Unfortunately I do not have the experience to know how to put the pieces together.
alright. I greatly appreciate the assistance. Our group has pretty much everything set up and ready to go except this little, but important step.As soon as we are able to view the video stream through MATLAB, I will add our solution to the problem here for possible future reference :)
It appears that R2011b and later can read and write MPEG-4 files, but I do not yet find any indication of direct support for streaming such files. The mechanism might still be to have an MS Windows program that decodes the stream and read the frames from that.
Do you know how to connect to a network camera using Instrument Control Toolbox? Thanks!! For example, the ip addresss of my camera is 192.168.3.253,and my PC connects to the camera with a simple net cable( UTP=UNSHIELDED TWISTED PAIR )

Sign in to comment.

I too want to read video stream from Media server on my local LAN.How can i read the stream giving IP address in MATLAB.

2 Comments

I haven't had any luck with this issue. We just decided to not use MATLAB at all and are using other means.
What platform u used to view media server stream over LAN?

Sign in to comment.

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!