Install v4l-utils on Debian-based distros

v4l-utils is a popular package that helps manipulate and control video device on Linux. Install this package on Debian-based distros is pretty much easy.

$ sudo apt-get update
$ sudo apt-get install v4l-utils

After installation, some of v4l2 utilities should be available to use, you can confirm by issuing the following command,

$ v4l2-ctl
General/Common options:
— all display all information available
-C, — get-ctrl=<ctrl>[,<ctrl>…]
get the value of the controls [VIDIOC_G_EXT_CTRLS]
-c, — set-ctrl=<ctrl>=<val>[,<ctrl>=<val>…]
set the value of the controls [VIDIOC_S_EXT_CTRLS]
-D, — info show driver info [VIDIOC_QUERYCAP]
-d, — device=<dev> use device <dev> instead of /dev/video0
if <dev> starts with a digit, then /dev/video<dev> is used
-e, — out-device=<dev> use device <dev> for output streams instead of the
default device as set with — device
if <dev> starts with a digit, then /dev/video<dev> is used
-h, — help display this help message

Have fun :)