• Install: sudo apt install v4l-utils
  • Tell everything about camera: v4l2-ctl --all
  • List all devices: v4l2-ctl --list-devices ## /dev/videoX device listed first is usually the one to use
  • List controls: v4l2-ctl -d /dev/video4 --list-ctrls
  • Adjust zoom: v4l2-ctl -d /dev/video4 -c zoom_absolute=150

More commands

 1v4l2-ctl -d /dev/video0 --list-ctrls-menus  
 2v4l2-ctl -d /dev/video0 --set-ctrl=sharpness=140  
 3v4l2-ctl -d /dev/video0 --set-ctrl=focus_auto=0  
 4v4l2-ctl -d /dev/video0 --set-ctrl=focus_absolute=10  
 5v4l2-ctl -d /dev/video0 --set-ctrl=power_line_frequency=1  
 6v4l2-ctl -d /dev/video0 --set-ctrl=exposure_auto=1  
 7v4l2-ctl -d /dev/video0 --set-ctrl=exposure_absolute=550  
 8v4l2-ctl -d /dev/video2 --set-ctrl=contrast=130  
 9v4l2-ctl -d /dev/video0 --set-ctrl=
10v4l2-ctl -d /dev/video0 -set-ctrl=white_balance_temperature_auto=0  
11v4l2-ctl -d /dev/video0 --set-ctrl=white_balance_temperature=3300  
12v4l2-ctl -d /dev/video0 --set-ctrl=gain=50  
13v4l2-ctl -d /dev/video0 --set-ctrl=zoom_absolute=150  

References

  1. https://wiki.kurokesu.com/books/recipes/page/v4l2
  2. https://www.datainmotion.dev/2020/03/fixing-linux-webcams.html
  3. https://www.kurokesu.com/main/2016/01/16/manual-usb-camera-settings-in-linux/
  4. https://gist.github.com/paolobarbolini/01bee1fe55ddfcdf690d3e8c1876229a