Page 1 of 1
I have problems to get away from "Idle - 0.00 fps"
Posted: Wed Sep 16, 2009 2:41 pm
by ELMIT
I am sure, it is just a ^&*() missing
I am new to Zoneminder.
I got three cameras, which are working with xawtv. These are USB cameras on /dev/video0 ~ 2. My system is Ubuntu on an AMD/64 and Ubuntu installed for me Zoneminder 1.22.3
I have added the three cameras (Monitor) with different functions Record, Mocord and Detect, just to find out how it will be different.
Montage shows me the three cameras without a picture, but each one has the right name.
I am sure I just need to start the cameras somehow, because the LED on the camera is off. ZoneMinder seems not to turn them on.
What am I missing?
Posted: Wed Sep 16, 2009 9:45 pm
by kingofkya
Check the zm logs in /tmp or /var/log
Posted: Thu Sep 17, 2009 1:04 am
by ELMIT
I am not sure what I am looking for, but:
/tmp/zmaudit.log ends with:
09/17/09 08:56:27.712419 zmaudit[10572].DBG [Found database monitor '5']
09/17/09 08:56:27.712608 zmaudit[10572].DBG [Got 0 events]
09/17/09 08:56:27.712760 zmaudit[10572].DBG [Found filesystem monitor '1']
09/17/09 08:56:27.712853 zmaudit[10572].DBG [Got 0 events]
09/17/09 08:56:27.712890 zmaudit[10572].DBG [Found filesystem monitor '4']
09/17/09 08:56:27.712956 zmaudit[10572].DBG [Got 0 events]
09/17/09 08:56:27.712991 zmaudit[10572].DBG [Found filesystem monitor '5']
09/17/09 08:56:27.713055 zmaudit[10572].DBG [Got 0 events]
/tmp/zmdc.log
09/17/09 09:00:04.935928 zmdc[10540].INF [Can't find child with pid of '12690']
09/17/09 09:00:04.936457 zmdc[10540].INF ['zmc -d /dev/video1' starting at 09/09/17 09:00:04, pid = 12690]
09/17/09 09:00:15.287703 zmdc[10540].INF ['zmc -d /dev/video0' stopping at 09/09/17 09:00:15]
09/17/09 09:00:15.552385 zmdc[10540].INF ['zmc -d /dev/video2' stopping at 09/09/17 09:00:15]
09/17/09 09:00:15.756071 zmdc[10540].INF ['zmc -d /dev/video1' stopping at 09/09/17 09:00:15]
09/17/09 09:00:26.044166 zmdc[10540].INF [Can't find child with pid of '12718']
09/17/09 09:00:26.044744 zmdc[10540].INF ['zmc -d /dev/video0' starting at 09/09/17 09:00:26, pid = 12718]
09/17/09 09:00:26.291501 zmdc[10540].INF [Can't find child with pid of '12721']
09/17/09 09:00:26.292027 zmdc[10540].INF ['zmc -d /dev/video2' starting at 09/09/17 09:00:26, pid = 12721]
/tmp/zmfilter.log
09/17/09 08:53:33.397125 zmfilter[10569].DBG [Reloading filters]
09/17/09 08:53:33.397631 zmfilter[10569].DBG [Sleeping for 60 seconds]
09/17/09 08:54:33.397812 zmfilter[10569].DBG [Sleeping for 60 seconds]
09/17/09 08:55:33.398027 zmfilter[10569].DBG [Sleeping for 60 seconds]
09/17/09 08:56:33.398233 zmfilter[10569].DBG [Sleeping for 60 seconds]
09/17/09 08:57:33.398467 zmfilter[10569].DBG [Sleeping for 60 seconds]
09/17/09 08:58:33.398635 zmfilter[10569].DBG [Sleeping for 60 seconds]
09/17/09 08:59:33.536343 zmfilter[10569].DBG [Reloading filters]
09/17/09 08:59:33.614302 zmfilter[10569].DBG [Sleeping for 60 seconds]
09/17/09 09:00:33.614488 zmfilter[10569].DBG [Sleeping for 60 seconds]
/tmp/zmpkg.log
09/17/09 08:41:22.287971 zmpkg[10530].INF [Command: start]
/tmp/zmwatch.log
09/17/09 09:02:44.486020 zmwatch[10574].INF [Restarting capture daemon for Entrance, shared memory not valid]
09/17/09 09:02:44.781124 zmwatch[10574].INF ['zmc -d /dev/video0' stopping at 09/09/17 09:02:44]
09/17/09 09:02:44.782338 zmwatch[10574].INF [Restarting capture daemon for Kitchendoor, shared memory not valid]
09/17/09 09:02:45.072241 zmwatch[10574].INF ['zmc -d /dev/video2' stopping at 09/09/17 09:02:45]
09/17/09 09:02:45.073433 zmwatch[10574].INF [Restarting capture daemon for Whiteboard, shared memory not valid]
09/17/09 09:02:45.347311 zmwatch[10574].INF ['zmc -d /dev/video1' stopping at 09/09/17 09:02:45]
/var/log/zm is empty
What does it tell?
bye
Ronald
Posted: Thu Sep 17, 2009 1:26 am
by ELMIT
Maybe that is also interesting. I have three cameras, but only two I can use with xawtv. Blow is a start of all three cameras with xawtv:
ronald@ronald-desktop:/var/log/zm$ xawtv -c /dev/video0 &
[1] 14363
ronald@ronald-desktop:/var/log/zm$ This is xawtv-3.95.dfsg.1, running on Linux/x86_64 (2.6.24-24-generic)
xinerama 0: 1280x1024+1280+0
xinerama 1: 1280x1024+0+0
X Error of failed request: XF86DGANoDirectVideoMode
Major opcode of failed request: 137 (XFree86-DGA)
Minor opcode of failed request: 1 (XF86DGAGetVideoLL)
Serial number of failed request: 13
Current serial number in output stream: 13
v4l-conf had some trouble, trying to continue anyway
Warning: Cannot convert string "-*-ledfixed-medium-r-*--39-*-*-*-c-*-*-*" to type FontStruct
ioctl: VIDIOC_G_STD(std=0x7ffff617f904 [PAL_G,PAL_M,PAL_60,NTSC_M,NTSC_M_JP,?,?,SECAM_B,SECAM_D,SECAM_G,SECAM_K,(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)]): Invalid argument
ioctl: VIDIOC_S_STD(std=0x0 []): Invalid argument
ronald@ronald-desktop:/var/log/zm$ xawtv -c /dev/video1 &
[2] 14415
ronald@ronald-desktop:/var/log/zm$ This is xawtv-3.95.dfsg.1, running on Linux/x86_64 (2.6.24-24-generic)
xinerama 0: 1280x1024+1280+0
xinerama 1: 1280x1024+0+0
X Error of failed request: XF86DGANoDirectVideoMode
Major opcode of failed request: 137 (XFree86-DGA)
Minor opcode of failed request: 1 (XF86DGAGetVideoLL)
Serial number of failed request: 13
Current serial number in output stream: 13
v4l-conf had some trouble, trying to continue anyway
Warning: Cannot convert string "-*-ledfixed-medium-r-*--39-*-*-*-c-*-*-*" to type FontStruct
ioctl: VIDIOC_G_STD(std=0x7fff20d47114 [PAL_G,PAL_I,PAL_M,NTSC_M,NTSC_M_JP,?,SECAM_G,SECAM_K,SECAM_L,?ATSC_8_VSB,(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)]): Invalid argument
ioctl: VIDIOC_S_STD(std=0x0 []): Invalid argument
ronald@ronald-desktop:/var/log/zm$ xawtv -c /dev/video2 &
[3] 14440
ronald@ronald-desktop:/var/log/zm$ This is xawtv-3.95.dfsg.1, running on Linux/x86_64 (2.6.24-24-generic)
xinerama 0: 1280x1024+1280+0
xinerama 1: 1280x1024+0+0
X Error of failed request: XF86DGANoDirectVideoMode
Major opcode of failed request: 137 (XFree86-DGA)
Minor opcode of failed request: 1 (XF86DGAGetVideoLL)
Serial number of failed request: 13
Current serial number in output stream: 13
v4l-conf had some trouble, trying to continue anyway
Warning: Cannot convert string "-*-ledfixed-medium-r-*--39-*-*-*-c-*-*-*" to type FontStruct
ioctl: VIDIOC_G_STD(std=0x7fff0957d944 [PAL_G,PAL_D1,PAL_M,PAL_60,NTSC_M,?,?,SECAM_B,SECAM_D,SECAM_G,SECAM_K,SECAM_L,ATSC_16_VSB,(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)]): Invalid argument
ioctl: VIDIOC_STREAMON(int=1): No space left on device
ioctl: VIDIOC_S_STD(std=0x0 []): Invalid argument
v4l2: oops: select timeout
Posted: Fri Sep 18, 2009 11:16 pm
by kingofkya
Check FAQ for Shared memory
09/17/09 09:02:45.073433 zmwatch[10574].INF [Restarting capture daemon for Whiteboard, shared memory not valid]
Posted: Fri Sep 18, 2009 11:27 pm
by ELMIT
Check FAQ for Shared memory
Thank you, I will check that!
1. BTW, I have three cameras. At the same time I can only see 2 cameras with 2x xawtv, while the third xawtv window is black. I see a /dev/video2
2. I need to add a more remote camera (next room). Which camera would you recommend? (IP or wireless IP? Which type works with Linux and with Zoneminder?)
Thanks for your help.
bye
Ronald
[/quote]
Posted: Sat Sep 19, 2009 12:43 am
by ELMIT
tail /tmp/zmwatch.log
09/19/09 08:38:12.262744 zmwatch[8809].INF [Restarting capture daemon for Entrance, shared memory not valid]
09/19/09 08:38:12.534487 zmwatch[8809].INF [Can't find child with pid of '12550'] at /usr/bin/zmwatch.pl line 119
09/19/09 08:38:12.536427 zmwatch[8809].INF [Restarting capture daemon for Whiteboard, shared memory not valid]
09/19/09 08:38:12.781168 zmwatch[8809].INF ['zmc -d /dev/video1' stopping at 09/09/19 08:38:12]
09/19/09 08:38:22.782907 zmwatch[8809].INF [Restarting capture daemon for Kitchendoor, shared memory not valid]
09/19/09 08:38:23.049869 zmwatch[8809].INF [Can't find child with pid of '12553'] at /usr/bin/zmwatch.pl line 119
09/19/09 08:38:23.051840 zmwatch[8809].INF [Restarting capture daemon for Entrance, shared memory not valid]
09/19/09 08:38:23.295338 zmwatch[8809].INF ['zmc -d /dev/video0' stopping at 09/09/19 08:38:23]
09/19/09 08:38:23.296564 zmwatch[8809].INF [Restarting capture daemon for Whiteboard, shared memory not valid]
09/19/09 08:38:23.565907 zmwatch[8809].INF [Can't find child with pid of '12556'] at /usr/bin/zmwatch.pl line 119
I added to the /etc/sysctl.conf
kernel.shmall = 134217728
# kernel.shmmax = 134217728
kernel.shmmax = 4194304000
ipcs -lm
------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 4096000
max total shared memory (kbytes) = 536870912
min seg size (bytes) = 1
sudo zmu -d /dev/video0 -q -v
Error, failed to get channel 0 attributes: Invalid argument
I run out of ideas. Any hints how to solve it?
bye
Ronald
Posted: Sat Sep 19, 2009 1:25 am
by ELMIT
The problem with the shared memory starts later (when it is restarting):
tail -f /var/log/messages
Sep 19 09:22:49 ronald-desktop zmc_dvideo0[15508]: INF [Debug Level = 0, Debug Log = <none>]
Sep 19 09:22:49 ronald-desktop zmdc[15460]: INF ['zmc -d /dev/video0' starting at 09/09/19 09:22:49, pid = 15508]
Sep 19 09:22:49 ronald-desktop zmdc[15460]: INF [Starting pending process, zmc -d /dev/video1]
Sep 19 09:22:49 ronald-desktop zmdc[15509]: INF ['zmc -d /dev/video1' started at 09/09/19 09:22:49]
Sep 19 09:22:49 ronald-desktop zmdc[15460]: INF ['zmc -d /dev/video1' starting at 09/09/19 09:22:49, pid = 15509]
Sep 19 09:22:49 ronald-desktop zmdc[15460]: INF [Starting pending process, zmc -d /dev/video2]
Sep 19 09:22:49 ronald-desktop zmc_dvideo1[15509]: INF [Debug Level = 0, Debug Log = <none>]
Sep 19 09:22:49 ronald-desktop zmdc[15460]: INF ['zmc -d /dev/video2' starting at 09/09/19 09:22:49, pid = 15510]
Sep 19 09:22:49 ronald-desktop zmdc[15510]: INF ['zmc -d /dev/video2' started at 09/09/19 09:22:49]
Sep 19 09:22:49 ronald-desktop zmc_dvideo2[15510]: INF [Debug Level = 0, Debug Log = <none>]
Sep 19 09:22:59 ronald-desktop zmdc[15460]: INF [Starting pending process, zmc -d /dev/video0]
Sep 19 09:22:59 ronald-desktop zmdc[15514]: INF ['zmc -d /dev/video0' started at 09/09/19 09:22:59]
Sep 19 09:22:59 ronald-desktop zmc_dvideo0[15514]: INF [Debug Level = 0, Debug Log = <none>]
Sep 19 09:22:59 ronald-desktop zmdc[15460]: INF ['zmc -d /dev/video0' starting at 09/09/19 09:22:59, pid = 15514]
Sep 19 09:22:59 ronald-desktop zmdc[15460]: INF [Starting pending process, zmc -d /dev/video1]
Sep 19 09:22:59 ronald-desktop zmdc[15515]: INF ['zmc -d /dev/video1' started at 09/09/19 09:22:59]
Sep 19 09:22:59 ronald-desktop zmdc[15460]: INF ['zmc -d /dev/video1' starting at 09/09/19 09:22:59, pid = 15515]
Sep 19 09:22:59 ronald-desktop zmdc[15460]: INF [Starting pending process, zmc -d /dev/video2]
Sep 19 09:22:59 ronald-desktop zmc_dvideo1[15515]: INF [Debug Level = 0, Debug Log = <none>]
Sep 19 09:22:59 ronald-desktop zmdc[15516]: INF ['zmc -d /dev/video2' started at 09/09/19 09:22:59]
Sep 19 09:22:59 ronald-desktop zmdc[15460]: INF ['zmc -d /dev/video2' starting at 09/09/19 09:22:59, pid = 15516]
Sep 19 09:22:59 ronald-desktop zmc_dvideo2[15516]: INF [Debug Level = 0, Debug Log = <none>]
Sep 19 09:23:15 ronald-desktop zmwatch[15505]: INF [Restarting capture daemon for Kitchendoor, shared memory not valid]
Sep 19 09:23:15 ronald-desktop zmdc[15519]: INF ['zmc -d /dev/video2' started at 09/09/19 09:23:15]
Sep 19 09:23:15 ronald-desktop zmc_dvideo2[15519]: INF [Debug Level = 0, Debug Log = <none>]
Sep 19 09:23:15 ronald-desktop zmdc[15460]: INF ['zmc -d /dev/video2' starting at 09/09/19 09:23:15, pid = 15519]
Sep 19 09:23:15 ronald-desktop zmwatch[15505]: INF ['zmc -d /dev/video2' starting at 09/09/19 09:23:15, pid = 15519]
Sep 19 09:23:15 ronald-desktop zmwatch[15505]: INF [Restarting capture daemon for Entrance, shared memory not valid]
Sep 19 09:23:16 ronald-desktop zmdc[15521]: INF ['zmc -d /dev/video0' started at 09/09/19 09:23:16]
Sep 19 09:23:16 ronald-desktop zmc_dvideo0[15521]: INF [Debug Level = 0, Debug Log = <none>]
Sep 19 09:23:16 ronald-desktop zmdc[15460]: INF ['zmc -d /dev/video0' starting at 09/09/19 09:23:16, pid = 15521]
Sep 19 09:23:16 ronald-desktop zmwatch[15505]: INF ['zmc -d /dev/video0' starting at 09/09/19 09:23:16, pid = 15521]
Sep 19 09:23:16 ronald-desktop zmwatch[15505]: INF [Restarting capture daemon for Whiteboard, shared memory not valid]
Sep 19 09:23:16 ronald-desktop zmdc[15523]: INF ['zmc -d /dev/video1' started at 09/09/19 09:23:16]
Sep 19 09:23:16 ronald-desktop zmc_dvideo1[15523]: INF [Debug Level = 0, Debug Log = <none>]
Sep 19 09:23:16 ronald-desktop zmdc[15460]: INF ['zmc -d /dev/video1' starting at 09/09/19 09:23:16, pid = 15523]
Sep 19 09:23:16 ronald-desktop zmwatch[15505]: INF ['zmc -d /dev/video1' starting at 09/09/19 09:23:16, pid = 15523]