Page 1 of 1

No Video on new install

Posted: Thu Jun 02, 2005 7:13 am
by hockeyStop
I have been playing with this software for a couple of days now. Had some snags when I initially set up the software but it is working now. My problem, however, is getting video out of the camera onto the webpage. I have tried many different ways of doing this but this is what I have so far. When I use standard jpeg streaming in mozilla or IE (I know IE doesnt work well, I only have a version of windows running in VMWare for testing) I get a broken link. When I use cambozola I get the java loading up but it finally says, "Failed to connect to server (denied?)".
I am sure I have not provided enough info and I apologize. It is late and I need to get up early in the morning. Let me know what you would like to see or any suggestions on settings. I certainly appreciate your help.

Caleb

Posted: Thu Jun 02, 2005 8:59 am
by zoneminder
Firstly check that you have your web server set up for cgi correctly and that you have installed the zms binaries into a cgi-able directory. That's often the reason for this kind of thing.

Phil

Posted: Thu Jun 02, 2005 4:27 pm
by hockeyStop
Thank you for such a fast reply. I am wondering, what is involved in setting up the cgi-bin correctly in apache2? My cgi-bin is in the root of my zm directory (i.e. http://site/zm/cgi-bin) Is that my problem? Can I merely enable a cgi-bin in the zm directory?

Posted: Thu Jun 02, 2005 7:41 pm
by cordel
Normaly the actual locatation on the disk is

Code: Select all

/var
     |
     /www
         |
          /cgi-bin     (zms is located here unless you are using the rpm)
         |
          /html        (all web files go here unless you are using the rpm)
apache wiil normaly have a configuration simular to this and the cgi dir is alised to appear like is under the /html directory. Under IE it will not handle mjpeg so you need to use cambozola or mpeg to view. Firefox on the otherhand can view mjpg and don't require either. I would try to see if you can get access to a computer with firefox loaded and see if you can see anything. If it works then you know zms is working. Also check your logs and see if there are any errors (the zm, apache, and system logs).
Regards,
Cordel

Posted: Fri Jun 03, 2005 7:52 pm
by hockeyStop
I appreciate all of the responses, I have used them and used some posts on the forum from the past to get to where I am now. I fixed apache so that it uses the cgi-bin now. I had some errors with missing perl modules, I fixed those as well. Now, I am in a position where I get no errors except this when I try to use Cambozola:
(I cant see all the way to the left but the first word I can see is code) Code: 500 for URL: https://192.168.12.10/sec/cgi-bin/zms?m ... uth=fl36f5....


If I try just still images I get a broken link still. Is my cgi-bin still not working right? Is it my camera? It is a Logitech Quickcam Express that I am using for testing so that I can demo the product. When I cat /dev/video0 I get data printed to the screen so I think the cam is working. Again, thank you.

Caleb

Here is zmdc.log:
Server starting at 05/06/03 13:18:14
'zmc -d 0' starting at 05/06/03 13:18:20, pid = 9095
'zmc -d 0' started at 05/06/03 13:18:20
'zmfilter.pl' started at 05/06/03 13:18:29
'zmfilter.pl' starting at 05/06/03 13:18:29, pid = 9159
'zmaudit.pl -d 900 -y' started at 05/06/03 13:18:42
'zmaudit.pl -d 900 -y' starting at 05/06/03 13:18:42, pid = 9166
'zmwatch.pl' started at 05/06/03 13:18:55
'zmwatch.pl' starting at 05/06/03 13:18:55, pid = 9172
'zmupdate.pl -c' started at 05/06/03 13:19:06
'zmupdate.pl -c' starting at 05/06/03 13:19:06, pid = 9183


Here is zmwatch.log:
Watchdog starting at 05/06/03 13:19:05
Watchdog pausing for 30 seconds
Restarting capture daemon ('/usr/local/bin/zmdc.pl restart zmc -d 0'), time sinc
e last capture 71 seconds (1117829975-1117829904)
'zmc -d 0' started at 05/06/03 13:19:47
'zmc -d 0' starting at 05/06/03 13:19:47, pid = 9269


Here the end of /var/log/messages:
Jun 3 12:52:20 localhost -- MARK --
Jun 3 13:12:20 localhost -- MARK --
Jun 3 13:18:20 localhost zmc_d0[9095]: INF [Debug Level = 0, Debug Log = <none>]
Jun 3 13:18:21 localhost kernel: /root/spca5xx-20050601/drivers/usb/spca561.h: [spca561_init:680] Find spca561 USB Product ID 928
Jun 3 13:18:23 localhost zmc_d0[9095]: INF [Starting Capture]
Jun 3 13:18:24 localhost kernel: usb 1-2: USB disconnect, address 2
Jun 3 13:19:47 localhost zmc_d0[9095]: INF [Got TERM signal, exiting]
Jun 3 13:19:47 localhost zmc_d0[9269]: INF [Debug Level = 0, Debug Log = <none>]
Jun 3 13:19:47 localhost zmc_d0[9271]: INF [Debug Level = 0, Debug Log = <none>]
Jun 3 13:19:48 localhost kernel: usb 1-2: new full speed USB device using address 3
Jun 3 13:19:49 localhost kernel: /root/spca5xx-20050601/drivers/usb/spca5xx.c: USB SPCA5XX camera found.Logitech QuickCam Express II(SPCA561A
)
Jun 3 13:19:49 localhost kernel: /root/spca5xx-20050601/drivers/usb/spca5xx.c: [spca5xx_probe:8495] Camera type GBRG
Jun 3 13:19:54 localhost zmc_d0[9334]: INF [Debug Level = 0, Debug Log = <none>]
Jun 3 13:19:54 localhost kernel: /root/spca5xx-20050601/drivers/usb/spca561.h: [spca561_init:680] Find spca561 USB Product ID 928
Jun 3 13:19:57 localhost zmc_d0[9334]: INF [Starting Capture]
Jun 3 13:20:07 localhost usb.agent[9308]: spca5xx: already loaded


Here is /var/log/apache2/error.log:
[Thu Jun 02 17:14:03 2005] [notice] Apache/2.0.54 (Debian GNU/Linux) mod_python/3.1.3 Python/2.3.5 PHP/4.3.10-15 mod_ssl/2.0.54 OpenSSL/0.9.7e
mod_perl/1.999.21 Perl/v5.8.4 configured -- resuming normal operations
[Fri Jun 03 13:10:47 2005] [error] [client 192.168.12.2] File does not exist: /var/www/favicon.ico
[Fri Jun 03 13:10:48 2005] [error] [client 192.168.12.2] File does not exist: /var/www/favicon.ico
[Fri Jun 03 13:11:06 2005] [error] [client 192.168.12.2] Premature end of script headers: zms, referer: https://192.168.12.10/sec/index.php?vi
ew=watchfeed&mode=&mid=1&scale=100&control=

Posted: Fri Jun 03, 2005 8:02 pm
by cordel
I think you may still have a path issue. If you would like I'm PMing you contact info so that we can work it out. Is the box available from the internet? If so I could ssh in and help you work it out.
Regards,
Cordel

Posted: Sat Jun 04, 2005 1:34 am
by hockeyStop
At this point I think it may be the camera that I am using. It is this:
Logitech QuickCam Express II(SPCA561A)

As you can see I am using the SPCA driver. There may be problems with this driver. This is in dmesg:

/root/spca5xx-20050601/drivers/usb/spca5xx.c: VIDIOCMCAPTURE: invalid format (1)
/root/spca5xx-20050601/drivers/usb/spca5xx.c: VIDIOCMCAPTURE: invalid format (1)
/root/spca5xx-20050601/drivers/usb/spca5xx.c: VIDIOCMCAPTURE: invalid format (1)
/root/spca5xx-20050601/drivers/usb/spca5xx.c: VIDIOCMCAPTURE: invalid format (1)
/root/spca5xx-20050601/drivers/usb/spca5xx.c: VIDIOCMCAPTURE: invalid format (1)
/root/spca5xx-20050601/drivers/usb/spca5xx.c: VIDIOCMCAPTURE: invalid format (1)
/root/spca5xx-20050601/drivers/usb/spca5xx.c: VIDIOCMCAPTURE: invalid format (1)
/root/spca5xx-20050601/drivers/usb/spca5xx.c: VIDIOCMCAPTURE: invalid format (1)
/root/spca5xx-20050601/drivers/usb/spca5xx.c: VIDIOCMCAPTURE: invalid format (1)
/root/spca5xx-20050601/drivers/usb/spca5xx.c: VIDIOCMCAPTURE: invalid format (1)
/root/spca5xx-20050601/drivers/usb/spca5xx.c: VIDIOCMCAPTURE: invalid format (1)
/root/spca5xx-20050601/drivers/usb/spca5xx.c: VIDIOCMCAPTURE: invalid format (1)
usb 1-1: new full speed USB device using address 3
/root/spca5xx-20050601/drivers/usb/spca5xx.c: USB SPCA5XX camera found.Logitech QuickCam Express II(SPCA561A)
/root/spca5xx-20050601/drivers/usb/spca5xx.c: [spca5xx_probe:8495] Camera type GBRG
/root/spca5xx-20050601/drivers/usb/spca561.h: [spca561_init:680] Find spca561 USB Product ID 928
/root/spca5xx-20050601/drivers/usb/spca561.h: [spca561_init:680] Find spca561 USB Product ID 928
/root/spca5xx-20050601/drivers/usb/spca561.h: [spca561_init:680] Find spca561 USB Product ID 928
/root/spca5xx-20050601/drivers/usb/spca561.h: [spca561_init:680] Find spca561 USB Product ID 928
/root/spca5xx-20050601/drivers/usb/spcausb.h: reg write: error -71
/root/spca5xx-20050601/drivers/usb/spca561.h: [spca561_init:680] Find spca561 USB Product ID 928
/root/spca5xx-20050601/drivers/usb/spcausb.h: reg write: error -110
/root/spca5xx-20050601/drivers/usb/spca561.h: [spca561_init:680] Find spca561 USB Product ID 928
/root/spca5xx-20050601/drivers/usb/spca561.h: [spca561_init:680] Find spca561 USB Product ID 928
/root/spca5xx-20050601/drivers/usb/spcausb.h: reg write: error -110
/root/spca5xx-20050601/drivers/usb/spca561.h: [spca561_init:680] Find spca561 USB Product ID 928
/root/spca5xx-20050601/drivers/usb/spcausb.h: reg write: error -110
/root/spca5xx-20050601/drivers/usb/spcausb.h: reg write: error -110
/root/spca5xx-20050601/drivers/usb/spcausb.h: reg write: error -110
/root/spca5xx-20050601/drivers/usb/spcausb.h: reg write: error -110
/root/spca5xx-20050601/drivers/usb/spca5xx.c: Set packet size: set interface error
hub 1-0:1.0: port 1 disabled by hub (EMI?), re-enabling...
usb 1-1: USB disconnect, address 3
usb 1-1: new full speed USB device using address 4
/root/spca5xx-20050601/drivers/usb/spca5xx.c: USB SPCA5XX camera found.Logitech QuickCam Express II(SPCA561A)
/root/spca5xx-20050601/drivers/usb/spca5xx.c: [spca5xx_probe:8495] Camera type GBRG
/root/spca5xx-20050601/drivers/usb/spca561.h: [spca561_init:680] Find spca561 USB Product ID 928
/root/spca5xx-20050601/drivers/usb/spca561.h: [spca561_init:680] Find spca561 USB Product ID 928
/root/spca5xx-20050601/drivers/usb/spca561.h: [spca561_init:680] Find spca561 USB Product ID 928