Skip to content

Instantly share code, notes, and snippets.

@fmacpro
Last active May 12, 2022 18:09
Show Gist options
  • Save fmacpro/b2bbc1f2c3e8f9a5b89131b62b6878cd to your computer and use it in GitHub Desktop.
Save fmacpro/b2bbc1f2c3e8f9a5b89131b62b6878cd to your computer and use it in GitHub Desktop.
Raspbian USB Webcam commands
# set manual exposure
v4l2-ctl --set-ctrl exposure_auto=1
# set long exposure
v4l2-ctl --set-ctrl exposure_absolute=10000
# set maxiumum brightness
v4l2-ctl --set-ctrl brightness=64
# set minimum contrast
v4l2-ctl --set-ctrl contrast=0
# list all controls
v4l2-ctl --list-ctrls
brightness (int) : min=-64 max=64 step=1 default=-8193 value=64
contrast (int) : min=0 max=50 step=1 default=57343 value=0
saturation (int) : min=0 max=100 step=1 default=57343 value=32
hue (int) : min=-100 max=100 step=1 default=-8193 value=0
white_balance_temperature_auto (bool) : default=1 value=1
gamma (int) : min=100 max=300 step=1 default=57343 value=100
power_line_frequency (menu) : min=0 max=2 default=1 value=1
white_balance_temperature (int) : min=2800 max=6500 step=10 default=61432 value=4500 flags=inactive
sharpness (int) : min=0 max=10 step=1 default=57343 value=2
backlight_compensation (int) : min=0 max=4 step=1 default=57343 value=1
exposure_auto (menu) : min=0 max=3 default=0 value=3
exposure_absolute (int) : min=5 max=10000 step=1 default=166 value=166 flags=inactive
brightness (int) : min=-64 max=64 step=1 default=-8193 value=64
contrast (int) : min=0 max=50 step=1 default=57343 value=0
saturation (int) : min=0 max=100 step=1 default=57343 value=32
hue (int) : min=-100 max=100 step=1 default=-8193 value=0
white_balance_temperature_auto (bool) : default=1 value=1
gamma (int) : min=100 max=300 step=1 default=57343 value=100
power_line_frequency (menu) : min=0 max=2 default=1 value=1
white_balance_temperature (int) : min=2800 max=6500 step=10 default=61432 value=4500 flags=inactive
sharpness (int) : min=0 max=10 step=1 default=57343 value=2
backlight_compensation (int) : min=0 max=4 step=1 default=57343 value=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment