max/msp/jitter and IP Cameras ?

Aug 2, 2008 at 1:34pm

max/msp/jitter and IP Cameras ?

Hi,

is there a way to connect IP Cameras to max/msp/jitter ?

Thanks for your help
Paul

#39102
Aug 2, 2008 at 1:57pm

This depends on the IP-camera of course, if it has an MPEG4 stream (not a JPEG stream) then is quite easy usually.

Otherwise you have to retrieve static frames from the camera. Framerate is very low then.

It is possible to grab the image from jitter itself but your whole patch will wait for the camera to return an image. I did it with the help of some JAVA-code I found on this forum and modifying that. I can look up the code if you want to.

#137226
Aug 2, 2008 at 4:24pm

Sylvain, in fact I’d like to use 4 or 6 IP Cameras and use max/msp/jitter to switch live from them and finally export the resulting video to a videoprojector.

If it’s easy with MPEG4 IP cams : I’ll take such cameras !

But (I am a newbie) how do you proceed to :
- grab multiple MPEG4 IP cameras streams ?
- open/close the video streams ?
I am not sure it could be possible with some jit.qt.grab, as I don’t think that IP cameras are QuickTime-compatible…

Thanks for your help !
PAul

#137227
Aug 2, 2008 at 5:12pm

I had a setup with 5 cameras that were hundred metres apart

An mpeg4 stream can be ‘captured’ with a jit.qt.movie object. For multiple movies you use multiple objects. Just do a ‘read http://url-here‘ message to it and it should show the stream.

I wouldn’t open and close them during runtime, because it needs some time to sync/buffer.

Just switch between the source with a switch or alike, they are all running and with the switch you choose which one you want to view.

#137228
Aug 2, 2008 at 6:02pm

Great !

- Is it not too CPU intensive to have 4 or even 6 IP cameras always opened ? (I have a 2.4GHz Intel Core Duo MacBook Pro)

> I can look up the code if you want to.
Waoh… of course yes ! That would help me a lot…
;-)

- What kind of IP cameras do you advise ?
(a good quality and reasonably cheap wireless Pan/Tilt/Zoom IP Camera would be great !)

- I’ll need one WiFi routeur like Linksys WRT54G to receive wireless IP cameras streams, no ? (or one per camera ?)

http://www.linksys.com/servlet/Satellite?c=L_Product_C2&childpagename=US%2FLayout&cid=1149562300349&pagename=Linksys%2FCommon%2FVisitorWrapper

Thank you for your help and advises !
PAul

#137229
Aug 3, 2008 at 8:38am

* It is a bit intensive yes, but if you are planning on switching between streams it is necessary i guess.

* I used a camera from which i had to grab the images one by one resulting in very low framerate. I would suggest looking around and finding one with a MPEG4-stream. Note: the tilting and panning might not directly from Max/MSP. But if it has a webinterface you can probably load the URLs which trigger it normally.

* You need 1 router which creates a (wireless) network to which all cameras and your computer connect.

*update*
Maybe something like this: http://panasonic.co.jp/pcc/products/en/netwkcam/lineup/bl-c111/index.html although i think it costs money..

#137230
Aug 3, 2008 at 9:04am

Here is a simple example of the static network frame grabber. It is a Max5 patch that opens in presentation mode and automatically starts loading a network camera. I put two random urls in there, try them. The framerate of course is better on a local network, but still has some troubles.

I hope this helps.

The java component was taken from this forum somewhere and i made some small improvements to it. For example seeing of it was busy.

#137231
Aug 3, 2008 at 10:31pm

> * It is a bit intensive yes, but if you are planning on switching between streams it is necessary i guess.

Not sure (?). I have been told that with analog cameras you could use DFG13941e digitizers with ASC drivers and 6 jit.qt.grabs and open/close them as needed. There’s just a delay : the switch takes 1/25 second on Pal.

In an another post Dan said :
“If the cameras send an rtsp stream, you can receive them with jit.qt.movie.”

Thanks a lot for your attachment: network_camera.zip
What are the framerate problems ?

#137232
Aug 4, 2008 at 5:42am

> What are the framerate problems ?

The problem lies that the cameras i used didn’t provide a stream, so i had to grab an static image over the network, you can imagine that that isn’t as fast as a stream. Usually these static images don’t refresh as often as well..

#137233
Aug 6, 2008 at 7:47pm

Sylvain,

what kind of modification to your code do I have to do to switch from different 25 fps IP cameras ?
(sorry as you see I am a newbie…)

#137234
Aug 9, 2008 at 12:59pm

Oops… any help ?

#137235
Oct 19, 2010 at 1:37pm

Hi Paul,

I wonder if you found a solution for working with live multiple video feeds. I’m interested in working with analog industrial type cameras and working with 5 feeds in real time. I was looking into the DFG13941e digitizers and a spectra 8 video capture card. Some advice would be great.

Thanks!
E

#137236
Dec 2, 2012 at 2:14am

I also could use some advice on this topic!

Thanks

#137237
May 17, 2013 at 6:29pm

Having trouble with this very issue (though the thread is old..), and can really use some guidance..

Using one IP camera (Messoa0), MPEG4, and successfully reading into jit.qt.movie
with the “read rtsp://<URL:port>/mpeg4“.     Frame rate set to 15fps and resolution 1280×960.

Problem is:   Its pretty unreliable (stops and starts, delays), and though I am not really doing that much to the stream (just a little jit.rotate and one matrix doing source/destination remapping), there seems to be quite a bit of CPU usage from the IP camera coming in.

Questions:   Are there additional messages I can send with rtsp messages to jit.qt.movie that will make it more efficient or work better ?

 

 

#249729
May 17, 2013 at 6:31pm

oops.   The message I am sending is really “read rtsp://<URL:port>/mpeg4

 

#249730
Aug 20, 2013 at 8:05am

does anybody know any sites that have a list of url’s for public web streaming cameras?
thanks in advance!

#259425
Aug 21, 2013 at 12:01am

Check vade’s Security Player tool and you will find a camera there still showing live pics.

http://abstrakt.vade.info/?p=80

Did you find a way to connect to ip cameras, UMMA08?

#259489
Aug 22, 2013 at 7:16am

no not yet, i was really looking for a collection of ip cameras first, with their address:port id’s so that i could experiment with a few things. Have yet to find a list ;-(

#259632
Aug 23, 2013 at 10:00am
#259703
Sep 19, 2013 at 2:27pm

hey,
i have some problems with getting a stream into max.
i can view the picture of the camera in the browser with the url: “http://10.0.0.3/video.cgi&#8221;.
in max i sent a “read http://10.0.0.3/video.cgi” message to an jit.qt.movie object and then i got a window to enter the username and the password for the camera as it is in the browser but nothing happened. today i called the support of the camera and they said that the camera has no streaming function.
and has anybody experience with setting up 8 cameras? when i’m opening all the videos in 8 tabs in safari everything is getting pretty slow.
mabybe someone can help me with this.
thanks a lot!

#265761

You must be logged in to reply to this topic.