Forrest logo
back to the v4l2-ctl tool

v4l2-ctl:tldr:bfdcb

v4l2-ctl: List all video device's controls and their values.
$ v4l2-ctl --list-ctrls --device ${-path-to-video_device}
try on your machine

The command "v4l2-ctl" is used to control and configure Video4Linux devices on Linux systems. It is commonly used to manipulate settings and parameters of webcams and other video capture devices.

Here is an explanation of each part of the command:

  • "v4l2-ctl": This is the actual command that you are executing. It invokes the v4l2-ctl tool.

  • "--list-ctrls": This is an option provided by the v4l2-ctl tool. It instructs the tool to list all available controls that can be adjusted on the specified video device.

  • "--device ${-path-to-video_device}": This is another option provided by v4l2-ctl. It specifies the path to the video device that you want to control. You should replace "${-path-to-video_device}" with the actual path to your video device. For example, if your video device is located at "/dev/video0", you would replace "${-path-to-video_device}" with "/dev/video0".

By executing this command, you will receive a list of all the available controls and parameters that can be adjusted on the specified video device. This can include settings like brightness, contrast, saturation, exposure, etc.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the v4l2-ctl tool