| View previous topic :: View next topic |
| Author |
Message |
volto
Joined: 18 Oct 2008 Posts: 3
|
Posted: Sat Oct 18, 2008 2:45 am Post subject: Shared memory troubles - Ubuntu 8.04 |
|
|
Hi im on Ubuntu 8.04, zoneminder 1.23.3
Trying to connect to D-Link DCS-5300g network cameras.
I am unable to get any images to show.
It seems I dont have enough shared memory, but...
I have these settings in my /etc/sysctl.conf
kernel.shmall=2097152
kernel.shmmax=40550400
on 704x480x24 I get a broken image
on 320x240x24 I get a black image
on 320x240x8 I get a black image
debug set to 4
With 320x240 I get this in the debug log:
| Code: |
'HTTP/1.1 200 OK
Content-Type: image/jpeg
Date: Mon, 07 Jul 2008 16:18:35 GMT
Last-Modified: Mon, 07 Jul 2008 16:18:35 GMT
Expires: Mon, 07 Jul 2008 16:18:35 GMT
Server: D-Link Internet Camera
']
10/17/08 21:37:11.321414 zmc_m1[31099].DB3-zm_remote_camera.cpp/321 [Got status '200' (OK), http version 1.1]
10/17/08 21:37:11.321501 zmc_m1[31099].DB3-zm_remote_camera.cpp/344 [Got content type 'image/jpeg'
]
10/17/08 21:37:11.342663 zmc_m1[31099].DB3-zm_remote_camera.cpp/225 [Expecting 1450 bytes]
10/17/08 21:37:11.342712 zmc_m1[31099].DB3-zm_remote_camera.cpp/250 [Read 1450 bytes]
10/17/08 21:37:11.362670 zmc_m1[31099].DB3-zm_remote_camera.cpp/225 [Expecting 1450 bytes]
10/17/08 21:37:11.362701 zmc_m1[31099].DB3-zm_remote_camera.cpp/250 [Read 1450 bytes]
10/17/08 21:37:11.382623 zmc_m1[31099].DB3-zm_remote_camera.cpp/225 [Expecting 1450 bytes]
10/17/08 21:37:11.382653 zmc_m1[31099].DB3-zm_remote_camera.cpp/250 [Read 1450 bytes]
10/17/08 21:37:11.402609 zmc_m1[31099].DB3-zm_remote_camera.cpp/225 [Expecting 1450 bytes]
10/17/08 21:37:11.402639 zmc_m1[31099].DB3-zm_remote_camera.cpp/250 [Read 1450 bytes]
10/17/08 21:37:11.422803 zmc_m1[31099].DB3-zm_remote_camera.cpp/225 [Expecting 1450 bytes]
10/17/08 21:37:11.422833 zmc_m1[31099].DB3-zm_remote_camera.cpp/250 [Read 1450 bytes]
10/17/08 21:37:11.442598 zmc_m1[31099].DB3-zm_remote_camera.cpp/225 [Expecting 1450 bytes]
10/17/08 21:37:11.442722 zmc_m1[31099].DB3-zm_remote_camera.cpp/250 [Read 1450 bytes]
10/17/08 21:37:11.462637 zmc_m1[31099].DB3-zm_remote_camera.cpp/225 [Expecting 1450 bytes]
10/17/08 21:37:11.462667 zmc_m1[31099].DB3-zm_remote_camera.cpp/250 [Read 1450 bytes]
10/17/08 21:37:11.482721 zmc_m1[31099].DB3-zm_remote_camera.cpp/225 [Expecting 1450 bytes]
10/17/08 21:37:11.482751 zmc_m1[31099].DB3-zm_remote_camera.cpp/250 [Read 1450 bytes]
10/17/08 21:37:11.502616 zmc_m1[31099].DB3-zm_remote_camera.cpp/225 [Expecting 1450 bytes]
10/17/08 21:37:11.502649 zmc_m1[31099].DB3-zm_remote_camera.cpp/250 [Read 1450 bytes]
10/17/08 21:37:11.522808 zmc_m1[31099].DB3-zm_remote_camera.cpp/225 [Expecting 1450 bytes]
10/17/08 21:37:11.522838 zmc_m1[31099].DB3-zm_remote_camera.cpp/250 [Read 1450 bytes]
10/17/08 21:37:11.542594 zmc_m1[31099].DB3-zm_remote_camera.cpp/225 [Expecting 1450 bytes]
10/17/08 21:37:11.542626 zmc_m1[31099].DB3-zm_remote_camera.cpp/250 [Read 1450 bytes]
10/17/08 21:37:11.562593 zmc_m1[31099].DB3-zm_remote_camera.cpp/225 [Expecting 1450 bytes]
10/17/08 21:37:11.562626 zmc_m1[31099].DB3-zm_remote_camera.cpp/250 [Read 1450 bytes]
10/17/08 21:37:11.582033 zmc_m1[31099].DB3-zm_remote_camera.cpp/225 [Expecting 815 bytes]
10/17/08 21:37:11.582063 zmc_m1[31099].DB3-zm_remote_camera.cpp/250 [Read 815 bytes]
10/17/08 21:37:11.601263 zmc_m1[31099].DB3-zm_remote_camera.cpp/220 [Socket closed]
10/17/08 21:37:11.601348 zmc_m1[31099].DB3-zm_remote_camera.cpp/514 [Got end of image by closure, content-length = 18215]
10/17/08 21:37:11.610966 zmc_m1[31099].DB3-zm_remote_camera.cpp/539 [Returning 18215 (18215) bytes of captured content]
10/17/08 21:37:11.647011 zmc_m1[31099].ERR-zm_monitor.cpp/2153 [Captured image does not match expected size, check width, height and colour depth]
10/17/08 21:37:11.647293 zmc_m1[31099].ERR-zmc.cpp/252 [Failed to post-capture monitor 0]
|
With 704x480 which is native res for the camera, i get this in the debug log:
| Code: |
# cat /tmp/zm_debug.log.30913
10/17/08 21:30:35.356963 zmu[30913].INF-zm_debug.c/305 [New Debug Level = 4, New Debug Log = /tmp/zm_debug.log.30913]
10/17/08 21:30:35.357826 zmu[30913].DB1-zm_monitor.cpp/1964 [Got 1 monitors]
10/17/08 21:30:35.363325 zmu[30913].DB1-zm_monitor.cpp/259 [monitor purpose=0]
10/17/08 21:30:35.363378 zmu[30913].DB1-zm_monitor.cpp/266 [shm.size=40551588]
10/17/08 21:30:35.363459 zmu[30913].ERR-zm_monitor.cpp/270 [Can't shmget, probably not enough shared memory space free: Invalid argument]
|
Thanks in advance for any help. |
|
| Back to top |
|
 |
|
|
kingofkya

Joined: 26 Mar 2007 Posts: 930 Location: Las Vegas, Nevada
|
Posted: Sat Oct 18, 2008 6:51 pm Post subject: |
|
|
is this on an analog on a Ipcam if so what brand
Because this happen to me on an Axis when i specified the wrong size and it out put a different resolution also if it is anolog the cameras must all have the same resolution set on most cards
| Quote: | | Captured image does not match expected size, check |
_________________ Book Recommendation:
SOFTWARE WARS
GOOGLE TUTORIAL
Professional ZM install $30
Camera Setup $5 per cam
PM for details. |
|
| Back to top |
|
 |
volto
Joined: 18 Oct 2008 Posts: 3
|
|
| Back to top |
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|