Axis Cameras

Support and queries relating to all previous versions of ZoneMinder
Locked
mcampo
Posts: 1
Joined: Wed Oct 27, 2004 10:57 am

Axis Cameras

Post by mcampo »

Hi,
I have installed in the HDD the live-cd. I have tried with IP cameras (Axis 2420 and Axis 2120) and no image appears, though from the explorer if that does it.

My camera configuration:
----
Function : Monitor
Section Length : 600
Frame Skip: 0
Run Mode: Conitnuous
Source Type: Remote
----

Remote Host Name : 192.168.0.215
Remote Host Port: 80
Remote Host Path: /jpg/image.jpg
320x240
24 bit colour

Can someone help me?
Thanks
User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

Post by rdmelin »

Hi all,
I moved this here from the livecd forum. Can anyone with netcam know how help?

Thanks
User avatar
ma77hias
Posts: 71
Joined: Wed Jul 07, 2004 3:18 pm

Post by ma77hias »

I use either of these paths on my axis cameras

/axis-cgi/mjpg/video.cgi?

or

/axis-cgi/jpg/image.cgi?

also make sure the image size your are using to capture in zoneminder is the same as you have set in the axis camera admin menu.
BobLyman
Posts: 6
Joined: Tue Feb 08, 2005 9:29 pm

Post by BobLyman »

This is the same issue I've been having with my Axis 2120 cameras.

My config is identical to mcampo's with one exception and that is Remote host path is set to /axis-cgi/jpg/image.cgi?

Still I get nothing from the camera in ZM?

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

Post by zoneminder »

What do you see in the logs? Are you using http 1.0 or 1.1?

Phil
BobLyman
Posts: 6
Joined: Tue Feb 08, 2005 9:29 pm

Post by BobLyman »

I'm using 1.1

Also for the record I'm a developer not a Linux admin so please forgive me if I ask seamingly stupid questions about Linux. I'm trying to make this work on RH9C3 if that helps.

The catpure daemon seems to be working now and images are being recorded, but I still can't get any display in the monitor window from zms.

From zmdc.log

Server shutdown at 05/02/17 13:18:47
Server starting at 05/02/17 13:18:57
'zmc -m 1' started at 05/02/17 13:19:00
'zmc -m 1' starting at 05/02/17 13:19:00, pid = 5747
'zma -m 1' started at 05/02/17 13:19:00
'zma -m 1' starting at 05/02/17 13:19:00, pid = 5752
'zmc -m 2' started at 05/02/17 13:19:01
'zmc -m 2' starting at 05/02/17 13:19:01, pid = 5757
'zma -m 2' starting at 05/02/17 13:19:01, pid = 5762
'zma -m 2' started at 05/02/17 13:19:01
'zmfilter.pl' started at 05/02/17 13:19:01
'zmfilter.pl' starting at 05/02/17 13:19:01, pid = 5767
'zmaudit.pl -d 900 -y' started at 05/02/17 13:19:01
'zmaudit.pl -d 900 -y' starting at 05/02/17 13:19:01, pid = 5772
'zmwatch.pl' started at 05/02/17 13:19:02
'zmwatch.pl' starting at 05/02/17 13:19:02, pid = 5778

From zmpkg.log

Command: start
Executing: su apache --shell=/bin/sh --command='/usr/local/bin/zmdc.pl check'
Removing shared memory
Executing: su apache --shell=/bin/sh --command='/usr/local/bin/zmfix'
/usr/local/bin/zmfix: error while loading shared libraries: libavformat.so: cannot open shared object file: No such file or directory
Executing: su apache --shell=/bin/sh --command='/usr/local/bin/zmdc.pl status'
Executing: su apache --shell=/bin/sh --command='/usr/local/bin/zmdc.pl start zmc -m 1'
Executing: su apache --shell=/bin/sh --command='/usr/local/bin/zmdc.pl start zma -m 1'
Executing: su apache --shell=/bin/sh --command='/usr/local/bin/zmdc.pl start zmc -m 2'
Executing: su apache --shell=/bin/sh --command='/usr/local/bin/zmdc.pl start zma -m 2'
Executing: su apache --shell=/bin/sh --command='/usr/local/bin/zmdc.pl start zmfilter.pl'
Executing: su apache --shell=/bin/sh --command='/usr/local/bin/zmdc.pl start zmaudit.pl -d 900 -y'
Executing: su apache --shell=/bin/sh --command='/usr/local/bin/zmdc.pl start zmwatch.pl'

