.TH webcam 1 "(c) 1998-2000 Gerd Knorr" .SH NAME webcam - capture images and upload them to a webserver using ftp .SH SYNOPSIS .B webcam [ config file ] .SH DESCRIPTION .B webcam captures images from a video4linux device like bttv, annotates them and and uploads them to a webserver using ftp in a endless loop. .SH CONFIGURATION At startup .B webcam reads the configuration from the given config file or ~/.webcamrc if none is specified in the command line. .P The config file has at least two sections. The "grab" section holds the capture parameters. Any other section describes where the image should be uploaded. Older versions used "ftp" as name for that section. Recently the webcam utility got support for multiple connections, thus any section name is accepted and you can have more than one ftp section (you have to use another name for each section througth, name them by upload servers for example). .P Here is an sample config file (the given values are the defaults): .nf [grab] device = /dev/video0 driver = libv4l text = "webcam %Y-%m-%d %H:%M:%S" infofile = filename fg_red = 255 fg_green = 255 fg_blue = 255 width = 320 height = 240 delay = 3 wait = 0 input = composite1 norm = pal rotate = 0 top = 0 left = 0 bottom = -1 right = -1 quality = 75 trigger = 0 once = 0 [ftp] host = www user = webcam pass = xxxxxx dir = public_html/images file = webcam.jpeg tmp = uploading.jpeg passive = 1 debug = 0 auto = 0 local = 0 ssh = 0 .fi The annotation .B text is processed with strftime. Check the strftime(3) or date(1) manpage to see how you can format the timestamps. The text can also be read from a extern file (use .B infofile for that). The default color for the text overlay is white (RGB=255,255,255). Entries in the range of 0 through 255 for .B fg_red, .B fg_green, and .B fg_blue can be used to define a different color. Likewise .B bg_red, .B bg_green, and .B bg_blue can be used to set the background color (which defaults to transparent). .P .B input is the video source (TV/composite/whatever), .B norm the TV norm. .B delay is the delay between two images in seconds. .B wait is the initial delay before the first image is grabbed (some cameras need some time for adapting to lightning, thus don't return images with reasonable quality within the first few seconds ...). .B quality is the JPEG quality for the stored images. .P .B top, bottom, left, and .B right in the grab section allow cropping the image after it is grabbed. They should satisfy 0<=top .SH COPYRIGHT Copyright (C) 1997-2002 Gerd Knorr .br This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.