# d3d12mpeg2dec

A Direct3D12 based MPEG-2 video decoder

## Example launch line

    gst-launch-1.0 filesrc location=/path/to/mpeg2/file ! parsebin ! d3d12mpeg2dec ! videoconvert ! autovideosink

## Hierarchy

    GObject
        ╰──GInitiallyUnowned
            ╰──GstObject
                ╰──GstElement
                    ╰──GstVideoDecoder
                        ╰──GstMpeg2Decoder
                            ╰──GstDxvaMpeg2Decoder
                                ╰──d3d12mpeg2dec

## Factory details

Authors: – Seungha Yang

Classification: – `Codec/Decoder/Video/Hardware`

Rank – none

Plugin – d3d12

Package – GStreamer Bad Plug-ins

## Pad Templates

### `sink`

    video/mpeg:
        mpegversion: 2
       systemstream: false
            profile: { (string)main, (string)simple }
              width: [ 1, 1920 ]
             height: [ 1, 1920 ]

Presence – always

Direction – sink

Object type – GstPad

### `src`

    video/x-raw(memory:D3D12Memory):
             format: NV12
              width: [ 1, 1920 ]
             height: [ 1, 1920 ]
    video/x-raw:
             format: NV12
              width: [ 1, 1920 ]
             height: [ 1, 1920 ]

Presence – always

Direction – src

Object type – GstPad

## Properties

### adapter-luid

    “adapter-luid” gint64

DXGI Adapter LUID (Locally Unique Identifier) of created device

Flags : Read

Default value : 0

### device-id

    “device-id” guint

DXGI Device ID

Flags : Read

Default value : 0

### vendor-id

    “vendor-id” guint

DXGI Vendor ID

Flags : Read

Default value : 0

The results of the search are