Midahed
August 7th, 2008, 05:24 PM
I've been struggling over the last few days to get Zoneminder working with my recently purchased Logitech Quickcam Pro 9000 webcam.
For other newbies who may be attempting to get this working, I can assure you that it does work.
Unlike some webcams that I've used in the past, the Pro 9000 seems equally happy in low light as it is in full daylight.
http://i24.tinypic.com/3483r0n.jpg
I've wanted to use the Zoneminder app for a while. It's a video security system with remote browsing of camera streams or stills, alerts via email, FTP of 'evidence', etc. However, I was initially put off by the sketchy information provided regarding support for webcams. The impression given is that old webcams work while new models don't.
My system is based on Ubuntu 8.04 Hardy. I already had Apache and MySQL installed on the system. I downloaded Zoneminder 1.22.3 from the repositories. There is a more recent release on the Zoneminder site, but it's still in beta testing.
Zoneminder doesn't directly support the most recent video4linux standard (v4l2). The Pro 9000 is v4l2 compliant, so the workround is to use mjpg_streamer and then set-up a 'remote' camera on Zoneminder which uses the output stream from mjpg_streamer.
The Zoneminder documentation states that if you can't get the webcam working with xawtv then it probably won't work with Zoneminder. However, this doesn't seem to apply if you have a v4l2 compliant webcam and are using mjpg_streamer to create the stream for Zoneminder. I never did get xawtv working with my webcam - maybe because xawtrv only supports v4l1...?
I eventually found that I had to launch mjpg_streamer with the command
mjpg_streamer -i "input_uvc.so -r 320x240 -f 6" -o "output_http.so -p 8080" -b
Having done that, browsing http://localhost:8080/?action=stream (http://localhost:8080/?action=stream) allowed me to see the webcam output. I had problems using Firefox 3 for this - it shows a single frame instead of the live video, but VNC works fine.
Having got to that point it was fairly easy to set-up the webcam in Zoneminder and get it working properly.
This isn't a how-to by any means, but it does highlight the things that tripped me up when I was trying to get it working.
This is a useful document on linux supported uvc devices:-
linux-uvc.berlios.de/#devices (http://linux-uvc.berlios.de/#devices)
This document (and the Excel/PDF document it refers to) is useful if you are considering a Logitech webcam.:-
www.quickcamteam.net/hcl/linux/logitech-webcams (http://www.quickcamteam.net/hcl/linux/logitech-webcams)
In the case of the Pro 9000 it turns out that there are lots of sub-models some of which have bugs while some are problem-free. Fortunately the part number of mine (the part number is only printed on the paper tag that's attached to the cable near the usb connector) showed mine to be one of the problem-free sub-models - a 861-464-0000.
Hope this might help another Zoneminder newbie. :)
For other newbies who may be attempting to get this working, I can assure you that it does work.
Unlike some webcams that I've used in the past, the Pro 9000 seems equally happy in low light as it is in full daylight.
http://i24.tinypic.com/3483r0n.jpg
I've wanted to use the Zoneminder app for a while. It's a video security system with remote browsing of camera streams or stills, alerts via email, FTP of 'evidence', etc. However, I was initially put off by the sketchy information provided regarding support for webcams. The impression given is that old webcams work while new models don't.
My system is based on Ubuntu 8.04 Hardy. I already had Apache and MySQL installed on the system. I downloaded Zoneminder 1.22.3 from the repositories. There is a more recent release on the Zoneminder site, but it's still in beta testing.
Zoneminder doesn't directly support the most recent video4linux standard (v4l2). The Pro 9000 is v4l2 compliant, so the workround is to use mjpg_streamer and then set-up a 'remote' camera on Zoneminder which uses the output stream from mjpg_streamer.
The Zoneminder documentation states that if you can't get the webcam working with xawtv then it probably won't work with Zoneminder. However, this doesn't seem to apply if you have a v4l2 compliant webcam and are using mjpg_streamer to create the stream for Zoneminder. I never did get xawtv working with my webcam - maybe because xawtrv only supports v4l1...?
I eventually found that I had to launch mjpg_streamer with the command
mjpg_streamer -i "input_uvc.so -r 320x240 -f 6" -o "output_http.so -p 8080" -b
Having done that, browsing http://localhost:8080/?action=stream (http://localhost:8080/?action=stream) allowed me to see the webcam output. I had problems using Firefox 3 for this - it shows a single frame instead of the live video, but VNC works fine.
Having got to that point it was fairly easy to set-up the webcam in Zoneminder and get it working properly.
This isn't a how-to by any means, but it does highlight the things that tripped me up when I was trying to get it working.
This is a useful document on linux supported uvc devices:-
linux-uvc.berlios.de/#devices (http://linux-uvc.berlios.de/#devices)
This document (and the Excel/PDF document it refers to) is useful if you are considering a Logitech webcam.:-
www.quickcamteam.net/hcl/linux/logitech-webcams (http://www.quickcamteam.net/hcl/linux/logitech-webcams)
In the case of the Pro 9000 it turns out that there are lots of sub-models some of which have bugs while some are problem-free. Fortunately the part number of mine (the part number is only printed on the paper tag that's attached to the cable near the usb connector) showed mine to be one of the problem-free sub-models - a 861-464-0000.
Hope this might help another Zoneminder newbie. :)