![]() |
![]() |
![]() |
GStreamer Good Plugins 1.0 Plugins Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
GObject +----GInitiallyUnowned +----GstObject +----GstElement +----GstBaseSink +----GstVideoSink +----GstV4l2Sink
GstV4l2Sink implements GstTuner, GstVideoOverlay, GstNavigation, GstColorBalance and GstVideoOrientation.
"device" gchar* : Read / Write "device-fd" gint : Read "device-name" gchar* : Read "flags" GstV4l2DeviceTypeFlags : Read "overlay-height" guint : Read / Write "overlay-left" gint : Read / Write "overlay-top" gint : Read / Write "overlay-width" guint : Read / Write "brightness" gint : Read / Write "contrast" gint : Read / Write "hue" gint : Read / Write "saturation" gint : Read / Write "crop-height" guint : Read / Write "crop-left" gint : Read / Write "crop-top" gint : Read / Write "crop-width" guint : Read / Write "io-mode" GstV4l2IOMode : Read / Write "norm" V4L2_TV_norms : Read / Write "extra-controls" GstStructure* : Read / Write "force-aspect-ratio" gboolean : Read / Write "pixel-aspect-ratio" gchar* : Read / Write
v4l2sink can be used to display video to v4l2 devices (screen overlays provided by the graphics hardware, tv-out, etc)
1 |
gst-launch-1.0 videotestsrc ! v4l2sink device=/dev/video1 |
1 |
gst-launch-1.0 -v videotestsrc ! navigationtest ! v4l2sink |
name |
sink |
direction |
sink |
presence |
always |
details |
image/jpeg |
video/mpeg, mpegversion=(int)4, systemstream=(boolean)false | |
video/mpeg, mpegversion=(int)2 | |
video/mpegts, systemstream=(boolean)true | |
video/x-bayer, format=(string){ bggr, gbrg, grbg, rggb }, width=(int)[ 1, 32768 ], height=(int)[ 1, 32768 ], framerate=(fraction)[ 0/1, 2147483647/1 ] | |
video/x-dv, systemstream=(boolean)true | |
video/x-h263, variant=(string)itu | |
video/x-h264, stream-format=(string){ byte-stream, avc }, alignment=(string)au | |
video/x-pwc1, width=(int)[ 1, 32768 ], height=(int)[ 1, 32768 ], framerate=(fraction)[ 0/1, 2147483647/1 ] | |
video/x-pwc2, width=(int)[ 1, 32768 ], height=(int)[ 1, 32768 ], framerate=(fraction)[ 0/1, 2147483647/1 ] | |
video/x-raw, format=(string){ RGB16, BGR, RGB, GRAY8, GRAY16_LE, GRAY16_BE, YVU9, YV12, YUY2, YVYU, UYVY, Y42B, Y41B, YUV9, NV12_64Z32, NV24, NV61, NV16, NV21, NV12, I420, BGRA, BGRx, ARGB, xRGB, BGR15, RGB15 }, width=(int)[ 1, 32768 ], height=(int)[ 1, 32768 ], framerate=(fraction)[ 0/1, 2147483647/1 ] | |
video/x-sonix, width=(int)[ 1, 32768 ], height=(int)[ 1, 32768 ], framerate=(fraction)[ 0/1, 2147483647/1 ] | |
video/x-vp8 | |
video/x-wmv, wmvversion=(int)3, format=(string)WVC1 |
"device-fd"
property "device-fd" gint : Read
File descriptor of the device.
Allowed values: >= G_MAXULONG
Default value: -1
"overlay-height"
property "overlay-height" guint : Read / Write
The height of the video overlay; default is equal to negotiated image height.
Default value: 0
"overlay-left"
property "overlay-left" gint : Read / Write
The leftmost (x) coordinate of the video overlay; top left corner of screen is 0,0.
Default value: 0
"overlay-top"
property "overlay-top" gint : Read / Write
The topmost (y) coordinate of the video overlay; top left corner of screen is 0,0.
Default value: 0
"overlay-width"
property "overlay-width" guint : Read / Write
The width of the video overlay; default is equal to negotiated image width.
Default value: 0
"brightness"
property "brightness" gint : Read / Write
Picture brightness, or more precisely, the black level.
Default value: 0
"contrast"
property "contrast" gint : Read / Write
Picture contrast or luma gain.
Default value: 0
"saturation"
property "saturation" gint : Read / Write
Picture color saturation or chroma gain.
Default value: 0
"crop-height"
property "crop-height" guint : Read / Write
The height of the video crop; default is equal to negotiated image height.
Default value: 0
"crop-left"
property "crop-left" gint : Read / Write
The leftmost (x) coordinate of the video crop; top left corner of image is 0,0.
Default value: 0
"crop-top"
property "crop-top" gint : Read / Write
The topmost (y) coordinate of the video crop; top left corner of image is 0,0.
Default value: 0
"crop-width"
property "crop-width" guint : Read / Write
The width of the video crop; default is equal to negotiated image width.
Default value: 0
"io-mode"
property "io-mode" GstV4l2IOMode : Read / Write
I/O mode.
Default value: GST_V4L2_IO_AUTO
"extra-controls"
property "extra-controls" GstStructure* : Read / Write
Extra v4l2 controls (CIDs) for the device.
"force-aspect-ratio"
property "force-aspect-ratio" gboolean : Read / Write
When enabled, the pixel aspect ratio will be enforced.
Default value: TRUE