Network camera set up.

Support and queries relating to all previous versions of ZoneMinder
ubell
Posts: 53
Joined: Sun Jul 24, 2005 9:05 pm

Network camera set up.

Post by ubell »

I have a GadSpot network camera and cannot seem to get
images into ZM from it. I am running ZM 1.21.3 on Fedora Core 2.
I loaded the following packages to get things working:
mysql-3.23.58-9.i386.rpm
mysql-devel-3.23.58-9.i386.rpm
mysql-server-3.23.58-9.i386.rpm
perl-5.8.3-18.i386.rpm
perl-DBD-MySQL-2.9003-4.i386.rpm
perl-DBI-1.40-4.i386.rpm
php-4.3.4-11.i386.rpm
php-mysql-4.3.4-11.i386.rpm
php-pear-4.3.4-11.i386.rpm

One problem is that perl seems to want to use /tmp/mysql.sock
rather than /var/lib/mysql/mysql.sock. I linked them and things
appear to have stopped complaining.

I have the following Source configuration:
Remote Host Name: name:passwd@10.0.0.81
Remote Host Port: 80
Remote Host Path: /Jpeg/CamImg.jpg // fetches one image
or
Remote Host Path: /GetData.cgi // streams data
24bit colour
Width: 640
Hieght: 480

When I save I get:
Oct 7 08:35:44 rascal zmfix[17645]: WAR [Attempt to fetch string value for (null), actual type is ]
Oct 7 08:35:44 rascal zmfix[17645]: WAR [Attempt to fetch boolean value for (null), actual type is ]
Oct 7 08:35:44 rascal zmfix[17645]: ERR [Can't find config item 2]

And I have no image in the watch screen.

If I run zmc with the above parameters I get:
Oct 7 08:46:31 rascal zmc_hxxx:xxxx[17724]: INF [Debug Level = 0, Debug Log = <none>]
Oct 7 08:46:31 rascal zmc_hxxx:xxxx[17724]: WAR [Attempt to fetch string value for (null), actual type is ]
Oct 7 08:46:31 rascal zmc_hxxx:xxxx[17724]: WAR [Attempt to fetch boolean value for (null), actual type is #^T?^N\201^_]
Oct 7 08:46:31 rascal zmc_hxxx:xxxx[17724]: ERR [Can't find config item 2]

Any suggestions?
Mike
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

not that i know but have you tried the http type (1.0 or 1.1) and/or the reg_exp options?

James
ubell
Posts: 53
Joined: Sun Jul 24, 2005 9:05 pm

Things are better

Post by ubell »

Seems I had some sort of config problem.
I redid the config and reloaded the mysql database.
Now zm actually starts (it was showing stopped on the web page).
Now I get a black image for my camera and a log message
that says:
Oct 7 12:18:15 rascal zmc_m1[8092]: ERR [Select timed out]
Oct 7 12:18:18 rascal zmc_m1[8092]: ERR [Invalid response status 210323248: Unauthorized]
Oct 7 12:18:21 rascal last message repeated 202 times

I have cut and pasted exactly what I have in my camera source
into my browser and I get an image.

What response is expected from a network camera?
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

never tried this actual cam. Can you temp turn authentication off and see what happens then?
ubell
Posts: 53
Joined: Sun Jul 24, 2005 9:05 pm

Post by ubell »

Well that seems to work. But I have the right user:password in
the host name. Is there some other way to specify that?
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

i think there is an option to pass hashed or plain passwords in options try that on plain and see how you go using auth

James
ubell
Posts: 53
Joined: Sun Jul 24, 2005 9:05 pm

Post by ubell »

I changed ZM_AUTH_METHOD to plain in the web interface
and then restarted zm. This had no effect as far as
I can tell.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

sorry then mate im out of suggestions, cordel is a bit of an expert and a regular hopefully he will know the answer

Sorry

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

Post by zoneminder »

Can you do a

Code: Select all

zmu -m 1 -q -v
and then post what you get. You may need to ass a username and password to zmu depending on what your current authentication settings are.

Phil
ubell
Posts: 53
Joined: Sun Jul 24, 2005 9:05 pm

Post by ubell »

Cordel provided me the answer on another thread
(sorrry for the shot gun, but while I had his attention...).
The problem was that I had http:// at the front of
my name:passwd@host. Apparently that works
except it screws up the authorization.

All is well now.

Thanks.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Yes, it just wants the hostname not a url with a protocol specifier.

Phil
ubell
Posts: 53
Joined: Sun Jul 24, 2005 9:05 pm

Post by ubell »

Any way to use the streaming interface?
/GetData.cgi

Right now I'm seeing only about 5fps (its a wireless b interface).
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Yes, that should work if you put it in the remote path.

Phil
ubell
Posts: 53
Joined: Sun Jul 24, 2005 9:05 pm

Post by ubell »

I get:
Oct 10 14:21:57 rascal zmc_m1[11288]: ERR [Found bogus jpeg header '4854']
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Are you using nph-zms or just zms (Options->Paths->ZM_PATH_ZMS)? Also do you have Options->Network->ZM_NETCAM_REGEXPS on or off?

Phil
Locked