# mfvideosrc

Provides video capture from the Microsoft Media Foundation API.

## Example pipelines

     gst-launch-1.0 -v mfvideosrc ! fakesink

Capture from the default video capture device and render to fakesink.

     gst-launch-1.0 -v mfvideosrc device-index=1 ! fakesink

Capture from the second video device (if available) and render to fakesink.

## Hierarchy

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

## Factory details

Authors: – Seungha Yang

Classification: – `Source/Video/Hardware`

Rank – secondary

Plugin – mediafoundation

Package – GStreamer Bad Plug-ins

## Pad Templates

### `src`

    video/x-raw:
             format: { BGRx, BGRA, BGR, RGB15, RGB16, VUYA, YUY2, YVYU, UYVY, NV12, YV12, I420, P010, P016, v210, v216, GRAY16_LE }
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]
          framerate: [ 0/1, 2147483647/1 ]
    image/jpeg:
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]
          framerate: [ 0/1, 2147483647/1 ]

Presence – always

Direction – src

Object type – GstPad

## Properties

### device-index

    “device-index” gint

The zero-based device index

Flags : Read / Write

Default value : -1

### device-name

    “device-name” gchararray

The human-readable device name

Flags : Read / Write

Default value : NULL

### device-path

    “device-path” gchararray

The device path

Flags : Read / Write

Default value : NULL

### dispatcher

    “dispatcher” gpointer

ICoreDispatcher COM object used for activating device from UI thread.

Flags : Read / Write

The results of the search are