Red Hat Linux 7 Unleashed

Red Hat Linux 7 Unleashed

By William Ball

Using a Web Cam

Web cams have been around for a while, and are supported under Linux. Some models use the parallel port for transmission of video data, usually at a reduced resolution, such as 320x240 pixels and 256 colors. Web cams will vary in quality, capability, and support (one problem being that some manufacturers have refused to release specifications so that drivers may be developed).

Newer models now use Universal Serial Bus (USB) for transmission of video data. Although a number of USB Web cams are supported under Linux, you'll generally need to track down, download, install, and configure software drivers for Red Hat Linux to support your Web cam.

One older type of parallel port-based Web cam that is supported is the Zora Web cam (part of White Pine's CuSeeMe software package for Windows, or available separately). You can find its standalone Linux driver, the mcam client, at http://www.panteltje.demon.nl/mcan/.

Installing mcam is as simple as downloading the source tarball, decompressing the source code, then typing


   # ./make_x

Running the client is even easier. First, properly attach the camera to your computer, then type


   # ./mcam

After you press Enter, type 4,5,9 to cycle the camera from low to high power, and then to display continuous frame-grabbing (as shown in Figure 8.21).

08fig21.gif

Figure 8.21 The mcam client works with X11 and Linux to display continuous frames from a Web cam—even of penguins.

You'll also find that Red Hat Linux directly supports the IBM C-It USB video camera. Read the file ibmcam.txt under the /usr/share/doc/kernel-doc-2.2.16/usb directory for more details. If you browse to http://webcam.sourceforge.net, you'll see a list of at least a dozen other supported USB Web cams that work by using special Video4Linux drivers. And if you'd prefer a standalone Web cam that works independently via Ethernet, consider Axis Communications'2100 Network Camera (which uses embedded Linux). Browse to http://www.axis.com for details.

Share ThisShare This

Informit Network