# nvh264dec

NVIDIA H.264 video decoder

## Hierarchy

    GObject
        ╰──GInitiallyUnowned
            ╰──GstObject
                ╰──GstElement
                    ╰──GstVideoDecoder
                        ╰──GstH264Decoder
                            ╰──nvh264dec

## Factory details

Authors: – Seungha Yang

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

Rank – primary + 1

Plugin – nvcodec

Package – GStreamer Bad Plug-ins

## Pad Templates

### `sink`

    video/x-h264:
              width: [ 48, 4096 ]
             height: [ 16, 4096 ]
      stream-format: { (string)avc, (string)avc3, (string)byte-stream }
          alignment: au
            profile: { (string)high, (string)main, (string)constrained-high, (string)constrained-baseline, (string)baseline, (string)progressive-high }

Presence – always

Direction – sink

Object type – GstPad

### `src`

    video/x-raw(memory:CUDAMemory):
             format: NV12
              width: [ 48, 4096 ]
             height: [ 16, 4096 ]

    video/x-raw(memory:D3D12Memory):
             format: NV12
              width: [ 48, 4096 ]
             height: [ 16, 4096 ]

    video/x-raw(memory:D3D11Memory):
             format: NV12
              width: [ 48, 4096 ]
             height: [ 16, 4096 ]

    video/x-raw(memory:GLMemory):
             format: NV12
              width: [ 48, 4096 ]
             height: [ 16, 4096 ]
    video/x-raw:
             format: NV12
              width: [ 48, 4096 ]
             height: [ 16, 4096 ]

Presence – always

Direction – src

Object type – GstPad

## Properties

### cuda-device-id

    “cuda-device-id” guint

Assigned CUDA device id

Flags : Read

Default value : 0

Since : 1.22

### init-max-height

    “init-max-height” guint

Initial CUVIDDECODECREATEINFO.ulMaxHeight value

Flags : Read / Write

Default value : 0

Since : 1.24

### init-max-width

    “init-max-width” guint

Initial CUVIDDECODECREATEINFO.ulMaxWidth value

Flags : Read / Write

Default value : 0

Since : 1.24

### max-display-delay

    “max-display-delay” gint

Maximum display delay

Flags : Read / Write

Default value : -1

Since : 1.24

### num-output-surfaces

    “num-output-surfaces” guint

The number of output surfaces (0 = auto, 1 = always copy). This property will be used to calculate the CUVIDDECODECREATEINFO.ulNumOutputSurfaces parameter in case of CUDA output mode.

Flags : Read / Write

Default value : 1

Since : 1.24

The results of the search are