v4l2-ctl
v4l2-ctl is a command-line tool used for controlling Video for Linux 2 (V4L2) devices. It allows users to interact with their video capture devices through the command-line interface.
With v4l2-ctl, users can set various parameters such as brightness, contrast, saturation, and sharpness for their cameras. They can also adjust settings like white balance, exposure, and focus. This tool provides a way to change these settings and experiment with different configurations to achieve the desired video quality.
v4l2-ctl allows users to query and display information about their video devices, such as the supported formats, supported controls, and current settings. This helps users understand the capabilities of their camera and make informed decisions about configuring it.
Additionally, v4l2-ctl can be used to capture frames or stream video from the device directly to a file or other applications. It provides options to specify the output format, resolution, and frame rate during video capture.
This tool is commonly used by developers, system administrators, and hobbyists who work with V4L2 devices. It offers a versatile and efficient way to control, configure, and capture video from supported devices via the command-line interface.
v4l2-ctl is a powerful utility that adds flexibility to working with V4L2 devices, making it easier to fine-tune video settings, gather information, and capture video streams.
List of commands for v4l2-ctl:
-
v4l2-ctl:tldr:2bde2 v4l2-ctl: 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}try on your machineexplain this command
-
v4l2-ctl:tldr:52c9f v4l2-ctl: Get all details of a video device.$ v4l2-ctl --all --device ${path-to-video_device}try on your machineexplain this command
-
v4l2-ctl:tldr:5ca8f v4l2-ctl: List all video devices.$ v4l2-ctl --list-devicestry on your machineexplain this command
-
v4l2-ctl:tldr:958fa v4l2-ctl: 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=1try on your machineexplain this command
-
v4l2-ctl:tldr:977e9 v4l2-ctl: List supported video formats and resolutions of a specific video device.$ v4l2-ctl --list-formats-ext --device ${path-to-video_device}try on your machineexplain this command
-
v4l2-ctl:tldr:bfdcb v4l2-ctl: List all video device's controls and their values.$ v4l2-ctl --list-ctrls --device ${-path-to-video_device}try on your machineexplain this command
-
v4l2-ctl:tldr:ec37f v4l2-ctl: List supported video formats and resolutions of default video device `/dev/video0`.$ v4l2-ctl --list-formats-exttry on your machineexplain this command