aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-01-30 09:34:31 (GMT)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2019-01-30 09:34:31 (GMT)
commit9905d3c052f5f0a7d1d0fb072d1a478bb8f1bd75 (patch)
treed78e953230ceaba30d8b0e557c2b37957f240d3d
parent1c27cc415156d61e7e395febbfb227649122de1e (diff)
v4l2-ctl.1.in: add some example commands
Add some example commands to get started. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r--utils/v4l2-ctl/v4l2-ctl.1.in32
1 files changed, 32 insertions, 0 deletions
diff --git a/utils/v4l2-ctl/v4l2-ctl.1.in b/utils/v4l2-ctl/v4l2-ctl.1.in
index e60c2d4..3d90f71 100644
--- a/utils/v4l2-ctl/v4l2-ctl.1.in
+++ b/utils/v4l2-ctl/v4l2-ctl.1.in
@@ -122,6 +122,38 @@ Only set the result code, do not print any messages.
Sleep \fI<secs>\fR, call QUERYCAP and close the file handle.
.SH EXIT STATUS
On success, it returns 0. Otherwise, it will return the error code.
+.SH EXAMPLES
+Query the device information of /dev/video1:
+
+ v4l2-ctl -d1 -D
+
+Stream video using MMAP stream I/O from /dev/video0:
+
+ v4l2-ctl -d0 --stream-mmap
+
+Stream one frame of video from /dev/video0 and store it in a file:
+
+ v4l2-ctl --stream-mmap --stream-count=1 --stream-to=file.raw
+
+Stream video from /dev/video0 and stream it over the network:
+
+ v4l2-ctl --stream-mmap --stream-to-host <hostname>
+
+Use 'qvidcap -p' on the host to view the video.
+
+Stream video from /dev/video0 using DMABUFs exported from /dev/video2:
+
+ v4l2-ctl --stream-dmabuf --export-device /dev/video2
+
+Stream video from a memory-to-memory device:
+
+ v4l2-ctl --stream-mmap --stream-out-mmap
+
+Stream video from a capture video device (/dev/video1) to an output video device
+(/dev/video2):
+
+ v4l2-ctl -d1 --stream-mmap --out-device /dev/video2 --stream-out-dmabuf
+
.SH BUGS
This manual page is a work in progress.

Privacy Policy