v4l2sink

v4l2sink — Displays frames on a video4linux2 device

Synopsis

                    GstV4l2Sink;

Object Hierarchy

  GObject
   +----GstObject
         +----GstElement
               +----GstBaseSink
                     +----GstVideoSink
                           +----GstV4l2Sink

Implemented Interfaces

GstV4l2Sink implements GstImplementsInterface, GstColorBalance, GstVideoOrientation and GstPropertyProbe.

Properties

  "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
  "queue-size"               guint                 : Read / Write

Description

v4l2sink can be used to display video to v4l2 devices (screen overlays provided by the graphics hardware, tv-out, etc)

Example launch lines

gst-launch videotestsrc ! v4l2sink device=/dev/video1
This pipeline displays a test pattern on /dev/video1

Details

GstV4l2Sink

typedef struct _GstV4l2Sink GstV4l2Sink;

Property Details

The "device" property

  "device"                   gchar*                : Read / Write

Device location.

Default value: "/dev/video1"


The "device-fd" property

  "device-fd"                gint                  : Read

File descriptor of the device.

Allowed values: >= G_MAXULONG

Default value: -1


The "device-name" property

  "device-name"              gchar*                : Read

Name of the device.

Default value: NULL


The "flags" property

  "flags"                    GstV4l2DeviceTypeFlags  : Read

Device type flags.


The "overlay-height" property

  "overlay-height"           guint                 : Read / Write

The height of the video overlay; default is equal to negotiated image height.

Default value: 0


The "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


The "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


The "overlay-width" property

  "overlay-width"            guint                 : Read / Write

The width of the video overlay; default is equal to negotiated image width.

Default value: 0


The "queue-size" property

  "queue-size"               guint                 : Read / Write

Number of buffers to be enqueud in the driver in streaming mode.

Allowed values: [1,16]

Default value: 8