USB Surveillance Camera
This article needs to be fixed and/or categorized. | |
Please contribute by fixing this article or other that needs to be fixed. |
LinuxMCE does not talk directly to a USB camera. Instead, an intermediate script called Motionwrapper constantly captures images from the camera, detecting motion and saving the images and AVI-timelapse videos.
Install a USB Camera
- Login to LinuxMCE Admin Website-->Show devices in tree
- A list of top-level devices is shown, click on the name of the device to which the camera is connected.
- click "Create Child Device."
- Enter a name for the new device in the "Description" field and click "Pick Device Template"
- Select "Motion Wrapper" from the dropdown "Device Template" menu.
- A new device with the name you selected is created. and you are taken to its properies page,
- Make sure that on the "properties" page that the correct device data "(null),1,1,8" is displayed for the USB camera.
- "Create Child Device;" Create a child device per steps { x - x} using the "Generic Analog Camera" template.
- The device data for the new camera device must be configured, set the "Device" as a single digit, Device Number of /dev/videoX.
- Devices are initialized when the router starts up. You must go to Wizard-->Restart-->"Quick Reload Router." You will be prompted to regenerate the screens.
Troubleshooting
You may have to ensure that you have the correct driver for your USB camera. That process is beyond the scope of this document. The gspca driver supports over 200 cameras however, and is included in the current linux-header package. Therefore, many cameras will work automatically.
You may need a symlink from /lib/modules/2.6.x.x-pluto-2-686/build to /usr/src/linux-headers-2.6.x.x-pluto-2-686. This assumes that your device driver creates a /dev/videox file. In addition your webcam might create a /dev/audiox using the snd-usb-audio driver.