v4l2-ctl
Verified for current stable LTS
V4l2 Ctl Command: Capture Raw Video Stream
Use for capture raw video stream with V4l2 Ctl. Exact CLI syntax to capture raw video stream using V4l2 Ctl.
When to use this: Use for capture raw video stream with V4l2 Ctl.
Command Syntax
v4l2-ctl -d <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 <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> Live Command Builder
Final Command
v4l2-ctl -d <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> Command Breakdown
-d- Command Option
- Tool-specific option used by this command invocation.
--set-fmt-video=width=<width>,height=<height>,pixelformat=<format>- Command Option
- Tool-specific option used by this command invocation.
--stream-mmap- Command Option
- Tool-specific option used by this command invocation.
--stream-to=<path/to/output>- Command Option
- Tool-specific option used by this command invocation.
--stream-count=<number_of_frames_to_capture>- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to capture raw video stream using V4l2 Ctl.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
V4l2 Ctl Command: Capture Jpeg Photo With Resolution
v4l2-ctl -d <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 Command: Get Video Device Details v4l2-ctl --all -d <path/to/video_device> V4l2 Ctl Command: List All Video Devices v4l2-ctl -A V4l2 Ctl Command: List Supported Video Formats Default Device v4l2-ctl --list-formats-ext V4l2 Ctl Command: List Supported Video Formats Specific Device v4l2-ctl --list-formats-ext -d <path/to/video_device>