Difference between revisions of "ICamviewRelay"

From ZoneMinder Wiki
Jump to navigationJump to search
 
Line 13: Line 13:
javac -cp . ICamviewRelay.java
javac -cp . ICamviewRelay.java


<attach file here>
[http://www.neilraymond.plus.com/ICamviewRelay.java ICamviewRelay.java]

Revision as of 03:11, 29 September 2006

This is a small application that can be used to allow an ICamview to be used with Zoneminder.

There are 2 methods of getting images out of this. You can do jpeg grabs by sending a url, but it redirects you to a login page the first time you try to access the image and it's not any kind of standard http login method, so I gave up on that.

To get streaming images it uses udp, and a little bit of playing about with ethereal let me work out the protocol well enough to knock up a relay app that gets jpegs using the udp method and sends them out as an mjpeg stream. You can then connect to the relay as if it were a network camera. Unfortunately (depending on your point of view) it's written in java as that's what I do for a living and I haven't had time to relearn C and all the sockets/threading stuff. If anyone wants to port it to C then feel free, but please post it back here so I can use it!

usage is:

java -cp . ICamviewRelay <icamview ip addr> <icamview port> <fps> <local server port> <icamview user> <icamview pass>

to compile it:

javac -cp . ICamviewRelay.java

ICamviewRelay.java