Shared memory troubles - Ubuntu 8.04

Support and queries relating to all previous versions of ZoneMinder
Locked
volto
Posts: 3
Joined: Sat Oct 18, 2008 1:54 am

Shared memory troubles - Ubuntu 8.04

Post by volto »

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: Select all

'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: Select all

# 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.
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

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
Captured image does not match expected size, check
volto
Posts: 3
Joined: Sat Oct 18, 2008 1:54 am

Post by volto »

It's a D-Link DCS-5300g

resolution of output image is 704x480x24

Thanks

Edit: Here is an example image:
http://volto.us/img/screenshots/video.jpg
Locked