# nvav1dec

GstCodecs based NVIDIA AV1 video decoder

## Example launch line

    gst-launch-1.0 filesrc location=/path/to/av1/file ! parsebin ! nvav1dec ! videoconvert ! autovideosink

## Hierarchy

    GObject
        ╰──GInitiallyUnowned
            ╰──GstObject
                ╰──GstElement
                    ╰──GstVideoDecoder
                        ╰──GstAV1Decoder
                            ╰──nvav1dec

## Factory details

Authors: – Seungha Yang <seungha></seungha>

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

Rank – primary + 1

Plugin – nvcodec

Package – GStreamer Bad Plug-ins

## Pad Templates

### `sink`

    video/x-av1:
          alignment: frame
              width: [ 128, 8192 ]
             height: [ 128, 8192 ]
            profile: { (string)main }

Presence – always

Direction – sink

Object type – GstPad

### `src`

    video/x-raw(memory:CUDAMemory):
             format: { NV12, P010_10LE }
              width: [ 128, 8192 ]
             height: [ 128, 8192 ]

    video/x-raw(memory:D3D11Memory):
             format: { I420, I420_10LE }
              width: [ 128, 8192 ]
             height: [ 128, 8192 ]

    video/x-raw(memory:GLMemory):
             format: { NV12, P010_10LE }
              width: [ 128, 8192 ]
             height: [ 128, 8192 ]
    video/x-raw:
             format: { NV12, P010_10LE }
              width: [ 128, 8192 ]
             height: [ 128, 8192 ]

Presence – always

Direction – src

Object type – GstPad

## Properties

### cuda-device-id

    “cuda-device-id” guint

Assigned CUDA device id

Flags : Read

Default value : 0

### 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