Aviosys IP Kamera 9060 -success!!

Post here to indicate any hardware you have used and which is known to work with ZoneMinder. Not for questions.
Post Reply
bainssu
Posts: 19
Joined: Sat Feb 18, 2006 9:36 am

Aviosys IP Kamera 9060 -success!!

Post by bainssu »

Hi,

I just wanted to let you all know I've had success with the IP Kamera 9060.

This camera works using the follwoing hacked Perl script.


#!/usr/bin/perl


use IO::Socket;

my $iphost="192.168.11.45:80";
my $frame_count=25;
my $image_filename="ip_Kamera_9060";

my $no_print_data;
my $target_path='/cgi-bin/Stream?Video';
my $debug=0;

sub main {
my ($heraddr);

RECONNECT:
$t=0;

print STDERR "connecting to $iphost\n";
do {

$F = IO::Socket::INET->new(
PeerAddr => $iphost,
Proto => "tcp",
Type => SOCK_STREAM,
Timeout => 10) ;

$t++;

die ("Socket fail : $!") if $t > 10;

} while( $F == undef );

print STDERR "Connnected\n";

$qu = "GET $target_path HTTP/1.0\r\n" .
"Accept: */*\r\n" .
"Keep-Alive: 300\r\n" .
"Connection: keep-alive\r\n" .
"Cookie: webcamPWD=RootCookie00000\r\n" .
"User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)\r\n" .
"\r\n";

print $F $qu;
#print $D $qu;


while ($j = read($F, $data, 20) ) {

#print " j = $j\n";
@a = unpack('v10', $data);

if ($debug) {
for $i ( 0 .. $#a ) {
#print $D "$i = $a[$i]\n";
print "$i = $a[$i]\n";
}
}

# make sure er got pre-image header.
unless ($a[0] == 10794 && $a[3] && $a[4] && $a[5]) {
close($F);
print STDERR "bad header image $image_filenam\n";
goto RECONNECT ;
}

#print STDERR "$image_filename : Size=$a[1]\tWidth=$a[3]\tHeight=$a[4],Compression-Level=$a[5]\n";

$j = read($F, $data, $a[1]) or die ("bad read: $!");


open(J, ">$image_filename.JPG");
print J $data;
close(J);

# $image_filename++;

#last unless --$frame_count;
}

}

&main;
exit;
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Good. Thanks for letting us know and posting your script :)
Phil
unclerichy
Posts: 74
Joined: Wed Feb 25, 2004 5:06 pm

Post by unclerichy »

I've just bought the kit version of this (9060AK) and your script works a treat. Cheers!
TazzyTazzy
Posts: 3
Joined: Fri Mar 31, 2006 6:43 pm

Source

Post by TazzyTazzy »

Where can I get these cameras in the US?

What is the Lux rating of this camera? I found the manufucturer's website, but it doesn't have alot of spec.

Google/froogle wasn't much help in finding this in the us. I'm feeling retarded today. :lol:
bainssu
Posts: 19
Joined: Sat Feb 18, 2006 9:36 am

IP 9060AK in the US

Post by bainssu »

Here is a site I found by chance in the US ... a lot more expensive though..

http://www.arucaelectronics.com/shop/ipcamera9060Ak.php
linuxnewbie
Posts: 17
Joined: Mon Aug 28, 2006 1:38 am

Post by linuxnewbie »

Hi
What directory do you need to save this script in?

Thanks
lashzcore
Posts: 2
Joined: Tue May 22, 2007 7:53 am

Post by lashzcore »

hi all.
How to use this script? I'm running ZM-1.22.3
Recently I've bought Aviosys IP Kamera 9060A-SL. Does any1 made it work with topic script?
Porsche
Posts: 3
Joined: Sun May 27, 2007 5:25 pm

Post by Porsche »

Sounds great. This one is just the one I need (cost\quality). thx
felmasper
Posts: 1
Joined: Fri Jul 27, 2007 9:06 pm

Format?

Post by felmasper »

What's the meaning of the "10794" value in the first shortint? Is this a known format or proprietary?

We're trying to make it work here. We need to send user/password, which we have done by sending it in http authentication headers.

Also, it seems that the 10794 is offset by 40 bytes in the stream. Any hints?
zn416
Posts: 2
Joined: Thu Dec 04, 2008 10:55 am

Post by zn416 »

Hello, i have this camera, where does we do this script? Why this script is necesary? Why this cam dont work directly?


:?:
User avatar
MrCottonmouth
Posts: 3
Joined: Thu Apr 27, 2006 5:03 pm

I this the same camera?

Post by MrCottonmouth »

Does this look like the same camera? Hows it going with them? They work ok? http://www.geeks.com/details.asp?invtid ... US&cat=VID[/url]
Post Reply