From zmwatch.log

Can't get shared memory id '2053971970': No such file or directory
Can't get shared memory id '2053971969': No such file or directory
Can't get shared memory id '2053971970': No such file or directory
Watchdog starting at 05/02/17 12:55:46
Watchdog pausing for 30 seconds
Can't get shared memory id '2053971969': No such file or directory
Can't get shared memory id '2053971970': No such file or directory
Can't get shared memory id '2053971969': No such file or directory
Can't get shared memory id '2053971970': No such file or directory
Can't get shared memory id '2053971969': No such file or directory
Can't get shared memory id '2053971970': No such file or directory
Watchdog starting at 05/02/17 12:56:56
Watchdog pausing for 30 seconds
Watchdog starting at 05/02/17 12:58:34
Watchdog pausing for 30 seconds
Watchdog starting at 05/02/17 13:19:02
Watchdog pausing for 30 seconds
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Try sending a USR1 signal to the relevant zmc process. This will increase the debug level by 1 each time. At about 3 or so you should see something more useful in /var/log/messages. If you can post that it might help, I would also recommend changing to http 1.0 as an experiment.

Sending USR2 puts the debug level back down by the way.

Phil
BobLyman
Posts: 6
Joined: Tue Feb 08, 2005 9:29 pm

Post by BobLyman »

Ok,

Here's what I'm seeing in the apache error log

[Fri Feb 18 09:11:56 2005] [error] [client 10.12.96.15] Premature end of script headers: zms, referer: http://bpl-tim-1/index.php?view=watchfe ... &scale=100
[Fri Feb 18 09:11:56 2005] [error] [client 10.12.96.15] /opt/httpd/cgi-bin/zms: error while loading shared libraries: libavformat.so: cannot open shared object file: No such file or directory, referer: http://bpl-tim-1/index.php?view=watchfe ... &scale=100
/usr/local/bin/zmu: error while loading shared libraries: libavformat.so: cannot open shared object file: No such file or directory

Now I know for a fact that libavformat.so is on the box and in the following locations:

/root/ffmpeg-0.4.8/libavformat/libavformat.so
/usr/local/bin/libavformat.so
/usr/local/lib/libavformat.so

What am I missing?
BobLyman
Posts: 6
Joined: Tue Feb 08, 2005 9:29 pm

Post by BobLyman »

From the /var/logmessages file

