Have no problem to have live and i found workaround to select the control protocol directly in sql database
(zm bug: you can't select control protocol with ffmpeg source for cam and this cam is only H264 chipset hi3510)
For controlling it you need to send http request like this, with login/password:
(for turn on left slowly)
Code: Select all
http://admin:password@192.168.0.97/cgi-bin/hi3510/ptzctrl.cgi?-step=1&-act=left&-speed=15
ZM seem to be not use correctly the Basic HTTP Authentification and with this cam it's not possible to send login/password in cgi parameters
this perl script simplified for testing does'nt work and return an "Can't connect - refused"
Code: Select all
...
sub sendCmd
{
my $self = shift;
my $cmd = shift;
my $result = undef;
printMsg( $cmd, "Tx" );
my $req = HTTP::Request->new( GET=>"http://admin:password@192.168.0.97/cgi-bin/hi3510/ptzctrl.cgi?-step=1&-act=left&-speed=15" );
my $res = $self->{ua}->request($req);
if ( $res->is_success )
{
$result = !undef;
}
else
{
Error( "Error check failed:'".$res->status_line()."'" );
}
return( $result );
}
...
with this error:
Code: Select all
2013-06-05 16:20:17.093540 zmcontrol 10125 FAT Can't connect: Connexion refusée zmcontrol.pl
2013-06-05 16:20:07.092990 zmcontrol 10129 INF Control server 4/foscamFI8620 starting at 13/06/05 16:20:07 zmcontrol.pl
2013-06-05 16:20:07.090750 zmcontrol 10125 INF Starting control server 4/foscamFI8620 zmcontrol.pl
2013-06-05 16:20:04.373330 zmcontrol 10106 FAT Can't connect: Connexion refusée zmcontrol.pl
2013-06-05 16:19:54.372430 zmcontrol 10110 INF Control server 4/foscamFI8620 starting at 13/06/05 16:19:54 zmcontrol.pl
2013-06-05 16:19:54.371300 zmcontrol 10106 INF Starting control server 4/foscamFI8620 zmcontrol.pl