用 v4l2-ctl 调节摄像头参数

查看摄像头支持的全部控制项,在终端调节亮度、对比度、变焦等。

Linux网络摄像头v4l2 摄像头控制摄像头低风险
先运行 v4l2-ctl -d /dev/video0 --list-ctrls 查看支持的参数,再运行 v4l2-ctl -d /dev/video0 --set-ctrl=brightness=150 调节。

01命令

命令
$ v4l2-ctl -d /dev/video0 --set-ctrl=brightness=150

02作用说明

v4l2-ctl 来自 v4l-utils 软件包,直接与 V4L2 驱动层通信,能访问图形界面经常隐藏的曝光、白平衡、云台转动和数码变焦等控制项。--list-ctrls 会显示每个参数的范围、默认值和当前值,--set-ctrl 即时修改。视频通话画面太暗而软件里找不到调节选项时,用它最方便。

03风险

风险低风险
使用条件v4l-utils package installed; a UVC webcam at /dev/video0

04撤销

✓无需撤销——该命令不会改变持久状态。

05来源

  • v4l2-ctl(1) — Ubuntu manpage
    Ubuntu · community · 2026-09-17
    依据: Ubuntu manpage documents --list-ctrls to display all supported controls and --set-ctrl to change them
  • v4l2-ctl(1) — Arch Linux manual
    Arch Linux · community · 2026-09-17
    依据: Arch manual documents v4l2-ctl's -d device selection and --set-ctrl / --list-ctrls for control manipulation

最后验证: 2026-09-19 · 分类: 媒体