foscam 8905 setup

Forum for questions and support relating to the 1.24.x releases only.
Locked
woja
Posts: 3
Joined: Thu Jan 05, 2012 10:07 am

foscam 8905 setup

Post by woja »

Hi, I have acquired a Foscam FI8905W and am attempting to view in ZoneMinder. I can view a network stream in VLC (same linux box as running ZM) at 192.168.1.220:8085/video.cgi?user=admin&pwd=password&resolution=32:640*480&rate=0.

I have added a monitor - source type=remote, function=monitor, enabled, Maximum FPS=5, Alarm Maximum FPS=5, Reference Image Blend %ge=7, Triggers=None available, Remote Protocol=http, Remote method=simple, Remote host name 192.168.1.220, Remote host port=8085, Remote Host Path=/video.cgi?user=admin&pwd=password&resolution=8:640*480&rate=6.

Various combinations of remote image colours, capture width/height and resolution argument to remote host path above have been tried, the best I get when viewing the monitor is a black box with "State: Idle - 0.00 fps" message.

I must confess I only partially understand the memory allocation issues (shmmax, shmall) and currently have the following:

roger@gemini ~ $ ipcs -l

------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 524288
max total shared memory (kbytes) = 8388608
min seg size (bytes) = 1

------ Semaphore Limits --------
max number of arrays = 128
max semaphores per array = 250
max semaphores system wide = 32000
max ops per semop call = 32
semaphore max value = 32767

------ Messages: Limits --------
max queues system wide = 14986
max size of message (bytes) = 8192
default max size of queue (bytes) = 16384

having added "kernel.shmmax = 536870912" to /etc/sysctl.d/60-kernel-shm.conf and rebooted.

syslog fills with repeats of the following lines when I view the monitor:

roger@gemini ~ $ sudo tail -f /var/log/syslog
Jan 5 23:56:11 gemini zmu[22141]: WAR [Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results]
Jan 5 23:56:12 gemini zms[22142]: INF [Debug Level = 0, Debug Log = <none>]
Jan 5 23:56:12 gemini zms[22142]: Libgcrypt warning: missing initialization - please fix the application
Jan 5 23:56:12 gemini zms[22142]: INF [Authenticated user 'admin']

The box runs Mint 11 x64, 8GB memory, 2.6.38-8-generic, AMD Phenom(tm) II X4 955. I would welcome any feedback on where/what I might go/do from here?

Regards
Roger
pathetic_programmer
Posts: 18
Joined: Fri Dec 09, 2011 2:49 am

Re: foscam 8905 setup

Post by pathetic_programmer »

Seems to be more of a configuration issue than a memory issue. Here's what I use for my Foscam Source tab:
Remote Host Path: /videostream.cgi?user=admin&pwd=
Remote Image Colors: 24 bit color
Capture Width: 640
Capture Height: 480

I think it is your path that is the problem. What works in your browser's address bar may not fully work with ZoneMinder.
woja
Posts: 3
Joined: Thu Jan 05, 2012 10:07 am

Re: foscam 8905 setup

Post by woja »

Thank you for your reply. I've finally managed to view an image though so far only at 320x240 resolution, and I'm only seeing 1 frame displayed every 5 seconds (though I have "State: Idle - 8.45 fps" below the image). I'm very happy at this point, and can now tweak the settings from here to see how it can be improved.

On the source tab I have:

Remote Protocol: http
Remote Method: Simple
Remote Host Name: 192.168.1.220
Remote Host Port: 8085 (previously configured as this)
Remote Host Path: /videostream.cgi?user=admin&pwd=MyPass
Remote Image Colours: 24 bit colour
Capture Width: 320
Capture Height: 240
woja
Posts: 3
Joined: Thu Jan 05, 2012 10:07 am

Re: foscam 8905 setup

Post by woja »

Progress on the resolution: I can now set the monitor to be capture width 640 and capture height 480, though this would not initially work until I had appended "&resolution=32" to the remote host path - and strangely later, it did not need this.

Certainly the syntax "&resolution=8:640*480" in my initial post is wrong. It is simply "&resolution=8" (for 640x480) and "&resolution=32" (for 320x240). If &resolution is used, capture height and width must match or the image is not captured. It is of course simpler to just not use it, subject to the monitor working OK.
Locked