# openni2src

## Examples

Some recorded .oni files are available at http://people.cs.pitt.edu/~chang/1635/proj11/kinectRecord

    LD_LIBRARY_PATH=/usr/lib/OpenNI2/Drivers/ gst-launch-1.0 --gst-debug=openni2src:5   openni2src location='Downloads/mr.oni' sourcetype=depth ! videoconvert ! ximagesink

    LD_LIBRARY_PATH=/usr/lib/OpenNI2/Drivers/ gst-launch-1.0 --gst-debug=openni2src:5   openni2src location='Downloads/mr.oni' sourcetype=color ! videoconvert ! ximagesink

## Hierarchy

    GObject
        ╰──GInitiallyUnowned
            ╰──GstObject
                ╰──GstElement
                    ╰──GstBaseSrc
                        ╰──GstPushSrc
                            ╰──openni2src

## Factory details

Authors: – Miguel Casas-Sanchez <miguelecasassanchez></miguelecasassanchez>

Classification: – `Source/Video`

Rank – none

Plugin – openni2

Package – GStreamer Bad Plug-ins

## Pad Templates

### `src`

    video/x-raw:
             format: { RGBA, RGB, GRAY16_LE }
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]
          framerate: [ 0/1, 2147483647/1 ]

Presence – always

Direction – src

Object type – GstPad

## Properties

### blocksize

    “blocksize” guint

Size in bytes to read per buffer (-1 = default)

Flags : Read / Write

Default value : 4096

### do-timestamp

    “do-timestamp” gboolean

Apply current stream time to buffers

Flags : Read / Write

Default value : false

### location

    “location” gchararray

Source uri, can be a file or a device.

Flags : Read / Write

Default value : NULL

### num-buffers

    “num-buffers” gint

Number of buffers to output before sending EOS (-1 = unlimited)

Flags : Read / Write

Default value : -1

### sourcetype

    “sourcetype” GstOpenni2SrcSourcetype *

Type of readings to get from the source

Flags : Read / Write

Default value : depth (0)

### typefind

    “typefind” gboolean

Run typefind before negotiating (deprecated, non-functional)

Flags : Read / Write

Default value : false

## Named constants

### GstOpenni2SrcSourcetype

#### Members

`depth` (0) – Get depth readings
`color` (1) – Get color readings
`both` (2) – Get color and depth (as alpha) readings - EXPERIMENTAL

The results of the search are