Feb 18 09:58:43 bpl-tim-1 zmc-m1[1567]: INF [IT: 346 - Capturing at 0.17 fps]
Feb 18 09:58:44 bpl-tim-1 zmc-m4[1597]: INF [BPL-COF5-2: 345 - Capturing at 0.17 fps]
Feb 18 09:58:44 bpl-tim-1 zma-m6[1625]: WAR [Approaching buffer overrun, consider increasing ring buffer size]
Feb 18 09:58:44 bpl-tim-1 zma-m4[1602]: INF [BPL-COF5-2: 191 - Processing at 0.08 fps]
Feb 18 09:58:44 bpl-tim-1 zmc-m10[1662]: INF [CMF-Maint_Shop: 345 - Capturing at 0.14 fps]
Feb 18 09:58:44 bpl-tim-1 zmc-m6[1619]: INF [BPL-COF4-2: 351 - Capturing at 0.17 fps]
Feb 18 09:58:44 bpl-tim-1 zma-m8[1646]: WAR [Approaching buffer overrun, consider increasing ring buffer size]
Feb 18 09:58:45 bpl-tim-1 zmc-m3[1587]: INF [BPL-COF5-1: 342 - Capturing at 0.17 fps]
Feb 18 09:58:45 bpl-tim-1 zma-m3[1592]: INF [BPL-COF5-1: 189 - Processing at 0.09 fps]
Feb 18 09:58:45 bpl-tim-1 zmc-m8[1641]: INF [BPL-SC: 346 - Capturing at 0.17 fps]
Feb 18 09:58:45 bpl-tim-1 zma-m5[1614]: WAR [Approaching buffer overrun, consider increasing ring buffer size]
Feb 18 09:58:45 bpl-tim-1 zma-m20[1773]: WAR [Waiting for capture daemon]
Feb 18 09:58:45 bpl-tim-1 zma-m17[1738]: WAR [Approaching buffer overrun, consider increasing ring buffer size]
Feb 18 09:58:45 bpl-tim-1 zma-m21[1785]: WAR [Waiting for capture daemon]
Feb 18 09:58:45 bpl-tim-1 zma-m19[1761]: WAR [Waiting for capture daemon]
Feb 18 09:58:46 bpl-tim-1 zmc-m5[1608]: INF [BPL-COF4-1: 343 - Capturing at 0.17 fps]
Feb 18 09:58:46 bpl-tim-1 zmc-m7[2326]: INF [BPL-COF3: 52 - Capturing at 0.09 fps]
Feb 18 09:58:46 bpl-tim-1 zma-m7[1635]: INF [BPL-COF3: 181 - Processing at 0.09 fps]
Feb 18 09:58:46 bpl-tim-1 zma-m9[1656]: WAR [Approaching buffer overrun, consider increasing ring buffer size]
Feb 18 09:58:46 bpl-tim-1 zma-m11[1677]: WAR [Approaching buffer overrun, consider increasing ring buffer size]
Feb 18 09:58:46 bpl-tim-1 zmc-m11[1672]: INF [CMF-Metal_Shop: 337 - Capturing at 0.20 fps]
Feb 18 09:58:47 bpl-tim-1 zmc-m17[1733]: INF [BPL-LAB: 332 - Capturing at 0.17 fps]
Feb 18 09:58:47 bpl-tim-1 zmc-m9[1651]: INF [BPL-NC: 346 - Capturing at 0.17 fps]
Feb 18 09:58:47 bpl-tim-1 zmc-m12[2439]: INF [CMF-Electric_Shop: 13 - Capturing at 0.20 fps]
Feb 18 09:58:47 bpl-tim-1 zmc-m16[2085]: INF [CMF-Material_Management: 112 - Capturing at 0.20 fps]
Feb 18 09:58:47 bpl-tim-1 zma-m16[1728]: INF [CMF-Material_Management: 179 - Processing at 0.08 fps]
Feb 18 09:58:47 bpl-tim-1 zma-m12[1688]: INF [CMF-Electric_Shop: 185 - Processing at 0.09 fps]
Feb 18 09:58:47 bpl-tim-1 zma-m14[1708]: WAR [Approaching buffer overrun, consider increasing ring buffer size]
Feb 18 09:58:47 bpl-tim-1 zma-m2[1582]: WAR [Approaching buffer overrun, consider increasing ring buffer size]
Feb 18 09:58:48 bpl-tim-1 zmc-m2[1577]: INF [COF-Proc: 346 - Capturing at 0.17 fps]
Feb 18 09:58:48 bpl-tim-1 zmc-m14[1703]: INF [CMF-Maint: 343 - Capturing at 0.17 fps]
Feb 18 09:58:48 bpl-tim-1 zmc-m15[2431]: WAR [Buffer overrun at index 1 ]
Feb 18 09:58:48 bpl-tim-1 zma-m4[1602]: WAR [Approaching buffer overrun, consider increasing ring buffer size]
Feb 18 09:58:49 bpl-tim-1 zmc-m18[1743]: INF [BPL-SOL_Basement: 341 - Capturing at 0.17 fps]
Feb 18 09:58:49 bpl-tim-1 zma-m18[1748]: INF [BPL-SOL_Basement: 184 - Processing at 0.08 fps]
BobLyman
Posts: 6
Joined: Tue Feb 08, 2005 9:29 pm

Post by BobLyman »

zoneminder wrote:Try sending a USR1 signal to the relevant zmc process. This will increase the debug level by 1 each time. At about 3 or so you should see something more useful in /var/log/messages. If you can post that it might help, I would also recommend changing to http 1.0 as an experiment.

Sending USR2 puts the debug level back down by the way.

Phil
Pardon my ignorance, but how do you send the USR1 signal?
BobLyman
Posts: 6
Joined: Tue Feb 08, 2005 9:29 pm

Post by BobLyman »

Well we got it working. Turns out we had to install rpms for ffmpeg and a few other media packages and everything works great.

Good stuff Phil! Keep up the good work!
Locked