Page 1 of 1

DSC-3410

Posted: Fri May 21, 2010 6:24 pm
by pindari94062
Firstly, thank you to those you have maintained the wiki page on the D-Link 3410. With a fresh install of Ubuntu 10.04 Server Edition I installed ZM and have added a camera through the ZM console page. I have tried both the HTTP and RTSP settings but am unable to monitor the camera. Clicking on the monitor name, the ZM page which pops up has an area for the image but has the small red X in the top left corner with the control buttons below the empty image.

I can see the camera image if viewed direct http://10.81.10.178/video/mjpg.cgi (and also with VLC when using the RTSP address).

The camera has factory default settings and I have configured the camera in ZM as follows

Source Type Remote
Remote Host Name admin:@10.81.10.178
Remote Host Path /video/mjpg.cgi
Capture Width 704
Capture Height 480

All other settings are the defaults supplied from "Add New Monitor"

ZMC and zmdc entries in messages are INF and no errors are shown.

Any help appreciated.

Posted: Fri May 21, 2010 8:10 pm
by kingofkya
ok when you view this http://10.81.10.178/video/mjpg.cgi

what resolution is it it should be in ff title bar.

Make sure that matches what you have in zm

Capture Width 704
Capture Height 480


Also make sure you set shared memory.

SOLVED

Posted: Sat May 22, 2010 12:06 am
by pindari94062
The Width and Height in the ff title bar correctly show 704 and 480. My issues was with shared memory. The wiki and other sources had different calculations but the following is working for me.

Two 704 x 480 cameras with 24 bit. A ring buffer of 100. Bits needed = 2 x 704 x 480 x 24 x 100 = 1,622,016,000 bits = 202,752,000 bytes. Add 10% just in case = 223,027,200 bytes.

getconf PAGE_SIZE reports 4096 so shmall needs to be at least 223,027,200 / 4096 = 54,450. I rounded it to 55,000 and then computed shmmax as 55,000 * 4096 = 225,280,000 and added the following two lines to /etc/sysctl.conf

kernel.shmall = 55000
kernel.shmmax = 225280000

Reboot and all was good. ipcs -l now shows the max total shared memory (kbytes) = 220000 and cat /proc/sys/kernel/shmmax and cat /proc/sys/kernel/shmall report my entries above