CmdID

CmdID / Commands

v4l2-ctl

Control video devices. tldr-pages

On Linux

Opens CmdID with your command. It is read in your browser and sent nowhere.

List all video devices

v4l2-ctl --list-devicesIdentify

List supported video formats and resolutions of default video device /dev/video0

v4l2-ctl --list-formats-extIdentify

List supported video formats and resolutions of a specific video device

v4l2-ctl --list-formats-ext --device path/to/video_deviceIdentify

Get all details of a video device

v4l2-ctl --all --device path/to/video_deviceIdentify

Capture a JPEG photo with a specific resolution from video device

v4l2-ctl --device path/to/video_device --set-fmt-video=width=width,height=height,pixelformat=MJPG --stream-mmap --stream-to=path/to/output.jpg --stream-count=1Identify

Capture a raw video stream from video device

v4l2-ctl --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_captureIdentify

List all video device's controls and their values

v4l2-ctl --list-ctrls --device path/to/video_deviceIdentify

Set the value of a video device control

v4l2-ctl --device path/to/video_device --set-ctrl control_name=valueIdentify