Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-08 00:14:59 +00:00
parent a812b3c467
commit f8bee5305f
111 changed files with 540 additions and 310 deletions

View File

@@ -18,24 +18,24 @@ source: https://github.com/tldr-pages/tldr.git
- List supported video formats and resolutions of a specific video device:
`v4l2-ctl --list-formats-ext --device {{path/to/video_device}}`
`v4l2-ctl --list-formats-ext {{[-d|--device]}} {{path/to/video_device}}`
- Get all details of a video device:
`v4l2-ctl --all --device {{path/to/video_device}}`
`v4l2-ctl --all {{[-d|--device]}} {{path/to/video_device}}`
- 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=1`
`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=1`
- 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_capture}}`
`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_capture}}`
- List all video device's controls and their values:
`v4l2-ctl --list-ctrls --device {{path/to/video_device}}`
`v4l2-ctl {{[-l|--list-ctrls]}} {{[-d|--device]}} {{path/to/video_device}}`
- Set the value of a video device control:
`v4l2-ctl --device {{path/to/video_device}} --set-ctrl={{control_name}}={{value}}`
`v4l2-ctl {{[-d|--device]}} {{path/to/video_device}} {{[-c|--set-ctrl]}} {{control_name}}={{value}}`