Xavier Olive research teaching python blog til cli

Control your webcam with v4l

16 September 2021

Following this tweet, I found out this option is actually not supported by my different webcam options, but the v4l-utils suite (stands for Video for Linux) seems actually precious.

Install with:

sudo apt install v4l-utils

List your webcam with:

v4l2-ctl --list-devices

Device 0 is usually the embedded webcam.

You may list control options with:

v4l2-ctl -d 0 -L

Then set options with:

v4l2-ctl --set-ctrl=exposure_auto=1
v4l2-ctl -c exposure_auto=1

Options must be set at every reboot.