uv4l-raspicam

NAME

raspicam – UV4L plug-in driver for all the Raspberry Pi CSI Camera Boards

SYNOPSIS

uv4l [ uv4l-options ] –driver raspicam [ raspicam-options ]

DESCRIPTION

This is the Userspace Video4Linux2 driver for all the Raspberry Pi CSI Camera Boards with support for Stereoscopic vision. See the uv4l manual page for other details and options.

Global options:

–encoding arg (=JPEG Video Capture)
GPU Video encoding to use. Valid values are: yuv420, nv21, yvu420, rgb565, rgb565x, rgb24, bgr24, rgba, bgra, jpeg, mjpeg, h264

–width arg (=max)
image width

–height arg (=max)
image height

–stereoscopic-mode [=arg(=side_by_side)] (=none)
set up how the stereoscopic image is to be packed – either with the two images side by side, or one above the other (top/bottom). Available modes are “side_by_side”, “top_bottom” or “none” (stereo disabled). Note that it is also perfectly valid to independently use each camera module from separate instances of uv4l running at the same time.

–camera-number arg
select the first channel camera. The second channel is always the other one. Valid values are 0 and 1. Default is not specified.

–decimate [=arg(=yes)] (=no)
also sometimes referred to as half/half mode. When a stereoscopic camera mode is enabled, the output frame ends up still being the same size as the
original (e.g. 1920×1080), but the individual images are squashed (2:1) in one dimension to fit them both in (i.e. each eye would become either 960×1080, or 1920×540, but with non-square pixels).

–swap-eyes [=arg(=yes)] (=no)
when a stereoscopic camera mode is enabled, it allows putting the image for the right eye on the left/top, and left eye on the right/bottom. Display and H264 generally want –swap_eyes=0, JPEG stereoscopic wants –swap_eyes=1. This option might have no effect if not implemented in the firmware.

Video Capture options:

–framerate arg (=30)
Video maximum framerate, from 0 (auto) to 90 (max). The firmware might not allow more than 30fps on high resolutions.

–video-denoise [=arg(=yes)] (=yes)
turn on video denoise

H264 encoding options:

–profile arg (=high)
profile for H264 encoding. Valid values are: baseline, high, main

–level arg (=4)
level for H264 encoding. Valid values are: 4, 4.1, 4.2

–bitrate arg (=17000000)
Constant Video Bitrate

–intra-refresh-mode arg (=dummy)
intra refresh mode: adaptive, both, cyclic, cyclicrows, dummy

–intra-period arg
intra-frame refresh period (key frame rate/GoP size)

–inline-headers [=arg(=yes)] (=no)
insert inline headers (SPS, PPS) to stream

–quantisation-parameter arg
Quantisation Parameter for Variable BitRate from 10 to 40 (alternative to bitrate)

Video processing options:

–text-overlay [=arg(=enabled)] (=disabled)
enable text over video

–text-filename arg
(=/usr/share/uv4l/raspicam/text.json)
JSON file containing the properties of the text to draw onto the video stream

–object-detection [=arg(=enabled)] (=disabled)
enable real-time object detection or tracking. This option has effect with ‘yuv420’, ‘h264’ and ‘mjpeg’ video encodings only

–object-detection-mode arg (=accurate_tracking)
object detection method: accurate_detection, accurate_tracking

–min-object-size arg (=80 80)
Minimum object size to detect: width height.
Default is good for face detection at 320×240 ~15fps video on a Raspberry 1.

–main-classifier arg (=/usr/share/uv4l/raspicam/lbpcascade_frontalface.xml)
Path to the XML classifier file used for object
detection. Default is for face detection, another classifier can be ‘haarcascade_frontalface_alt2.xml’

–secondary-classifier arg
(=/usr/share/uv4l/raspicam/lbpcascade_frontalface.xml)
Path to the additional XML classifier file used for object tracking

Still Capture options (‘jpeg’ encoding only):

–raw [=arg(=yes)] (=no)
add raw bayer data to jpeg metadata

–quality arg (=85)
jpeg quality, from 0 to 100

–stills-denoise [=arg(=yes)] (=yes)
turn on denoise for stills

Preview options:

–preview arg (=0 0 1920 1080)
preview window settings

–fullscreen [=arg(=yes)] (=yes)
fullscreen preview mode

–opacity arg (=255)
preview window opacity, from 0 to 255

–nopreview [=arg(=yes)] (=yes)
do not display a preview window. it does NOT display by default.

Image parameters:

–sharpness arg (=0)
image sharpness from -100 to 100

–contrast arg (=0)
image contrast from -100 to 100

–brightness arg (=50)
image brightness from 0 to 100

–saturation arg (=0)
image saturation from -100 to 100

–iso arg (=0)
capture ISO. 0 for auto.

–vstab [=arg(=yes)] (=no)
turn on video stabilization

–ev arg (=0)
EV compensation from -10 to 10

–exposure arg (=auto)
exposure mode: antishake, auto, backlight, beach, fireworks, fixedfps, night, nightpreview, snow, sports, spotlight, verylong

–awb arg (=auto)
AWB mode: auto, cloudy, flash, fluorescent, horizon, incandescent, off, shade, sun, tungsten

–red-gain arg (=100)
auto-white balance red gain from 0 to 800, effective when awb is ‘off’

–blue-gain arg (=100)
auto-white balance blue gain from 0 to 800, effective when awb is ‘off’

–imgfx arg (=none)
image effect: blur, cartoon, colourbalance, colourpoint colourswap, denoise, emboss, film, gpen, hatch, negative, none, oilpaint, pastel, posterise, saturation, sketch, solarise, washedout, watercolour, colour

–colfx [=arg(=128 128)]
colour effect: U V

–metering arg (=average)
metering mode: average, backlit, matrix, spot

–rotation arg (=0)
image rotation from 0 to 359 degrees

–hflip [=arg(=yes)] (=no)
horizontal flip

–vflip [=arg(=yes)] (=no)
vertical flip

–roi arg (=0 0 1 1)
region of interest x y w h as normalized coordinates in the interval [0, 1] rational

–shutter-speed arg (=0)
shutter speed in 100 us

–drc arg (=off)
dynamic range compression strength: high, low, medium, off

–text-annotation arg
basic, static text annotation over video, still and preview. The string must not be longer than 31 characters. For a more advanced feature see the –text-overlay option

–text-annotation-background [=arg(=yes)] (=no)
enable black background for annotated text

Advanced options:

–statistics [=arg(=enabled)] (=enabled)
enable statistics (i.e. detected fps)

–output-buffers arg (=3)
number of buffers to be enqueued for video output

Other options:

–driver-config-file arg
path to the configuration file containing driver options. Options specified via command line have higher priority.

–custom-sensor-config arg
select one sensor mode. Possible values are:
0 for normal mode,
1 for 1080P30 cropped 1-30fps mode,
2 for 5MPix 1-15fps mode,
3 for 5MPix 0.1666-1fps mode,
4 for 2×2 binned 1296×972 1-42fps mode,
5 for 2×2 binned 1296×730 1-49fps mode,
6 for VGA 30-60fps mode,
7 for VGA 60-90fps mode

EXAMPLES

SEE ALSO

uv4l(1)

BUGS

No known bugs.

AUTHOR

Luca Risolia <luca.risolia@linux-projects.org> http://linux-projects.org