Page 1 of 1

ZM Installed, but problems getting it to work.

Posted: Thu Jan 22, 2004 7:15 pm
by mikep
I am using zoneminder 1.17 with apache2 and php4.

I can go to the site, it asks for a login and password, I set one up in the config, but no matter which password and username combination I use, it always lets me in, and the options button, the add new monitor button, etc all don't work (are greyed out). The only button that works is "Refresh". At the top it says
"Logged In As , configured for high bandwidth" it doesnt say a username. Is my auth broken? how do you set it up in the first place, I can't seem to find anything that describes how that all works, or is configured.

Next, I tried running webcam, it gives me
video4linux webcam v1.5 - (c) 1998-2002 Gerd Knorr
grabber config:
size 320x240 [24 bit TrueColor (LE: bgr)]
input (null), norm (null), jpeg quality 75
rotate=0, top=0, left=0, bottom=240, right=320
webcam 2004-01-22 14:07:33

so that leads me to believe the input is working.

next I tried zmc --device 0

I get:
Jan 22 14:05:59 zoneminder zmc-d0[6188]: INF [Debug Level = 0, Debug Log = ]
Jan 22 14:05:59 zoneminder zmc-d0[6188]: INF [Got 0 monitors]
Jan 22 14:05:59 zoneminder zmc-d0[6188]: ERR [No monitors found]
in the syslog.

Anyone have any clue what the login problem is?, is the zmc failing because I havent logged in properly, and thus cant add the monitor, so I cant get zmc to attach to it?

Any help would be greatly appreciated, I'm out of ideas here.

Thanks

-Mike

Re: ZM Installed, but problems getting it to work.

Posted: Thu Jan 22, 2004 7:28 pm
by mikep
oops, I didnt have the .webcamrc configured, but I did configure it and i got a color image from the capture device, so that is working OK... output follows.

video4linux webcam v1.5 - (c) 1998-2002 Gerd Knorr
grabber config:
size 320x240 [24 bit TrueColor (LE: bgr)]
input composite1, norm ntsc, jpeg quality 75
rotate=0, top=0, left=0, bottom=240, right=320
ftp config [ftp]:
user@localhost:public_html/images
uploading.jpeg => webcam.jpeg
"webcam 2004-01-22 14:22:50"
ftp: connected to localhost

Re: ZM Installed, but problems getting it to work.

Posted: Thu Jan 22, 2004 7:29 pm
by mikep
oops, I didnt have the .webcamrc configured, but I did configure it and i got a color image from the capture device, so that is working OK... output follows.

video4linux webcam v1.5 - (c) 1998-2002 Gerd Knorr
grabber config:
size 320x240 [24 bit TrueColor (LE: bgr)]
input composite1, norm ntsc, jpeg quality 75
rotate=0, top=0, left=0, bottom=240, right=320
ftp config [ftp]:
user@localhost:public_html/images
uploading.jpeg => webcam.jpeg
"webcam 2004-01-22 14:22:50"
ftp: connected to localhost

Re: ZM Installed, but problems getting it to work.

Posted: Thu Jan 22, 2004 7:29 pm
by mikep
oops, I didnt have the .webcamrc configured, but I did configure it and i got a color image from the capture device, so that is working OK... output follows.

video4linux webcam v1.5 - (c) 1998-2002 Gerd Knorr
grabber config:
size 320x240 [24 bit TrueColor (LE: bgr)]
input composite1, norm ntsc, jpeg quality 75
rotate=0, top=0, left=0, bottom=240, right=320
ftp config [ftp]:
user@localhost:public_html/images
uploading.jpeg => webcam.jpeg
"webcam 2004-01-22 14:22:50"
ftp: connected to localhost

Re: ZM Installed, but problems getting it to work.

Posted: Thu Jan 22, 2004 7:30 pm
by mikep
oops, sorry for the triple reply, I hit refresh. doh.

Re: ZM Installed, but problems getting it to work.

Posted: Thu Jan 22, 2004 7:39 pm
by victor_diago
Hi mike, its really a bug in version 1.17.0... i had problems with it to...


The username you need to enter is not that wich you have configured in the instalation, but the defualt

User : admin
Pass : admin

then you can change it after....

the login bug in 1.17.0 was fixed yesterday in versio 1.17.1, so, i recommend you to upgrade it..

But before, try the admin/admin user and see if that works.. it sohould be ok

Re: ZM Installed, but problems getting it to work.

Posted: Thu Jan 22, 2004 7:43 pm
by mikep
excellent!!!!

now I'm getting these errors in syslog when I try to monitor:
Jan 22 14:38:10 zoneminder zmu[6519]: ERR [Shared memory not initialised by capture daemon]
Jan 22 14:38:10 zoneminder zmu[6521]: ERR [Shared memory not initialised by capture daemon]
Jan 22 14:38:14 zoneminder zmu[6529]: ERR [Shared memory not initialised by capture daemon]
Jan 22 14:38:15 zoneminder zmu[6535]: ERR [Shared memory not initialised by capture daemon]
Jan 22 14:38:17 zoneminder zmu[6539]: ERR [Shared memory not initialised by capture daemon]
Jan 22 14:38:20 zoneminder zmu[6545]: ERR [Shared memory not initialised by capture daemon]
Jan 22 14:38:21 zoneminder zmu[6551]: ERR [Shared memory not initialised by capture daemon]

any ideas on that one?

Re: ZM Installed, but problems getting it to work.

Posted: Thu Jan 22, 2004 7:51 pm
by mikep
output of ipcs -m is:
(root)@zoneminder:~# ipcs -m

------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x7a6d2001 0 www-data 700 30720448 0

is that wrong?

Re: ZM Installed, but problems getting it to work.

Posted: Thu Jan 22, 2004 7:57 pm
by mikep
I ran zmc --device 0
and got:
Jan 22 14:52:42 zoneminder zmc-d0[7230]: INF [Debug Level = 0, Debug Log = ]
Jan 22 14:52:42 zoneminder zmc-d0[7230]: INF [Got 1 monitors]
Jan 22 14:52:42 zoneminder zmc-d0[7230]: INF [X:0]
Jan 22 14:52:42 zoneminder zmc-d0[7230]: INF [Y:0]
Jan 22 14:52:42 zoneminder zmc-d0[7230]: INF [W:320]
Jan 22 14:52:42 zoneminder zmc-d0[7230]: INF [H:240]
Jan 22 14:52:42 zoneminder zmc-d0[7230]: ERR [Failed to set window attributes: Invalid argument]

Re: ZM Installed, but problems getting it to work.

Posted: Thu Jan 22, 2004 8:12 pm
by mikep
update:
commented out lines 82-86 in zm_local_camera.cpp:

/*
if( ioctl( m_videohandle, VIDIOCSWIN, &vid_win ) )
{
Error(( "Failed to set window attributes: %s", strerror(errno) ));
if ( (bool)config.Item( ZM_STRICT_VIDEO_CONFIG ) ) exit(-1);
}
*/
that makes the cam work now, BUT the input is the TV tuner, not the composite1, any idea how to set the input?
and where?