| 239 | | printf("Common options:\n"); |
|---|
| 240 | | printf(" --all display all information available\n"); |
|---|
| 241 | | printf(" -B, --get-fmt-sliced-vbi\n"); |
|---|
| 242 | | printf(" query the sliced VBI capture format [VIDIOC_G_FMT]\n"); |
|---|
| 243 | | printf(" -b, --set-fmt-sliced-vbi=<mode>\n"); |
|---|
| 244 | | printf(" set the sliced VBI capture format to <mode> [VIDIOC_S_FMT]\n"); |
|---|
| 245 | | printf(" <mode> is a comma separated list of:\n"); |
|---|
| 246 | | printf(" off: turn off sliced VBI (cannot be combined with other modes)\n"); |
|---|
| 247 | | printf(" teletext: teletext (PAL/SECAM)\n"); |
|---|
| 248 | | printf(" cc: closed caption (NTSC)\n"); |
|---|
| 249 | | printf(" wss: widescreen signal (PAL/SECAM)\n"); |
|---|
| 250 | | printf(" vps: VPS (PAL/SECAM)\n"); |
|---|
| 251 | | printf(" -C, --get-ctrl=<ctrl>[,<ctrl>...]\n"); |
|---|
| 252 | | printf(" get the value of the controls [VIDIOC_G_EXT_CTRLS]\n"); |
|---|
| 253 | | printf(" -c, --set-ctrl=<ctrl>=<val>[,<ctrl>=<val>...]\n"); |
|---|
| 254 | | printf(" set the controls to the values specified [VIDIOC_S_EXT_CTRLS]\n"); |
|---|
| 255 | | printf(" -D, --info show driver info [VIDIOC_QUERYCAP]\n"); |
|---|
| 256 | | printf(" -d, --device=<dev> use device <dev> instead of /dev/video0\n"); |
|---|
| 257 | | printf(" if <dev> is a single digit, then /dev/video<dev> is used\n"); |
|---|
| 258 | | printf(" -F, --get-freq query the frequency [VIDIOC_G_FREQUENCY]\n"); |
|---|
| 259 | | printf(" -f, --set-freq=<freq>\n"); |
|---|
| 260 | | printf(" set the frequency to <freq> MHz [VIDIOC_S_FREQUENCY]\n"); |
|---|
| 261 | | printf(" -h, --help display this help message\n"); |
|---|
| 262 | | printf(" -I, --get-input query the video input [VIDIOC_G_INPUT]\n"); |
|---|
| 263 | | printf(" -i, --set-input=<num>\n"); |
|---|
| 264 | | printf(" set the video input to <num> [VIDIOC_S_INPUT]\n"); |
|---|
| 265 | | printf(" -l, --list-ctrls display all controls and their values [VIDIOC_QUERYCTRL]\n"); |
|---|
| 266 | | printf(" -L, --list-ctrls-menus\n"); |
|---|
| 267 | | printf(" display all controls, their values and the menus [VIDIOC_QUERYMENU]\n"); |
|---|
| 268 | | printf(" -N, --list-outputs display video outputs [VIDIOC_ENUMOUTPUT]\n"); |
|---|
| 269 | | printf(" -n, --list-inputs display video inputs [VIDIOC_ENUMINPUT]\n"); |
|---|
| 270 | | printf(" -O, --get-output query the video output [VIDIOC_G_OUTPUT]\n"); |
|---|
| 271 | | printf(" -o, --set-output=<num>\n"); |
|---|
| 272 | | printf(" set the video output to <num> [VIDIOC_S_OUTPUT]\n"); |
|---|
| 273 | | printf(" -S, --get-standard\n"); |
|---|
| 274 | | printf(" query the video standard [VIDIOC_G_STD]\n"); |
|---|
| 275 | | printf(" -s, --set-standard=<num>\n"); |
|---|
| 276 | | printf(" set the video standard to <num> [VIDIOC_S_STD]\n"); |
|---|
| 277 | | printf(" <num> can be a numerical v4l2_std value, or it can be one of:\n"); |
|---|
| 278 | | printf(" pal-X (X = B/G/H/N/Nc/I/D/K/M/60) or just 'pal' (V4L2_STD_PAL)\n"); |
|---|
| 279 | | printf(" ntsc-X (X = M/J/K) or just 'ntsc' (V4L2_STD_NTSC)\n"); |
|---|
| 280 | | printf(" secam-X (X = B/G/H/D/K/L/Lc) or just 'secam' (V4L2_STD_SECAM)\n"); |
|---|
| 281 | | printf(" --list-standards display supported video standards [VIDIOC_ENUMSTD]\n"); |
|---|
| 282 | | printf(" -T, --get-tuner query the tuner settings [VIDIOC_G_TUNER]\n"); |
|---|
| 283 | | printf(" -t, --set-tuner=<mode>\n"); |
|---|
| 284 | | printf(" set the audio mode of the tuner [VIDIOC_S_TUNER]\n"); |
|---|
| 285 | | printf(" Possible values: mono, stereo, lang2, lang1, bilingual\n"); |
|---|
| 286 | | printf(" --list-formats display supported video formats [VIDIOC_ENUM_FMT]\n"); |
|---|
| 287 | | printf(" -V, --get-fmt-video\n"); |
|---|
| 288 | | printf(" query the video capture format [VIDIOC_G_FMT]\n"); |
|---|
| 289 | | printf(" -v, --set-fmt-video=width=<w>,height=<h>\n"); |
|---|
| 290 | | printf(" set the video capture format [VIDIOC_S_FMT]\n"); |
|---|
| 291 | | printf(" --verbose turn on verbose ioctl error reporting.\n"); |
|---|
| 292 | | printf("\n"); |
|---|
| 293 | | printf("Uncommon options:\n"); |
|---|
| 294 | | printf(" --get-fmt-video-out\n"); |
|---|
| 295 | | printf(" query the video output format [VIDIOC_G_FMT]\n"); |
|---|
| 296 | | printf(" --set-fmt-video-out=width=<w>,height=<h>\n"); |
|---|
| 297 | | printf(" set the video output format [VIDIOC_S_FMT]\n"); |
|---|
| 298 | | printf(" --get-fmt-overlay\n"); |
|---|
| 299 | | printf(" query the video overlay format [VIDIOC_G_FMT]\n"); |
|---|
| 300 | | printf(" --get-fmt-output-overlay\n"); |
|---|
| 301 | | printf(" query the video output overlay format [VIDIOC_G_FMT]\n"); |
|---|
| 302 | | printf(" --set-fmt-output-overlay=chromakey=<key>,global_alpha=<alpha>\n"); |
|---|
| 303 | | printf(" set the video output overlay format [VIDIOC_S_FMT]\n"); |
|---|
| 304 | | printf(" --get-sliced-vbi-cap\n"); |
|---|
| 305 | | printf(" query the sliced VBI capture capabilities [VIDIOC_G_SLICED_VBI_CAP]\n"); |
|---|
| 306 | | printf(" --get-sliced-vbi-out-cap\n"); |
|---|
| 307 | | printf(" query the sliced VBI output capabilities [VIDIOC_G_SLICED_VBI_CAP]\n"); |
|---|
| 308 | | printf(" --get-fmt-sliced-vbi-out\n"); |
|---|
| 309 | | printf(" query the sliced VBI output format [VIDIOC_G_FMT]\n"); |
|---|
| 310 | | printf(" --set-fmt-sliced-vbi-out=<mode>\n"); |
|---|
| 311 | | printf(" set the sliced VBI output format to <mode> [VIDIOC_S_FMT]\n"); |
|---|
| 312 | | printf(" <mode> is a comma separated list of:\n"); |
|---|
| 313 | | printf(" off: turn off sliced VBI (cannot be combined with other modes)\n"); |
|---|
| 314 | | printf(" teletext: teletext (PAL/SECAM)\n"); |
|---|
| 315 | | printf(" cc: closed caption (NTSC)\n"); |
|---|
| 316 | | printf(" wss: widescreen signal (PAL/SECAM)\n"); |
|---|
| 317 | | printf(" vps: VPS (PAL/SECAM)\n"); |
|---|
| 318 | | printf(" --get-fmt-vbi query the VBI capture format [VIDIOC_G_FMT]\n"); |
|---|
| 319 | | printf(" --get-fmt-vbi-out query the VBI output format [VIDIOC_G_FMT]\n"); |
|---|
| 320 | | printf(" --overlay=<on> turn overlay on (1) or off (0) (VIDIOC_OVERLAY)\n"); |
|---|
| 321 | | printf(" --get-fbuf query the overlay framebuffer data [VIDIOC_G_FBUF]\n"); |
|---|
| 322 | | printf(" --set-fbuf=chromakey=<0/1>,global_alpha=<0/1>,local_alpha=<0/1>,local_inv_alpha=<0/1>\n"); |
|---|
| 323 | | printf(" set the overlay framebuffer [VIDIOC_S_FBUF]\n"); |
|---|
| 324 | | printf(" --get-cropcap query the crop capabilities [VIDIOC_CROPCAP]\n"); |
|---|
| 325 | | printf(" --get-crop query the video capture crop window [VIDIOC_G_CROP]\n"); |
|---|
| 326 | | printf(" --set-crop=top=<x>,left=<y>,width=<w>,height=<h>\n"); |
|---|
| 327 | | printf(" set the video capture crop window [VIDIOC_S_CROP]\n"); |
|---|
| 328 | | printf(" --get-cropcap-output\n"); |
|---|
| 329 | | printf(" query the crop capabilities for video output [VIDIOC_CROPCAP]\n"); |
|---|
| 330 | | printf(" --get-crop-output query the video output crop window [VIDIOC_G_CROP]\n"); |
|---|
| 331 | | printf(" --set-crop-output=top=<x>,left=<y>,width=<w>,height=<h>\n"); |
|---|
| 332 | | printf(" set the video output crop window [VIDIOC_S_CROP]\n"); |
|---|
| 333 | | printf(" --get-cropcap-overlay\n"); |
|---|
| 334 | | printf(" query the crop capabilities for video overlay [VIDIOC_CROPCAP]\n"); |
|---|
| 335 | | printf(" --get-crop-overlay query the video overlay crop window [VIDIOC_G_CROP]\n"); |
|---|
| 336 | | printf(" --set-crop-overlay=top=<x>,left=<y>,width=<w>,height=<h>\n"); |
|---|
| 337 | | printf(" set the video overlay crop window [VIDIOC_S_CROP]\n"); |
|---|
| 338 | | printf(" --get-cropcap-output-overlay\n"); |
|---|
| 339 | | printf(" query the crop capabilities for video output overlays [VIDIOC_CROPCAP]\n"); |
|---|
| 340 | | printf(" --get-crop-output-overlay\n"); |
|---|
| 341 | | printf(" query the video output overlay crop window [VIDIOC_G_CROP]\n"); |
|---|
| 342 | | printf(" --set-crop-output-overlay=top=<x>,left=<y>,width=<w>,height=<h>\n"); |
|---|
| 343 | | printf(" set the video output overlay crop window [VIDIOC_S_CROP]\n"); |
|---|
| 344 | | printf(" --get-audio-input query the audio input [VIDIOC_G_AUDIO]\n"); |
|---|
| 345 | | printf(" --set-audio-input=<num>\n"); |
|---|
| 346 | | printf(" set the audio input to <num> [VIDIOC_S_AUDIO]\n"); |
|---|
| 347 | | printf(" --get-audio-output query the audio output [VIDIOC_G_AUDOUT]\n"); |
|---|
| 348 | | printf(" --set-audio-output=<num>\n"); |
|---|
| 349 | | printf(" set the audio output to <num> [VIDIOC_S_AUDOUT]\n"); |
|---|
| 350 | | printf(" --list-audio-outputs\n"); |
|---|
| 351 | | printf(" display audio outputs [VIDIOC_ENUMAUDOUT]\n"); |
|---|
| 352 | | printf(" --list-audio-inputs\n"); |
|---|
| 353 | | printf(" display audio inputs [VIDIOC_ENUMAUDIO]\n"); |
|---|
| 354 | | printf("\n"); |
|---|
| 355 | | printf("Expert options:\n"); |
|---|
| 356 | | printf(" --streamoff turn the stream off [VIDIOC_STREAMOFF]\n"); |
|---|
| 357 | | printf(" --streamon turn the stream on [VIDIOC_STREAMOFF]\n"); |
|---|
| 358 | | printf(" --log-status log the board status in the kernel log [VIDIOC_LOG_STATUS]\n"); |
|---|
| | 240 | printf("Common options:\n" |
|---|
| | 241 | " --all display all information available\n" |
|---|
| | 242 | " -B, --get-fmt-sliced-vbi\n" |
|---|
| | 243 | " query the sliced VBI capture format [VIDIOC_G_FMT]\n" |
|---|
| | 244 | " -b, --set-fmt-sliced-vbi=<mode>\n" |
|---|
| | 245 | " set the sliced VBI capture format to <mode> [VIDIOC_S_FMT]\n" |
|---|
| | 246 | " <mode> is a comma separated list of:\n" |
|---|
| | 247 | " off: turn off sliced VBI (cannot be combined with other modes)\n" |
|---|
| | 248 | " teletext: teletext (PAL/SECAM)\n" |
|---|
| | 249 | " cc: closed caption (NTSC)\n" |
|---|
| | 250 | " wss: widescreen signal (PAL/SECAM)\n" |
|---|
| | 251 | " vps: VPS (PAL/SECAM)\n" |
|---|
| | 252 | " -C, --get-ctrl=<ctrl>[,<ctrl>...]\n" |
|---|
| | 253 | " get the value of the controls [VIDIOC_G_EXT_CTRLS]\n" |
|---|
| | 254 | " -c, --set-ctrl=<ctrl>=<val>[,<ctrl>=<val>...]\n" |
|---|
| | 255 | " set the controls to the values specified [VIDIOC_S_EXT_CTRLS]\n" |
|---|
| | 256 | " -D, --info show driver info [VIDIOC_QUERYCAP]\n" |
|---|
| | 257 | " -d, --device=<dev> use device <dev> instead of /dev/video0\n" |
|---|
| | 258 | " if <dev> is a single digit, then /dev/video<dev> is used\n" |
|---|
| | 259 | " -F, --get-freq query the frequency [VIDIOC_G_FREQUENCY]\n" |
|---|
| | 260 | " -f, --set-freq=<freq>\n" |
|---|
| | 261 | " set the frequency to <freq> MHz [VIDIOC_S_FREQUENCY]\n" |
|---|
| | 262 | " -h, --help display this help message\n" |
|---|
| | 263 | " -I, --get-input query the video input [VIDIOC_G_INPUT]\n" |
|---|
| | 264 | " -i, --set-input=<num>\n" |
|---|
| | 265 | " set the video input to <num> [VIDIOC_S_INPUT]\n" |
|---|
| | 266 | " -l, --list-ctrls display all controls and their values [VIDIOC_QUERYCTRL]\n" |
|---|
| | 267 | " -L, --list-ctrls-menus\n" |
|---|
| | 268 | " display all controls, their values and the menus [VIDIOC_QUERYMENU]\n" |
|---|
| | 269 | " -N, --list-outputs display video outputs [VIDIOC_ENUMOUTPUT]\n" |
|---|
| | 270 | " -n, --list-inputs display video inputs [VIDIOC_ENUMINPUT]\n" |
|---|
| | 271 | " -O, --get-output query the video output [VIDIOC_G_OUTPUT]\n" |
|---|
| | 272 | " -o, --set-output=<num>\n" |
|---|
| | 273 | " set the video output to <num> [VIDIOC_S_OUTPUT]\n" |
|---|
| | 274 | " -S, --get-standard\n" |
|---|
| | 275 | " query the video standard [VIDIOC_G_STD]\n" |
|---|
| | 276 | " -s, --set-standard=<num>\n" |
|---|
| | 277 | " set the video standard to <num> [VIDIOC_S_STD]\n" |
|---|
| | 278 | " <num> can be a numerical v4l2_std value, or it can be one of:\n" |
|---|
| | 279 | " pal-X (X = B/G/H/N/Nc/I/D/K/M/60) or just 'pal' (V4L2_STD_PAL)\n" |
|---|
| | 280 | " ntsc-X (X = M/J/K) or just 'ntsc' (V4L2_STD_NTSC)\n" |
|---|
| | 281 | " secam-X (X = B/G/H/D/K/L/Lc) or just 'secam' (V4L2_STD_SECAM)\n" |
|---|
| | 282 | " --list-standards display supported video standards [VIDIOC_ENUMSTD]\n" |
|---|
| | 283 | " -T, --get-tuner query the tuner settings [VIDIOC_G_TUNER]\n" |
|---|
| | 284 | " -t, --set-tuner=<mode>\n" |
|---|
| | 285 | " set the audio mode of the tuner [VIDIOC_S_TUNER]\n" |
|---|
| | 286 | " Possible values: mono, stereo, lang2, lang1, bilingual\n" |
|---|
| | 287 | " --list-formats display supported video formats [VIDIOC_ENUM_FMT]\n" |
|---|
| | 288 | " -V, --get-fmt-video\n" |
|---|
| | 289 | " query the video capture format [VIDIOC_G_FMT]\n" |
|---|
| | 290 | " -v, --set-fmt-video=width=<w>,height=<h>,pixelformat=<f>\n" |
|---|
| | 291 | " set the video capture format [VIDIOC_S_FMT]\n" |
|---|
| | 292 | " pixelformat is either the format index as reported by\n" |
|---|
| | 293 | " --list-formats, or the fourcc value as a string\n" |
|---|
| | 294 | " --verbose turn on verbose ioctl error reporting.\n" |
|---|
| | 295 | "\n"); |
|---|
| | 296 | printf("Uncommon options:\n" |
|---|
| | 297 | " --get-fmt-video-out\n" |
|---|
| | 298 | " query the video output format [VIDIOC_G_FMT]\n" |
|---|
| | 299 | " --set-fmt-video-out=width=<w>,height=<h>\n" |
|---|
| | 300 | " set the video output format [VIDIOC_S_FMT]\n" |
|---|
| | 301 | " --get-fmt-overlay\n" |
|---|
| | 302 | " query the video overlay format [VIDIOC_G_FMT]\n" |
|---|
| | 303 | " --get-fmt-output-overlay\n" |
|---|
| | 304 | " query the video output overlay format [VIDIOC_G_FMT]\n" |
|---|
| | 305 | " --set-fmt-output-overlay=chromakey=<key>,global_alpha=<alpha>\n" |
|---|
| | 306 | " set the video output overlay format [VIDIOC_S_FMT]\n" |
|---|
| | 307 | " --get-sliced-vbi-cap\n" |
|---|
| | 308 | " query the sliced VBI capture capabilities [VIDIOC_G_SLICED_VBI_CAP]\n" |
|---|
| | 309 | " --get-sliced-vbi-out-cap\n" |
|---|
| | 310 | " query the sliced VBI output capabilities [VIDIOC_G_SLICED_VBI_CAP]\n" |
|---|
| | 311 | " --get-fmt-sliced-vbi-out\n" |
|---|
| | 312 | " query the sliced VBI output format [VIDIOC_G_FMT]\n" |
|---|
| | 313 | " --set-fmt-sliced-vbi-out=<mode>\n" |
|---|
| | 314 | " set the sliced VBI output format to <mode> [VIDIOC_S_FMT]\n" |
|---|
| | 315 | " <mode> is a comma separated list of:\n" |
|---|
| | 316 | " off: turn off sliced VBI (cannot be combined with other modes)\n" |
|---|
| | 317 | " teletext: teletext (PAL/SECAM)\n" |
|---|
| | 318 | " cc: closed caption (NTSC)\n" |
|---|
| | 319 | " wss: widescreen signal (PAL/SECAM)\n" |
|---|
| | 320 | " vps: VPS (PAL/SECAM)\n" |
|---|
| | 321 | " --get-fmt-vbi query the VBI capture format [VIDIOC_G_FMT]\n" |
|---|
| | 322 | " --get-fmt-vbi-out query the VBI output format [VIDIOC_G_FMT]\n" |
|---|
| | 323 | " --overlay=<on> turn overlay on (1) or off (0) (VIDIOC_OVERLAY)\n" |
|---|
| | 324 | " --get-fbuf query the overlay framebuffer data [VIDIOC_G_FBUF]\n" |
|---|
| | 325 | " --set-fbuf=chromakey=<0/1>,global_alpha=<0/1>,local_alpha=<0/1>,local_inv_alpha=<0/1>\n" |
|---|
| | 326 | " set the overlay framebuffer [VIDIOC_S_FBUF]\n" |
|---|
| | 327 | " --get-cropcap query the crop capabilities [VIDIOC_CROPCAP]\n" |
|---|
| | 328 | " --get-crop query the video capture crop window [VIDIOC_G_CROP]\n" |
|---|
| | 329 | " --set-crop=top=<x>,left=<y>,width=<w>,height=<h>\n" |
|---|
| | 330 | " set the video capture crop window [VIDIOC_S_CROP]\n" |
|---|
| | 331 | " --get-cropcap-output\n" |
|---|
| | 332 | " query the crop capabilities for video output [VIDIOC_CROPCAP]\n" |
|---|
| | 333 | " --get-crop-output query the video output crop window [VIDIOC_G_CROP]\n" |
|---|
| | 334 | " --set-crop-output=top=<x>,left=<y>,width=<w>,height=<h>\n" |
|---|
| | 335 | " set the video output crop window [VIDIOC_S_CROP]\n" |
|---|
| | 336 | " --get-cropcap-overlay\n" |
|---|
| | 337 | " query the crop capabilities for video overlay [VIDIOC_CROPCAP]\n" |
|---|
| | 338 | " --get-crop-overlay query the video overlay crop window [VIDIOC_G_CROP]\n" |
|---|
| | 339 | " --set-crop-overlay=top=<x>,left=<y>,width=<w>,height=<h>\n" |
|---|
| | 340 | " set the video overlay crop window [VIDIOC_S_CROP]\n" |
|---|
| | 341 | " --get-cropcap-output-overlay\n" |
|---|
| | 342 | " query the crop capabilities for video output overlays [VIDIOC_CROPCAP]\n" |
|---|
| | 343 | " --get-crop-output-overlay\n" |
|---|
| | 344 | " query the video output overlay crop window [VIDIOC_G_CROP]\n" |
|---|
| | 345 | " --set-crop-output-overlay=top=<x>,left=<y>,width=<w>,height=<h>\n" |
|---|
| | 346 | " set the video output overlay crop window [VIDIOC_S_CROP]\n" |
|---|
| | 347 | " --get-audio-input query the audio input [VIDIOC_G_AUDIO]\n" |
|---|
| | 348 | " --set-audio-input=<num>\n" |
|---|
| | 349 | " set the audio input to <num> [VIDIOC_S_AUDIO]\n" |
|---|
| | 350 | " --get-audio-output query the audio output [VIDIOC_G_AUDOUT]\n" |
|---|
| | 351 | " --set-audio-output=<num>\n" |
|---|
| | 352 | " set the audio output to <num> [VIDIOC_S_AUDOUT]\n" |
|---|
| | 353 | " --list-audio-outputs\n" |
|---|
| | 354 | " display audio outputs [VIDIOC_ENUMAUDOUT]\n" |
|---|
| | 355 | " --list-audio-inputs\n" |
|---|
| | 356 | " display audio inputs [VIDIOC_ENUMAUDIO]\n" |
|---|
| | 357 | "\n"); |
|---|
| | 358 | printf("Expert options:\n" |
|---|
| | 359 | " --streamoff turn the stream off [VIDIOC_STREAMOFF]\n" |
|---|
| | 360 | " --streamon turn the stream on [VIDIOC_STREAMOFF]\n" |
|---|
| | 361 | " --log-status log the board status in the kernel log [VIDIOC_LOG_STATUS]\n"); |
|---|