Difference between revisions of "Uvc"
m (Updated the streamer commandline for V2 changes) |
m (→UVC Streamer: Mention uvc_stream under the compile help) |
||
Line 28: | Line 28: | ||
# Download and install the UVC Streamer software | # Download and install the UVC Streamer software | ||
## utar/gz the downloaded archive and type 'make' this will compile an executable called 'mjpg_streamer' | ## utar/gz the downloaded archive and type 'make' this will compile an executable called 'mjpg_streamer' (version 2) or uvc_stream (version 1) | ||
## no 'make install' is needed (or available in the makefile). | ## no 'make install' is needed (or available in the makefile). | ||
#Just run the compiled mjpg_streamer from the current dir | #Just run the compiled mjpg_streamer (or uvc_stream) from the current dir | ||
## this will gather and run the webcam with its defaults | ## this will gather and run the webcam with its defaults | ||
## run 'mjpg_streamer --help' for help | ## run 'mjpg_streamer --help' (or uvc_stream) for help | ||
* If your ZM setup does not have enough buffer memory... you might need to start the streamer software with the following options '-f 1 -r 320x240 -b' | * If your ZM setup does not have enough buffer memory... you might need to start the streamer software with the following options '-f 1 -r 320x240 -b' | ||
**This sets the 320x240 resolution at 6 fps, or else ZoneMinder might not get the stream. | **This sets the 320x240 resolution at 6 fps, or else ZoneMinder might not get the stream. |
Revision as of 02:50, 24 October 2007
Introduction
This page describes how to get a camera that uses the new UVC V4L2 drivers to work in ZoneMinder. This document does not describe in detail how to install the required software, just what is required. Please consult your linux distrobution's package install documentation.
Camera's found to work using this method
Below is a list of cameras found to work using this method. If you get a camera working with this method, please add the camera details here.
- Logitech Orbit Sphere (new version) USB device ID: 046d:08c2
- Logitech Quickcam Pro 5000 USB device ID: 046d:08c5
Required Software
- Linux UVC drivers http://linux-uvc.berlios.de/
- UVC_streamer http://www.naaa.de/uvc_streamer.htm
- Web Browser that allows you to view streams (Firefox works well) http://www.firefox.com/
- Working install of ZoneMinder
Procedure
Kernel Drivers
Download and install the UVC kernel drivers
UVC Streamer
- Download and install the UVC Streamer software
- utar/gz the downloaded archive and type 'make' this will compile an executable called 'mjpg_streamer' (version 2) or uvc_stream (version 1)
- no 'make install' is needed (or available in the makefile).
- Just run the compiled mjpg_streamer (or uvc_stream) from the current dir
- this will gather and run the webcam with its defaults
- run 'mjpg_streamer --help' (or uvc_stream) for help
- If your ZM setup does not have enough buffer memory... you might need to start the streamer software with the following options '-f 1 -r 320x240 -b'
- This sets the 320x240 resolution at 6 fps, or else ZoneMinder might not get the stream.
mjpg_streamer -i "input_uvc.so -r 320x240 -f 6" -o "output_http.so -p 8080" -b
or for the original release version 1
uvc_stream -f 1 -r 320x240 -b
Check if the stream works. Use firefox and point it to the ip address and port of the machine that runs the streamer (default for UVC_streamer is 8080). If you use firefox on the same machine where the streamer runs, you can use localhost.
If your setup is working, then you will see a stream of the camera.
ZoneMinder
- Browse to the ZoneMinder control panel.
- Define a new Monitor, and use the following settings:
Under 'General' tab:
Source type: remote
Under 'Source' tab:
Remote host Name: <ip of host with camera> or if on same host than zoneminder use localhost
Remote host port: 8080 (or if you used another port with uvc_stream put it in here)
Remote Host path: ANYTHING - i just used /file.jpg
Capture witdth: 320
Capture height: 240
Save, and your UVC camera is ready to use.