Image capture issue, IK-WB11A (NOT Shared mem issue) :)

Support and queries relating to all previous versions of ZoneMinder
paperstreet
Posts: 82
Joined: Thu May 18, 2006 7:45 pm

Image capture issue, IK-WB11A (NOT Shared mem issue) :)

Post by paperstreet »

Working with a new system, have had luck with the IK-WB11a before, but this one is being a bit snarky

Tried
- adjusting max allocation of memory
- Increasing timeout lengh
- adjusting buffer (20, 5, 10 10 right now) - this helped for a second
- sacrificing many small animals

No luck yet... even tried non regex expressions and changing the way ZM presents itself to the web interface

here are some snippets of things

zmwatch

Code: Select all

10/22/2007 12:39:17.838972 zmwatch[5221].INF [Restarting capture daemon for Back_Parking, time since last capture 9 seconds (1193071157-119$
10/22/2007 12:39:18.140195 zmwatch[5221].INF ['zmc -m 6' starting at 07/10/22 12:39:18, pid = 5561]
10/22/2007 12:39:28.143635 zmwatch[5221].INF [Restarting capture daemon for Back_Parking, time since last capture 10 seconds (1193071168-11$
10/22/2007 12:39:28.449741 zmwatch[5221].INF ['zmc -m 6' starting at 07/10/22 12:39:28, pid = 5565]
10/22/2007 12:39:38.462498 zmwatch[5221].INF [Restarting capture daemon for Back_Parking, time since last capture 10 seconds (1193071178-11$
10/22/2007 12:39:38.740065 zmwatch[5221].INF ['zmc -m 6' starting at 07/10/22 12:39:38, pid = 5569]
10/22/2007 12:39:48.745078 zmwatch[5221].INF [Restarting capture daemon for Back_Parking, time since last capture 10 seconds (1193071188-11$
10/22/2007 12:39:49.057478 zmwatch[5221].INF ['zmc -m 6' starting at 07/10/22 12:39:48, pid = 5574]
zmdc.log

Code: Select all


10/22/2007 14:26:27.276907 zmdc[5150].ERR ['zmc -m 6' exited abnormally, exit status 255]
10/22/2007 14:26:37.364598 zmdc[5150].INF ['zmc -m 6' starting at 07/10/22 14:26:37, pid = 8368]
10/22/2007 14:26:37.513312 zmdc[5150].ERR ['zmc -m 6' exited abnormally, exit status 255]
10/22/2007 14:26:47.680933 zmdc[5150].INF ['zmc -m 6' starting at 07/10/22 14:26:47, pid = 8373]
10/22/2007 14:26:47.819518 zmdc[5150].ERR ['zmc -m 6' exited abnormally, exit status 255]
10/22/2007 14:26:57.989850 zmdc[5150].INF ['zmc -m 6' starting at 07/10/22 14:26:57, pid = 8379]
10/22/2007 14:26:58.135440 zmdc[5150].ERR ['zmc -m 6' exited abnormally, exit status 255]
10/22/2007 14:27:08.314219 zmdc[5150].INF ['zmc -m 6' starting at 07/10/22 14:27:08, pid = 8401]
10/22/2007 14:27:08.560351 zmdc[5150].ERR ['zmc -m 6' exited abnormally, exit status 255]

If i put the url used in the config directly into the browser, I get a .jpg

Code: Select all

http://192.168.0.30:84/__live.jpg?&&Z3Vlc3Q=&YnIxY2s=

Produces a 640x480 jpg (note the garbage at the end is the user pass in base64)

System is running at .29 Load Average and ram is only 60% used according to top

Running Dapper 6.06 with 1.22.3

Fresh install...

Any advice ad to what else I can debug against??
Last edited by paperstreet on Mon Oct 22, 2007 6:36 pm, edited 1 time in total.
paperstreet
Posts: 82
Joined: Thu May 18, 2006 7:45 pm

Post by paperstreet »

/var/log/messages...

is there a way to set the debug level and see why it doesn't work?

Code: Select all


Oct 22 14:31:35 localhost zmwatch[5221]: INF [Restarting capture daemon for Back_Parking, time since last capture 10 seconds (1193077895$
Oct 22 14:31:36 localhost zmdc[8518]: INF ['zmc -m 6' started at 07/10/22 14:31:36]
Oct 22 14:31:36 localhost zmdc[5150]: INF ['zmc -m 6' starting at 07/10/22 14:31:36, pid = 8518]
Oct 22 14:31:36 localhost zmc_m6[8518]: INF [Debug Level = 0, Debug Log = <none>]
Oct 22 14:31:36 localhost zmc_m6[8518]: INF [Starting Capture]
Oct 22 14:31:36 localhost zmwatch[5221]: INF ['zmc -m 6' starting at 07/10/22 14:31:36, pid = 8518]
Oct 22 14:31:46 localhost zmwatch[5221]: INF [Restarting capture daemon for Back_Parking, time since last capture 10 seconds (1193077906$
Oct 22 14:31:46 localhost zmdc[8523]: INF ['zmc -m 6' started at 07/10/22 14:31:46]
Oct 22 14:31:46 localhost zmdc[5150]: INF ['zmc -m 6' starting at 07/10/22 14:31:46, pid = 8523]
Oct 22 14:31:46 localhost zmc_m6[8523]: INF [Debug Level = 0, Debug Log = <none>]
Oct 22 14:31:46 localhost zmc_m6[8523]: INF [Starting Capture]
[/code]
paperstreet
Posts: 82
Joined: Thu May 18, 2006 7:45 pm

Post by paperstreet »

wget http://192.168.0.30:84/__live.jpg?&Z3Vlc3Q=&YnIxY2s=

404s out, but if I put it in a browser it works... I'll keep trying.

EDIT: was parsing the & as part of a command vs the url.. i did


wget "http://192.168.0.30:84/__live.jpg?&&Z3Vlc3Q=&YnIxY2s="
--14:57:02-- http://192.168.0.30:84/__live.jpg?&&Z3Vlc3Q=&YnIxY2s=
=> `__live.jpg?&&Z3Vlc3Q=&YnIxY2s='
Connecting to 192.168.0.30:84... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [image/jpeg]

[ <=> ] 30,189 --.--K/s

14:57:02 (1.14 MB/s) - `__live.jpg?&&Z3Vlc3Q=&YnIxY2s=' saved [30189]
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

does the cam work without auth? ie is the & causing the issue to zm?
Different pass maybe?
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
paperstreet
Posts: 82
Joined: Thu May 18, 2006 7:45 pm

Post by paperstreet »

dunno.. camera is 100 feet up and the camera doesn't have a no auth log-in.

I am wondering if zoneminder is doing exactly what I did with the URL, although the strange thing is every once in a while it works for a second, and then I get the broken image again...

Reading the troubleshooting steps on the wiki in hopes for a path to solution

Thanks James

Scott
paperstreet
Posts: 82
Joined: Thu May 18, 2006 7:45 pm

Post by paperstreet »

Hmm.. I set it to record for an hour, and I get "signal lost" and then a couple of minutes of footage over and over again.. this is on the local network, but I am going to set up a ping test to the camera for an hour or so. I'll post the results, but at least I know it works *sometimes*. I did a ping test for 30 minutes on site, but will try again.

At least this tells me that the url formatting is correct and being handled correctly.. since this is a 640x480 image, I am beginning to wonder if this is a resource or buffer issue, even though I have memory to spare and the load average is low.

EDIT:

I cranked the image buffer to 10 and the warmup to 1 and it works, but sloowwwlly and with about 5 seconds between frames.. any of the more experienced ZM guys wanna give me a guess at what I am missing? I still smell resource issue, but maybe something in software/ settings, and not something i am lacking in hardware.. (NOTE: in sysctl.conf i have
kernel.shmall = 134217728
kernel.shmmax = 134217728)
paperstreet
Posts: 82
Joined: Thu May 18, 2006 7:45 pm

debug level 9

Post by paperstreet »

Hmm debug level 9 shows some interesting stuff.. getting 404d somehow, but not right away (?)

Code: Select all

10/22/07 16:17:29.496070 zmc_m6[5450].INF-zm_debug.c/304 [New Debug Level = 9, New Debug Log = /tmp/zm_debug.log.05450]
10/22/07 16:17:29.496431 zmc_m6[5450].DB1-zm_monitor.cpp/1899 [Got 1 monitors]
10/22/07 16:17:29.496577 zmc_m6[5450].DB2-zm_remote_camera.cpp/124 [Request: GET /__live.jpg?&&Z3Vlc3Q=&YnIxY2s= HTTP/1.1
User-Agent: ZoneMinder/1.22.3
Host: 192.168.0.30
Connection: Keep-Alive

]
10/22/07 16:17:29.501616 zmc_m6[5450].DB1-zm_monitor.cpp/253 [monitor purpose=1]
10/22/07 16:17:29.501647 zmc_m6[5450].DB1-zm_monitor.cpp/260 [shm.size=9216948]
10/22/07 16:17:29.523360 zmc_m6[5450].DB1-zm_zone.cpp/49 [Initialised zone 0/All - 1 - 640x480 - Rgb:ff0000, CM:3, MnAT:15, MxAT:0, MnAP:50, Mx$
10/22/07 16:17:29.524112 zmc_m6[5450].DB9-zm_image.cpp/1134 [x1:0,y1:479 x2:0,y2:0]
10/22/07 16:17:29.524135 zmc_m6[5450].DB9-zm_image.cpp/1134 [x1:0,y1:0 x2:639,y2:0]
10/22/07 16:17:29.524156 zmc_m6[5450].DB9-zm_image.cpp/1134 [x1:639,y1:0 x2:639,y2:479]
10/22/07 16:17:29.524176 zmc_m6[5450].DB9-zm_image.cpp/1134 [x1:639,y1:479 x2:0,y2:479]
10/22/07 16:17:29.524235 zmc_m6[5450].DB9-zm_image.cpp/1154 [0: min_y: 0, max_y:479, min_x:0.00, 1/m:-0.00]
10/22/07 16:17:29.524262 zmc_m6[5450].DB9-zm_image.cpp/1154 [1: min_y: 0, max_y:479, min_x:639.00, 1/m:0.00]
10/22/07 16:17:29.524283 zmc_m6[5450].DB9-zm_image.cpp/1168 [Moving global edge]
10/22/07 16:17:29.524303 zmc_m6[5450].DB9-zm_image.cpp/1168 [Moving global edge]
(SNIP) - more of the same

Code: Select all

0/22/07 16:17:29.747023 zmc_m6[5450].DB3-zm_remote_camera.cpp/250 [Read 2920 bytes]
10/22/07 16:17:29.748825 zmc_m6[5450].DB3-zm_remote_camera.cpp/225 [Expecting 2920 bytes]
10/22/07 16:17:29.748849 zmc_m6[5450].DB3-zm_remote_camera.cpp/250 [Read 2920 bytes]
10/22/07 16:17:29.750310 zmc_m6[5450].DB3-zm_remote_camera.cpp/225 [Expecting 2920 bytes]
10/22/07 16:17:29.750334 zmc_m6[5450].DB3-zm_remote_camera.cpp/250 [Read 2920 bytes]
10/22/07 16:17:29.751777 zmc_m6[5450].DB3-zm_remote_camera.cpp/225 [Expecting 2920 bytes]
10/22/07 16:17:29.751802 zmc_m6[5450].DB3-zm_remote_camera.cpp/250 [Read 2920 bytes]
10/22/07 16:17:29.753499 zmc_m6[5450].DB3-zm_remote_camera.cpp/225 [Expecting 1460 bytes]
10/22/07 16:17:29.753522 zmc_m6[5450].DB3-zm_remote_camera.cpp/250 [Read 1460 bytes]
10/22/07 16:17:29.754414 zmc_m6[5450].DB3-zm_remote_camera.cpp/225 [Expecting 3343 bytes]
10/22/07 16:17:29.754440 zmc_m6[5450].DB3-zm_remote_camera.cpp/250 [Read 3343 bytes]
10/22/07 16:17:29.756022 zmc_m6[5450].DB3-zm_remote_camera.cpp/220 [Socket closed]
10/22/07 16:17:29.756082 zmc_m6[5450].DB3-zm_remote_camera.cpp/511 [Got end of image by closure, content-length = 28163]
10/22/07 16:17:29.763095 zmc_m6[5450].DB3-zm_remote_camera.cpp/536 [Returning 28163 (28163) bytes of captured content]
10/22/07 16:17:29.780249 zmc_m6[5450].DB3-zm_remote_camera.cpp/159 [Connected to host, socket = 5]
10/22/07 16:17:29.780286 zmc_m6[5450].DB3-zm_remote_camera.cpp/180 [Request sent]
10/22/07 16:17:29.784293 zmc_m6[5450].DB3-zm_remote_camera.cpp/225 [Expecting 82 bytes]
10/22/07 16:17:29.784318 zmc_m6[5450].DB3-zm_remote_camera.cpp/250 [Read 82 bytes]
10/22/07 16:17:29.784348 zmc_m6[5450].DB4-zm_remote_camera.cpp/302 [Captured header (45 bytes):
'HTTP/1.0 404 Not found
Connection: close

']
10/22/07 16:17:29.784379 zmc_m6[5450].ERR-zm_remote_camera.cpp/317 [Invalid response status 404: Not found]

paperstreet
Posts: 82
Joined: Thu May 18, 2006 7:45 pm

Post by paperstreet »

zmu output

Code: Select all

admin@brick-dvr:~$ sudo zmu -m 6 -q -v -U ##### -P ######
Monitor 6(Back_Parking)
Id : 6
Name : Back_Parking
Type : Remote
Host : 192.168.0.30
Port : 84
Path : /__live.jpg?&&Z3Vlc3Q=&YnIxY2s=
Width : 640
Height : 480
Palette : 4
Colours : 3
Event Prefix : Event-
Label Format : %%s - %m/%d/%y %H:%M:%S
Label Coord : 0,0
Image Buffer Count : 10
Warmup Count : 1
Pre Event Count : 1
Post Event Count : 1
Alarm Frame Count : 1
Section Length : 600
Maximum FPS : 10.00
Alarm Maximum FPS : 10.00
Reference Blend %ge : 7
Track Motion : 0
Function: 2 - Monitor Only
Zones : 1
  Id : 6
  Label : All
  Type: 1 - Active
  Shape : 4 points
    0: 0,0
    1: 639,0
    2: 639,479
    3: 0,479
  Alarm RGB : ff0000
  Check Method: 3 - Blobs
  Min Pixel Threshold : 25
  Max Pixel Threshold : 0
  Min Alarm Pixels : 9216
  Max Alarm Pixels : 230400
  Filter Box : 3,3
  Min Filter Pixels : 9216
  Max Filter Pixels : 230400
  Min Blob Pixels : 6144
  Max Blob Pixels : 0
  Min Blobs : 1
  Max Blobs : 0
paperstreet
Posts: 82
Joined: Thu May 18, 2006 7:45 pm

Post by paperstreet »

http://64.203.237.66:84/__live.jpg?&&Z3Vlc3Q=&YnIxY2s=

if anyone wants to try it out...

640x480 atm

ty

scott
paperstreet
Posts: 82
Joined: Thu May 18, 2006 7:45 pm

Post by paperstreet »

hrrmph.. just tried it on another zoneminder box and it works fine remotely :(

ironically enough, before I installed the box, it worked here too

:roll:
paperstreet
Posts: 82
Joined: Thu May 18, 2006 7:45 pm

Post by paperstreet »

Well.. kind of banging my head here.. duplicate box with same version of zoneminder works,... this one doesn't... same basic specs.. any advice???

about to try a reinstall, although thats usually more counter productive than
I'd like, especially since I would have to reconfigure ZM from scratch :(


Thanks
paperstreet
Posts: 82
Joined: Thu May 18, 2006 7:45 pm

Post by paperstreet »

Arrgh

Recompiled, set up ONLY this one camera, and ONLY on this box it doesn't work. (Also reinstalled DB after removing the old one and purged old zm files)

Getting fed up with it for the day, revisit tomorrow...
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

works on my system mate
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
paperstreet
Posts: 82
Joined: Thu May 18, 2006 7:45 pm

Post by paperstreet »

lol yeah, works on another box of mine too, and once again, I swear it worked here with the remote IP for testing.. about to ssh back in and vpn the box out of the network and back in across NAT.

sigh.
paperstreet
Posts: 82
Joined: Thu May 18, 2006 7:45 pm

Post by paperstreet »

shoot me

Just reinstalled it,

gave it 1.) a different name (Back vs. back_door) a misnomer no doubt as the previous attempts were left at "New".

Clicked maximum fps to 1... and now it works.. gonna recheck later. just glad it is up now.. yay for magic!!! :roll:
Locked