How to Foscam 8904W8
How to Foscam 8904W8
zm installed in debian and 8904 connected over wifi to lan.from brauser picture is ok but zoneminder not.
Source type- remote
Function-modect
not fps set
Remote Protocol http
Remote Method simple
Remote Host Name 192.168.x.x
Remote Host Port 80
Remote Host Path /videostream.cgi?user=admin&pwd=
Remote Image Colours 24 bit color
Capture Width (pixels) 320
Capture Height (pixels) 240
Preserve Aspect Ratio
Orientation normal
from google chrome http://192.168.X.X/videostream.cgi?user=admin&pwd= picture is OK
.Please help
Source type- remote
Function-modect
not fps set
Remote Protocol http
Remote Method simple
Remote Host Name 192.168.x.x
Remote Host Port 80
Remote Host Path /videostream.cgi?user=admin&pwd=
Remote Image Colours 24 bit color
Capture Width (pixels) 320
Capture Height (pixels) 240
Preserve Aspect Ratio
Orientation normal
from google chrome http://192.168.X.X/videostream.cgi?user=admin&pwd= picture is OK
.Please help
Last edited by insippo on Fri Feb 04, 2011 7:19 pm, edited 2 times in total.
ipcs -m
zm:~# ipcs -m
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
nothing
how to fix this ?
Jan 29 16:33:58 zm zmc_m1[3219]: INF [Starting Capture]
Jan 29 16:33:58 zm zmc_m1[3219]: ERR [Invalid response status 404: Not Found]
Jan 29 16:33:58 zm zmc_m1[3219]: ERR [Unable to get response]
Jan 29 16:33:58 zm zmc_m1[3219]: ERR [Failed to capture image from monitor 1 (0/1)]
Jan 29 16:33:58 zm zmdc[3170]: ERR ['zmc -m 1' exited abnormally, exit status 255]
Jan 29 16:34:06 zm zmwatch[3202]: ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
Jan 29 16:34:06 zm zmwatch[3202]: ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
Jan 29 16:34:16 zm zmwatch[3202]: ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
Jan 29 16:34:16 zm zmwatch[3202]: ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
I put 2 lines to /etc/sysctl.conf
kernel.shmall = 134217728
kernel.shmmax = 134217728
user cant access to cam.I create new user ipkaamera and all works fine,maybe.
Remote Host Path /videostream.cgi?user=ipkaamera&pwd=
zm:~# ipcs -m
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
nothing
how to fix this ?
Jan 29 16:33:58 zm zmc_m1[3219]: INF [Starting Capture]
Jan 29 16:33:58 zm zmc_m1[3219]: ERR [Invalid response status 404: Not Found]
Jan 29 16:33:58 zm zmc_m1[3219]: ERR [Unable to get response]
Jan 29 16:33:58 zm zmc_m1[3219]: ERR [Failed to capture image from monitor 1 (0/1)]
Jan 29 16:33:58 zm zmdc[3170]: ERR ['zmc -m 1' exited abnormally, exit status 255]
Jan 29 16:34:06 zm zmwatch[3202]: ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
Jan 29 16:34:06 zm zmwatch[3202]: ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
Jan 29 16:34:16 zm zmwatch[3202]: ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
Jan 29 16:34:16 zm zmwatch[3202]: ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
I put 2 lines to /etc/sysctl.conf
kernel.shmall = 134217728
kernel.shmmax = 134217728
user cant access to cam.I create new user ipkaamera and all works fine,maybe.
Remote Host Path /videostream.cgi?user=ipkaamera&pwd=
Easier if you just run the script (mentioned on this forum down a bit ) and have it autoconfigure the memory for you.
The script has worked out just fine on my new ZM 2.4.X box.
I copied and pasted it from same thread a few weeks back.
The script has worked out just fine on my new ZM 2.4.X box.
I copied and pasted it from same thread a few weeks back.
Code: Select all
echo "--- Correcting SHM to 90% of memory..."
apt-get -y install coreutils bc
page_size=$(getconf PAGE_SIZE)
mem_bytes=$(awk '/MemTotal:/ { printf "%0.f",$2 * 1024}' /proc/meminfo)
mb=1048576
mem_bytes_mb=$(expr $mem_bytes / $mb)
shmmax=$(echo "$mem_bytes * 0.90" | bc | cut -f 1 -d '.')
shmmax_mb=$(expr $shmmax / $mb)
shmall=$(expr $mem_bytes / $page_size)
shmmax_cur=$(sysctl -n kernel.shmmax)
shmmax_cur_mb=$(expr $shmmax_cur / $mb)
shmall_cur=$(sysctl -n kernel.shmall)
echo "-- Total memory = $mem_bytes B = $mem_bytes_mb MB"
echo "-- Page size = $page_size B"
echo "-- Current kernel.shmmax = $shmmax_cur B = $shmmax_cur_mb MB"
echo "-- Current kernel.shmall = $shmall_cur pages"
if [ "$shmmax" -eq "$shmmax_cur" ] && [ "$shmall" -eq "$shmall_cur" ]; then
echo "-- Recommended shm values already set"
else
echo "-- Recommended: kernel.shmmax = $shmmax B = $shmmax_mb MB"
echo "-- Recommended: kernel.shmmall = $shmall pages"
file=/etc/sysctl.conf
if [ "`grep "^kernel\.shmmax" $file -c`" != "0" ]; then
echo "-- Replacing: kernel.shmmax in $file"
sed "s/^kernel\.shmmax.*$/kernel.shmmax=$shmmax/g" -i $file
else
echo "-- Adding: kernel.shmmax to $file"
echo kernel.shmmax=$shmmax >> $file
fi
if [ "`grep "^kernel\.shmall" /etc/sysctl.conf -c`" != "0" ]; then
echo "-- Replacing: kernel.shmall in $file"
sed "s/^kernel\.shmall.*$/kernel.shmall=$shmall/g" -i $file
else
echo "-- Adding: kernel.shmall to $file"
echo kernel.shmall=$shmall >> $file
fi
echo "-- Using: new sysctl values"
sysctl -p
This is a great script like arnold shwarznegger
automem.sh
--- Correcting SHM to 90% of memory...
Reading package lists... Done
Building dependency tree
Reading state information... Done
coreutils is already the newest version.
bc is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
-- Total memory = 261230592 B = 249 MB
-- Page size = 4096 B
-- Current kernel.shmmax = 134217728 B = 128 MB
-- Current kernel.shmall = 134217728 pages
./automem.sh: line 40: syntax error: unexpected end of file
you can make the Debian install script for zm ?Maybe git repository ?
automem.sh
--- Correcting SHM to 90% of memory...
Reading package lists... Done
Building dependency tree
Reading state information... Done
coreutils is already the newest version.
bc is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
-- Total memory = 261230592 B = 249 MB
-- Page size = 4096 B
-- Current kernel.shmmax = 134217728 B = 128 MB
-- Current kernel.shmall = 134217728 pages
./automem.sh: line 40: syntax error: unexpected end of file
you can make the Debian install script for zm ?Maybe git repository ?
My mother tongue is not english.Sorry if I do not speak correctly.
Looks like you are still missing something.
What HW CPU and how much memory do you have installed on the computer?
Are you just utilizing Foscam IP cams with no other cameras (IP or HW) ?
I had some major issues locking up the Foscam IP cams with Zoneminder.
I currently utilize 3 IP cams and 1 8 port DVR card (11 streams). I have one Panasonic IP cam which has been fine for many years running on ZM. I also recently added a Trendnet IP cam and that is running fine with ZM. The Foscam would lock up continously running a 640X480 stream with ZM until I tweaked down the buffers in ZM to the following settings:
Image Buffer Size (frames) - 10
Warmup Frames - 5
Pre Event Image Count - 5
Post Event Image Count - 5
The frame rate also varies from typically 4-5 to 15FPS.
I can lock up my Foscam with no ZM interaction making it do more than one function at a time. Because of the stated issues and only reading about wireless issues never even attempted to use any of the other "features" of the Foscam. Test your Foscam connection to ZM first wired to your network. The Foscam (and clones) is a nice toy attempting to be a wireless IP PT camera; nothing more.
What does IPCS show?
# ipcs
top
What HW CPU and how much memory do you have installed on the computer?
Are you just utilizing Foscam IP cams with no other cameras (IP or HW) ?
I had some major issues locking up the Foscam IP cams with Zoneminder.
I currently utilize 3 IP cams and 1 8 port DVR card (11 streams). I have one Panasonic IP cam which has been fine for many years running on ZM. I also recently added a Trendnet IP cam and that is running fine with ZM. The Foscam would lock up continously running a 640X480 stream with ZM until I tweaked down the buffers in ZM to the following settings:
Image Buffer Size (frames) - 10
Warmup Frames - 5
Pre Event Image Count - 5
Post Event Image Count - 5
The frame rate also varies from typically 4-5 to 15FPS.
I can lock up my Foscam with no ZM interaction making it do more than one function at a time. Because of the stated issues and only reading about wireless issues never even attempted to use any of the other "features" of the Foscam. Test your Foscam connection to ZM first wired to your network. The Foscam (and clones) is a nice toy attempting to be a wireless IP PT camera; nothing more.
What does IPCS show?
# ipcs
Code: Select all
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x7a6d0001 3440640 www-data 700 3072952 2
0x7a6d0002 3473409 www-data 700 12289192 2
0x7a6d0003 3506178 www-data 700 12289192 2
0x7a6d0004 3538947 www-data 700 12289192 2
0x7a6d0005 3571716 www-data 700 12289192 2
0x7a6d0006 3604485 www-data 700 12289192 2
0x7a6d0007 3637254 www-data 700 18433352 2
0x7a6d0008 3670023 www-data 700 36865192 1
0x7a6d0009 3702792 www-data 700 36865192 1
0x7a6d000a 3735561 www-data 700 9216952 1
0x7a6d000b 3768330 www-data 700 36865192 1
Code: Select all
09:48:05 up 5 days,
10:51, 1 user, load average: 5.91, 5.44, 5.26
Tasks: 119 total, 2 running, 117 sleeping, 0 stopped, 0 zombie
Cpu(s): 91.7%us, 2.0%sy, 0.0%ni, 5.3%id, 0.0%wa, 0.0%hi, 1.0%si, 0.0%st
Mem: 3344816k total, 3238824k used, 105992k free, 148616k buffers
Swap: 9936892k total, 36k used, 9936856k free, 1581660k cached
# cat /proc/sys/kernel/shmall
836202
# cat /proc/sys/kernel/shmmax
3082575052
ipcs
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x7a6d0001 32768 www-data 700 46081272 3
------ Semaphore Arrays --------
key semid owner perms nsems
0x00000000 98304 www-data 600 1
------ Message Queues --------
key msqid owner perms used-bytes messages
top
29453 www-data 20 0 172m 49m 45m R 31.9 19.7 5:27.80 zmc
24777 www-data 20 0 172m 50m 46m S 18.0 20.3 228:07.74 zma
1 root 20 0 2100 684 588 S 0.0 0.3 0:04.84 init
2 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kthreadd
cat /proc/sys/kernel/shmall
134217728
cat /proc/sys/kernel/shmmax
134217728
*-memory
description: System Memory
physical id: 1000
slot: System board or motherboard
size: 256MiB
capacity: 512MiB
*-cpu
description: CPU
product: Pentium III (Coppermine)
vendor: Intel Corp.
physical id: 400
bus info: cpu@0
version: 6.8.6
slot: Microprocessor
size: 800MHz
capacity: 1GHz
width: 32 bits
debian 5 without X
Image Buffer Size (frames) 50
Warmup Frames 25
Pre Event Image Count 30
Post Event Image Count 30
Stream Replay Image Buffer 1000
Alarm Frame Count 2
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x7a6d0001 32768 www-data 700 46081272 3
------ Semaphore Arrays --------
key semid owner perms nsems
0x00000000 98304 www-data 600 1
------ Message Queues --------
key msqid owner perms used-bytes messages
top
29453 www-data 20 0 172m 49m 45m R 31.9 19.7 5:27.80 zmc
24777 www-data 20 0 172m 50m 46m S 18.0 20.3 228:07.74 zma
1 root 20 0 2100 684 588 S 0.0 0.3 0:04.84 init
2 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kthreadd
cat /proc/sys/kernel/shmall
134217728
cat /proc/sys/kernel/shmmax
134217728
*-memory
description: System Memory
physical id: 1000
slot: System board or motherboard
size: 256MiB
capacity: 512MiB
*-cpu
description: CPU
product: Pentium III (Coppermine)
vendor: Intel Corp.
physical id: 400
bus info: cpu@0
version: 6.8.6
slot: Microprocessor
size: 800MHz
capacity: 1GHz
width: 32 bits
debian 5 without X
Image Buffer Size (frames) 50
Warmup Frames 25
Pre Event Image Count 30
Post Event Image Count 30
Stream Replay Image Buffer 1000
Alarm Frame Count 2
My mother tongue is not english.Sorry if I do not speak correctly.
insippo,
The reason that I asked you to try to connect the camera directly to the network via cable is that I can still see errors and partial full frames randomly which I believe was the issue that I was having with Zoneminder. Its difficult to see these errors when running Firefox or IE.
I believe though you can rule this issue out by connecting the camera directly to the wire.
The reason that I asked you to try to connect the camera directly to the network via cable is that I can still see errors and partial full frames randomly which I believe was the issue that I was having with Zoneminder. Its difficult to see these errors when running Firefox or IE.
I believe though you can rule this issue out by connecting the camera directly to the wire.