LoginSignup
12

More than 5 years have passed since last update.

[Ubuntu] USBカメラの情報を確認、変更するコマンドまとめ

Posted at

準備

  • v4l2-utilsのインストール
$ apt-get install v4l-utils

コマンド一覧

  • デバイスの情報を表示
$ v4l2-ctl -d /dev/video0 --all
  • 対応解像度の表示
$ v4l2-ctl -d /dev/video0 --list-formats-ext
  • 解像度の変更
$ v4l2-ctl -d /dev/video0 --set-fmt-video=width=<width>,height=<height> --set-parm=<Hz>
  • コントロール一覧の表示
$ v4l2-ctl -d /dev/video0 --list-ctrls-menu
  • コントロールの変更
$ v4l2-ctl -d /dev/video0 -c <ctrl>=<val>

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12