Options (4)
-A, --list-devicesbooleanList all video devices
Example:
v4l2-ctl {{[-A|--list-devices]}}-d, --devicebooleanList supported video formats and resolutions of a specific video device
Example:
v4l2-ctl --list-formats-ext {{[-d|--device]}} {{path/to/video_device}}-l, --list-ctrlsbooleanList all video device's controls and their values
Example:
v4l2-ctl {{[-l|--list-ctrls]}} {{[-d|--device]}} {{path/to/video_device}}-c, --set-ctrlbooleanSet the value of a video device control
Example:
v4l2-ctl {{[-d|--device]}} {{path/to/video_device}} {{[-c|--set-ctrl]}} {{control_name}}={{value}}Examples (8)
List all video devices
v4l2-ctl [-A|--list-devices]List supported video formats and resolutions of default video device `/dev/video0`
v4l2-ctl --list-formats-extList supported video formats and resolutions of a specific video device
v4l2-ctl --list-formats-ext [-d|--device] path/to/video_deviceGet all details of a video device
v4l2-ctl --all [-d|--device] path/to/video_deviceCapture a JPEG photo with a specific resolution from video device
v4l2-ctl [-d|--device] path/to/video_device --set-fmt-video=width=width,height=height,pixelformat=MJPG --stream-mmap --stream-to=path/to/output.jpg --stream-count=1Capture a raw video stream from video device
v4l2-ctl [-d|--device] path/to/video_device --set-fmt-video=width=width,height=height,pixelformat=format --stream-mmap --stream-to=path/to/output --stream-count=number_of_frames_to_captureList all video device's controls and their values
v4l2-ctl [-l|--list-ctrls] [-d|--device] path/to/video_deviceSet the value of a video device control
v4l2-ctl [-d|--device] path/to/video_device [-c|--set-ctrl] control_name=valuemade by @shridhargupta | data from tldr-pages