VGRABBJ(1)
๐ VGRABBJ(1) ๐
okay bestie, buckle up โ this is the manual page for vgrabbj, and it's lowkey iconic. it's giving "General Commands Manual" energy, and we're gonna go through every single line together. no skipping, no cap. โจ
๐ธ NAME ๐ธ
vgrabbj โ grab images from a v4l-compatible webcam ๐ธ
๐ฆ SYNOPSIS ๐ฆ
vgrabbj [options]
๐ DESCRIPTION ๐
So this manual page documents, like, briefly the vgrabbj command. brief queen. ๐
vgrabbj is a program that will grab images from any v4l-capable device which supports one of the rgb24, rgb32, yuv420, yuv420p, yuyv, uyvy, or yuv422 palettes, and saves the image as a .jpg, .png, or .pnm file. slay.
Optional (as in, if you want, no pressure bestie), it can timestamp the resulting image, and/or upload it to a ftp-server. Additionally, a daemon-mode is available to do the above regularly. she's consistent. she's reliable. she's main character energy. ๐
On startup, the default configuration file /etc/vgrabbj.conf is read and evaluated. If a configuration file is specified via the -c parameter (see below), that file is read and parsed. Values which are present in the default config file keep their values. Finally, the commandline is evaluated. If an option is presented more than once, the last in the commandline is taken. If no options given, vgrabbj tries to open the default v4l-device /dev/video0, grab an image and return it on /dev/stdout. So be aware. ๐ญ
ngl that last bit is a jumpscare โ running vgrabbj with zero options justโฆ yeets an image at your stdout. iconic behaviour, honestly.
โ๏ธ OPTIONS โ๏ธ
All options are either numeric values, strings, or booleans. If it is a boolean switch (e.g. no value/string shown after the switch), it plainly switches the current setting of that particular option. Remember, vgrabbj.conf is read first, so any option set to on or off there will be toggled by the commandline switch. fr fr, it's a toggle not an assign. ๐ซถ
-hโ Show summary of options and version number. ๐-c <filename>โ Specifies filename as alternative configuration file. ๐๏ธ-l <seconds>โ Daemonize & loop with seconds intervals (min. 1). ๐-L <microseconds>โ Daemonize & loop microseconds intervals (min. 1). Same as-lexcept you can control it more precisely. โจ-aโ Enable vgrabbj's brightness adjustment (default: disabled). To use vgrabbj's brightness adjustment, RGB24 support of the device is necessary. You may have to provide it to your device via the-Fparameter (see below). If your device does not support RGB24, this setting is silently ignored. ๐คซ (she's not gonna tell you. she'll just move on.)-q <quality>โ Sets the quality of a jpeg output to quality (1-100, default: 75). ๐-i <imagesize>โ Sets the imagesize of input device, where imagesize is one of:
sqcif= 128x96, qsif = 160x120,
qcif = 176x144, sif = 320x240,
cif = 352x288, vga = 640x480,
svga = 800x600, xga = 1024x768,
sxga = 1280x1024, uxga = 1600x1200,
(default: cif)
-w <width>โ Sets the width of the image to width. Needs-H. The v4l-device has to support the image width you set with this option. ๐-H <height>โ Sets the height of the image to height. Needs-w. The v4l-device has to support the image height you set with this option. ๐-o <format>โ Sets the output to format (eitherjpeg,png, orpnm, default:jpeg). ๐ผ๏ธ-f <filename>โ Output is written to filename (default:/dev/stdout). ๐พ-A <path+filename>โ Additional to the output of-fanother file is written to the named path+filename, whereas the whole may be formatted according tostrftime(2). This enables the creation of an archive of images. Currently, the output is only supported on the same filesystem as the original output. ๐๏ธ-E <value>โ Defines how many images shall be read until a copy for the archive is made. E.g.1means each image taken is also put in the archive.5would mean every fifth image taken is put in the archive. ๐งฎ-M <value>โ Sets the maximum number of images kept in the archive. If you defined 5 seconds for daemon mode, archive every image, you collect 720 images per hour. If you set this switch to 720 you would keep an hour of images in the archive. ๐ (math queen.)-d <device>โ Sets the input device to device (default:/dev/video0). ๐ท-s <device>โ This flag causes vgrabbj to print the v4l capabilities of<device>and exit. ๐-Cโ Causes vgrabbj to open the device only while image data is grabbed. This is helpful if you need access to the device besides vgrabbj. It's use is discouraged due to possible problems with memory fragmentation. Default is to keep the v4l-device open while vgrabbj is running. ๐ช
lowkey a "proceed with caution" flag โ the manpage literally says its use is discouraged. memory fragmentation said ๐ซ
-gโ Disables setting of the image size (see-i,-H, and-w. Necessary for certain v4l-devices which do not support to be set to a particular image size (e.g.IBM-usb-cam,QuickCam). For these devices you have to specify the size at module load time. ๐ โโ๏ธ-Sโ Switches colormap from BGR to RGB (or vice versa). Use if you have odd colors. ๐-Rโ Swaps left and right of the image like a mirror. ๐ช-Uโ Swaps top and bottom of the image like a mirror (e.g. for upside-down montage of the cam). ๐-Gโ Turns off use of mmap'ed memory. seevgrabbj.conf(5)for details. ๐ง-D <value>โ Sets the loglevel of vgrabbj. Valid for value are0,2,3,4,6,7(default:4).0means no messages at all,7is debug. Don't use7if you are running vgrabbj in daemon mode, it'll surely fill your syslog. Be aware, that loglevel7will also write your ftp-password (if defined invgrabbj.conf(5)) in the logfile! ๐จ
bestie. BESTIE. do not run -D 7 in daemon mode unless you want your syslog to become a novel, and do not run it at all if you care about your ftp password staying, y'know, secret. ๐
-nโ Disable the use of the temporary outputfile and write directly to the output-file specified with-f. Output to/dev/stdoutis always written directly without the use of a temporary file.
If a filename different from /dev/stdout was given with the -f parameter, vgrabbj defaults to use a temporary file called filename.tmp to write the image. This file is then renamed to filename to shorten the time period corrupt data may be read from filename. ๐
-Z 'commands'โ Ask vgrabbj to launch an external program. May be used to pass the picture through ImageMagick or others filters. The first%sinstance in the command line will be replaced with filename. IfUseTmpOutis On,'commands'will be run before the file is renamed. ๐ช-F <palette>โ Force the usage of the specified palette. If palette is not supported by either vgrabbj or the v4l-device, fallback to a palette supported by both is provided. If no common denominator is available, vgrabbj exits. See DESCRIPTION for details on palettes supported by vgrabbj. Possible values are (copy fromvideodev.h):
1 VIDEO_PALETTE_GREY Linear greyscale
2 VIDEO_PALETTE_HI240 High 240 cube (BT848)
3 VIDEO_PALETTE_RGB565 565 16 bit RGB
4 VIDEO_PALETTE_RGB24 24bit RGB
5 VIDEO_PALETTE_RGB32 32bit RGB
6 VIDEO_PALETTE_RGB555 555 15bit RGB
7 VIDEO_PALETTE_YUV422 YUV422 capture
8 VIDEO_PALETTE_YUYV
9 VIDEO_PALETTE_UYVY
10 VIDEO_PALETTE_YUV420
10 VIDEO_PALETTE_YUV411 YUV411 capture
11 VIDEO_PALETTE_RAW RAW capture (BT848)
12 VIDEO_PALETTE_YUV422P YUV 4:2:2 Planar
13 VIDEO_PALETTE_YUV411P YUV 4:1:1 Planar
14 VIDEO_PALETTE_YUV420P YUV 4:2:0 Planar
15 VIDEO_PALETTE_YUV410P YUV 4:1:0 Planar
16 VIDEO_PALETTE_PLANAR
17 VIDEO_PALETTE_COMPONENT
(no default, depends on v4l-device) ๐จ
-z <value>โ value images are grabbed and immediately discarded. Only the last image is written to the output. This might be helpful if your v4l-device needs to take a couple of images to auto-adjust to the current light. ๐ก (warm-up shots, basically. she needs a moment to find her lighting.)-Xโ Does not fork daemon process and keeps vgrabbj in daemon mode in foreground, attached to the terminal. Useful for debugging purpose. Not available in config file. ๐ฅ๏ธ
๐๏ธ HARDWARE CONTROL OPTIONS ๐๏ธ
With the following options you can control the hardware settings of your cam โ if it is supported by your cam. Be aware that these options might break your hardware, as there is no check on what values are available, allowed, and supported by your hardware. ๐ญ
no fr, no validation, no vibe check, no nothing. she will just send whatever number you give her straight to the hardware. be careful out there bestie. ๐ซฃ
-W <value>โ Whiteness definition. โช-r <value>โ Color definition. ๐จ-x <value>โ Contrast definition. โ-b <value>โ Brightness definition. ๐-u <value>โ Hue definition. ๐
โฐ TIMESTAMP OPTIONS โฐ
The following options are available only if vgrabbj was compiled with the freetype library available. If you set any one of these options on the commandline timestamp will be enabled with default values for all other options. โจ
-eโ Switches timestamp to be used or not. Default is off, but may be overridden by config-file, so just try to enable this switch if there is no timestamp in the resulting image. ๐ฐ๏ธ-t <filename>โ The TrueType font to be used for the timestamp (default/usr/X11R6/lib/X11/fonts/TrueType/Arialn.ttf) ๐ค-T <size>โ Set the fontsize to size for timestamp (3-100, default: 12). ๐ก-p "<format-str>"โ Defines the timestamp. format-str can be plain text or any strftime format and has to be enclosed with'""'(default:"%a, %e. %B %Y - %T"- seestrftime(3)for details) ๐-P <value>โ Alignment of the timestamp in the image. Possible value:
0 = upper left, 1 = upper right,
2 = lower left, 3 = lower right,
4 = upper center, 5 = lower center
(default: 1). ๐
-m <value>โ Defines the blend between font background and image (1-100, default: 60). ๐ซฅ-B <value>โ value pixels will be used as border around the timestamp string (1-255, default: 2). ๐ผ๏ธ
๐ก FTP OPTIONS ๐ก
There are no options for ftp-upload on the command line. This is due to the need to provide a password which would be visible via the ps(1) command. See vgrabbj.conf for details on how to set-up the ftp-upload option. Additionally, vgrabbj has to be compiled with libftp support. ๐
yeah she's protecting you from yourself here. passwords on the command line = everyone running ps sees them. so no. set it up in the config file like a grown-up. ๐
๐ BUGS ๐
%F in the archive time-string (year with century) causes memory corruption at a pentium-machine running vgrabbj (not validated). No further bugs are known at this time. ๐
not validated but also not cute. maybe don't %F in your archive time-string, bestie. ๐ซ
๐ SEE ALSO ๐
vgrabbj.conf(4), strftime(3), ps(1) ๐
๐ซถ AUTHOR ๐ซถ
This manual page was originally written by Michael Janssen <janssen@cns.uni.edu>, for the Debian GNU/Linux system and enhanced by Jens Gecius <devel@gecius.de>. ๐
and that's the whole thing, no notes. this page lives in the General Commands Manual as VGRABBJ(1), dated February 24, 2002 โ so like, vintage but make it iconic. mwah, go grab some images bestie ๐๐ธโจ
๐ฆ where this page comes from
- debian bookworm: vgrabbj 0.9.9-3+b1
- debian trixie: vgrabbj 0.9.9-4
- ubuntu jammy: vgrabbj 0.9.9-3
- ubuntu noble: vgrabbj 0.9.9-3build3
- ubuntu questing: vgrabbj 0.9.9-4
- ubuntu resolute: vgrabbj 0.9.9-4build1
- ubuntu stonking: vgrabbj 0.9.9-4build1
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms