.TH "V4L2-CTL" "1" "March 2015" "v4l-utils 1.12.3" "User Commands" .SH NAME v4l2-ctl - An application to control video4linux drivers .SH SYNOPSIS .B v4l2-ctl [\fI-h\fR] [\fI-d \fR] [many other options] .SH DESCRIPTION The v4l2-ctl tool is used to control video4linux devices, either video, vbi, radio or swradio, both input and output. It is able to control almost any aspect of such devices covering the full V4L2 API. .SH OPTIONS .TP \fB\-d\fR, \fB\-\-device\fR=\fI\fR Use device as the V4L2 device. If is a number, then /dev/video is used. .TP \fB\-v\fR, \fB\-\-verbose\fR Turn on verbose reporting. .TP \fB\-w\fR, \fB\-\-wrapper\fR Use the libv4l2 wrapper library for all V4L2 device accesses. By default v4l2-ctl will directly access the V4L2 device, but with this option all access will go via this wrapper library. .TP \fB\-h\fR, \fB\-\-help\fR Prints the help message. .TP \fB\-\-help\-io\fR Prints the help message for all options that get/set/list inputs and outputs, both video and audio. .TP \fB\-\-help\-misc\fR Prints the help message for miscellaneous options. .TP \fB\-\-help\-overlay\fR Prints the help message for all options that get/set/list overlay and framebuffer formats. .TP \fB\-\-help\-sdr\fR Prints the help message for all options that get/set/list software defined radio formats. .TP \fB\-\-help\-selection\fR Prints the help message for all options that deal with selections (cropping and composing). .TP \fB\-\-help\-stds\fR Prints the help message for all options that deal with SDTV standards and Digital Video timings. .TP \fB\-\-help\-streaming\fR Prints the help message for all options that deal with streaming. .TP \fB\-\-help\-tuner\fR Prints the help message for all options that deal with tuners and modulators. .TP \fB\-\-help\-vbi\fR Prints the help message for all options that get/set/list VBI formats. .TP \fB\-\-help\-vidcap\fR Prints the help message for all options that get/set/list video capture formats. .TP \fB\-\-help\-vidout\fR Prints the help message for all options that get/set/list video output formats. .TP \fB\-\-help\-edid\fR Prints the help message for all options that get/set EDIDs. .TP \fB\-\-help\-all\fR Prints the help message for all options. .TP \fB--all\fR Display all information available. .TP \fB-C\fR, \fB--get-ctrl\fR=\fI\fR[,\fI\fR...] Get the value of the controls [VIDIOC_G_EXT_CTRLS]. .TP \fB-c\fR, \fB--set-ctrl\fR=\fI\fR=\fI\fR[,\fI\fR=\fI\fR...] Set the value of the controls [VIDIOC_S_EXT_CTRLS]. .TP \fB-D\fR, \fB--info\fR Show driver info [VIDIOC_QUERYCAP]. .TP \fB-e\fR, \fB--out-device\fR=\fI\fR Use device \fI\fR for output streams instead of the default device as set with --device. If \fI\fR starts with a digit, then /dev/video\fI\fR is used. .TP \fB-k\fR, \fB--concise\fR Be more concise if possible. .TP \fB-l\fR, \fB--list-ctrls\fR Display all controls and their values [VIDIOC_QUERYCTRL]. .TP \fB-L\fR, \fB--list-ctrls-menus\fR Display all controls and their menus [VIDIOC_QUERYMENU]. .TP \fB-r\fR, \fB--subset\fR=\fI\fR[,\fI\fR,\fI\fR]+ The subset of the N-dimensional array to get/set for control \fI\fR, for every dimension an (\fI\fR, \fI\fR) tuple is given. .TP \fB--list-devices\fR List all v4l devices. .TP \fB--log-status\fR Log the board status in the kernel log [VIDIOC_LOG_STATUS]. .TP \fB--get-priority\fR Query the current access priority [VIDIOC_G_PRIORITY]. .TP \fB--set-priority\fR=\fI\fR Set the new access priority [VIDIOC_S_PRIORITY]. \fI\fR is 1 (background), 2 (interactive) or 3 (record). .TP \fB--silent\fR Only set the result code, do not print any messages. .TP \fB--sleep\fR=\fI\fR Sleep \fI\fR, call QUERYCAP and close the file handle. .SH EXIT STATUS On success, it returns 0. Otherwise, it will return the error code. .SH BUGS This manual page is a work in progress. Bug reports or questions about this utility should be sent to the linux-media@vger.kernel.org mailinglist.