w3cam is a straightforward CGI program that captures images from a video4linux device.
Installation is straightforward: just run 'configure & make install' and edit the installed w3cam.cgi.scf file for the runtime configuration. Once you've got it up and running, just call {url}/w3cam.cgi?help to start using it. And if you run into any issues, don't worry—the included documentation and HTML samples should provide all the answers you need.
One thing to keep in mind when using w3cam: be careful with the refresh parameter. If you're not the only one accessing the video, setting it to zero could lock the v4l device. Instead, consider using refresh=-1 or setting a default at runtime or compile time.
Overall, w3cam is a reliable and easy-to-use CGI for retrieving images from a video4linux device on your Linux machine. And with its latest release (version 0.7.2), which includes added default input and a new option for swapping RGB24 to BGR24, it's only getting better. Needed libraries include libz, libpng, and libjpeg.
Version 0.7.2: N/A