V4l2-ctl
From IVTV
Usage:
Common options:
--all display all information available
-B, --get-fmt-sliced-vbi
query the sliced VBI capture format [VIDIOC_G_FMT]
-b, --set-fmt-sliced-vbi=<mode>
set the sliced VBI capture format to <mode> [VIDIOC_S_FMT]
<mode> is a comma separated list of:
off: turn off sliced VBI (cannot be combined with other modes)
teletext: teletext (PAL/SECAM)
cc: closed caption (NTSC)
wss: widescreen signal (PAL/SECAM)
vps: VPS (PAL/SECAM)
-C, --get-ctrl=<ctrl>[,<ctrl>...]
get the value of the controls [VIDIOC_G_EXT_CTRLS]
-c, --set-ctrl=<ctrl>=<val>[,<ctrl>=<val>...]
set the controls to the values specified [VIDIOC_S_EXT_CTRLS]
-D, --info show driver info [VIDIOC_QUERYCAP]
-d, --device=<dev> use device <dev> instead of /dev/video0
if <dev> is a single digit, then /dev/video<dev> is used
-F, --get-freq query the frequency [VIDIOC_G_FREQUENCY]
-f, --set-freq=<freq>
set the frequency to <freq> MHz [VIDIOC_S_FREQUENCY]
-h, --help display this help message
-I, --get-input query the video input [VIDIOC_G_INPUT]
-i, --set-input=<num>
set the video input to <num> [VIDIOC_S_INPUT]
-l, --list-ctrls display all controls and their values [VIDIOC_QUERYCTRL]
-L, --list-ctrls-menus
display all controls, their values and the menus [VIDIOC_QUERYMENU]
-N, --list-outputs display video outputs [VIDIOC_ENUMOUTPUT]
-n, --list-inputs display video inputs [VIDIOC_ENUMINPUT]
-O, --get-output query the video output [VIDIOC_G_OUTPUT]
-o, --set-output=<num>
set the video output to <num> [VIDIOC_S_OUTPUT]
-Q, --list-audio-outputs
display audio outputs [VIDIOC_ENUMAUDOUT]
-q, --list-audio-inputs
display audio inputs [VIDIOC_ENUMAUDIO]
-S, --get-standard
query the video standard [VIDIOC_G_STD]
-s, --set-standard=<num>
set the video standard to <num> [VIDIOC_S_STD]
<num> can be a numerical v4l2_std value, or it can be one of:
pal-X (X = B/G/H/N/Nc/I/D/K/M/60) or just 'pal' (V4L2_STD_PAL)
ntsc-X (X = M/J/K) or just 'ntsc' (V4L2_STD_NTSC)
secam-X (X = B/G/H/D/K/L/Lc) or just 'secam' (V4L2_STD_SECAM)
--list-standards display supported video standards [VIDIOC_ENUMSTD]
-T, --get-tuner query the tuner settings [VIDIOC_G_TUNER]
-t, --set-tuner=<mode>
set the audio mode of the tuner [VIDIOC_S_TUNER]
Possible values: mono, stereo, lang2, lang1, bilingual
--list-formats display supported video formats [VIDIOC_ENUM_FMT]
-V, --get-fmt-video
query the video capture format [VIDIOC_G_FMT]
-v, --set-fmt-video=width=<x>,height=<y>
set the video capture format [VIDIOC_S_FMT]
--verbose turn on verbose ioctl error reporting.
Uncommon options:
--get-fmt-video-out
query the video output format [VIDIOC_G_FMT]
--set-fmt-video-out=width=<x>,height=<y>
set the video output format [VIDIOC_S_FMT]
--get-fmt-overlay
query the video overlay format [VIDIOC_G_FMT]
--get-sliced-vbi-cap
query the sliced VBI capture capabilities [VIDIOC_G_SLICED_VBI_CAP]
--get-sliced-vbi-out-cap
query the sliced VBI output capabilities [VIDIOC_G_SLICED_VBI_CAP]
--get-fmt-sliced-vbi-out
query the sliced VBI output format [VIDIOC_G_FMT]
--set-fmt-sliced-vbi-out=<mode>
set the sliced VBI output format to <mode> [VIDIOC_S_FMT]
<mode> is a comma separated list of:
off: turn off sliced VBI (cannot be combined with other modes)
teletext: teletext (PAL/SECAM)
cc: closed caption (NTSC)
wss: widescreen signal (PAL/SECAM)
vps: VPS (PAL/SECAM)
--get-fmt-vbi query the VBI capture format [VIDIOC_G_FMT]
--get-fmt-vbi-out query the VBI output format [VIDIOC_G_FMT]
--get-crop-video
query the video capture crop window [VIDIOC_G_CROP]
--set-crop-video=top=<x>,left=<y>,width=<w>,height=<h>
set the video capture crop window [VIDIOC_S_CROP]
--get-audio-input query the audio input [VIDIOC_G_AUDIO]
--set-audio-input=<num>
set the audio input to <num> [VIDIOC_S_AUDIO]
--get-audio-output query the audio output [VIDIOC_G_AUDOUT]
--set-audio-output=<num>
set the audio output to <num> [VIDIOC_S_AUDOUT]
--list-audio-outputs
display audio outputs [VIDIOC_ENUMAUDOUT]
--list-audio-inputs
display audio inputs [VIDIOC_ENUMAUDIO]
Expert options: --streamoff turn the stream off [VIDIOC_STREAMOFF] --streamon turn the stream on [VIDIOC_STREAMOFF] --log-status log the board status in the kernel log [VIDIOC_LOG_STATUS]
v4l2-ctl --list-ctrls User Controls
brightness (int) : min=0 max=255 step=1 default=128 value=128 flags=slider
contrast (int) : min=0 max=127 step=1 default=64 value=63 flags=slider
saturation (int) : min=0 max=127 step=1 default=64 value=63 flags=slider
hue (int) : min=-128 max=127 step=1 default=0 value=0 flags=slider
volume (int) : min=0 max=65535 step=655 default=58880 value=58880 flags=slider
balance (int) : min=0 max=65535 step=655 default=32768 value=32768 flags=slider
bass (int) : min=0 max=65535 step=655 default=32768 value=32768 flags=slider
treble (int) : min=0 max=65535 step=655 default=32768 value=32768 flags=slider
mute (bool) : default=0 value=0
MPEG Encoder Controls
stream_type (menu) : min=0 max=5 default=0 value=0 flags=update
stream_vbi_format (menu) : min=0 max=1 default=0 value=1
audio_sampling_frequency (menu) : min=0 max=2 default=1 value=1
audio_encoding_layer (menu) : min=1 max=1 default=1 value=1 flags=update
audio_layer_ii_bitrate (menu) : min=9 max=13 default=10 value=13
audio_stereo_mode (menu) : min=0 max=3 default=0 value=0 flags=update
audio_stereo_mode_extension (menu) : min=0 max=3 default=0 value=0 flags=inactive
audio_emphasis (menu) : min=0 max=2 default=0 value=0
audio_crc (menu) : min=0 max=1 default=0 value=0
video_encoding (menu) : min=0 max=1 default=1 value=1 flags=readonly
video_aspect (menu) : min=0 max=3 default=1 value=1
video_b_frames (int) : min=0 max=33 step=1 default=2 value=2 flags=update
video_gop_size (int) : min=1 max=34 step=1 default=12 value=12
video_gop_closure (bool) : default=1 value=1
video_pulldown (bool) : default=0 value=0
video_bitrate_mode (menu) : min=0 max=1 default=0 value=0 flags=update
video_bitrate (int) : min=0 max=27000000 step=1 default=6000000 value=4500000
video_peak_bitrate (int) : min=0 max=27000000 step=1 default=8000000 value=6000000
video_temporal_decimation (int) : min=0 max=255 step=1 default=0 value=0
spatial_filter_mode (menu) : min=0 max=1 default=0 value=0 flags=update
spatial_filter (int) : min=0 max=15 step=1 default=0 value=0 flags=slider
spatial_luma_filter_type (menu) : min=0 max=4 default=0 value=1
spatial_chroma_filter_type (menu) : min=0 max=1 default=0 value=1
temporal_filter_mode (menu) : min=0 max=1 default=0 value=0 flags=update
temporal_filter (int) : min=0 max=31 step=1 default=0 value=8 flags=slider
median_filter_type (menu) : min=0 max=4 default=0 value=0 flags=update
median_luma_filter_minimum (int) : min=0 max=255 step=1 default=0 value=0 flags=inactive slider
median_luma_filter_maximum (int) : min=0 max=255 step=1 default=255 value=255 flags=inactive slider
median_chroma_filter_minimum (int) : min=0 max=255 step=1 default=0 value=0 flags=inactive slider
median_chroma_filter_maximum (int) : min=0 max=255 step=1 default=255 value=255 flags=inactive slider
Usage examples can be found here