# qsvh265enc

Intel Quick Sync H.265 encoder

## Example launch line

    gst-launch-1.0 videotestsrc ! qsvh265enc ! h265parse ! matroskamux ! filesink location=out.mkv

## Hierarchy

    GObject
        ╰──GInitiallyUnowned
            ╰──GstObject
                ╰──GstElement
                    ╰──GstVideoEncoder
                        ╰──GstQsvEncoder
                            ╰──qsvh265enc

## Implemented interfaces

    GstPreset

## Factory details

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

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

Rank – none

Plugin – qsv

Package – GStreamer Bad Plug-ins

## Pad Templates

### `sink`

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

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

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

Presence – always

Direction – sink

Object type – GstPad

### `src`

    video/x-h265:
              width: [ 16, 8192 ]
             height: [ 16, 8192 ]
      stream-format: byte-stream
          alignment: au
            profile: { (string)main, (string)main-10 }

Presence – always

Direction – src

Object type – GstPad

## Properties

### b-frames

    “b-frames” guint

Number of B frames between I and P frames

Flags : Read / Write

Default value : 0

### bitrate

    “bitrate” guint

Target bitrate in kbit/sec, Ignored when selected rate-control mode is constant QP variants (i.e., "cqp" and "icq")

Flags : Read / Write

Default value : 2000

### cc-insert

    “cc-insert” Qsv-h265enc-sei-insert-mode *

Closed Caption Insert mode. Only CEA-708 RAW format is supported for now

Flags : Read / Write

Default value : insert (0)

### disable-hrd-conformance

    “disable-hrd-conformance” gboolean

Allow NAL HRD non-conformant stream

Flags : Read / Write

Default value : false

### gop-size

    “gop-size” guint

Number of pictures within a GOP (0: unspecified)

Flags : Read / Write

Default value : 30

### icq-quality

    “icq-quality” guint

Intelligent Constant Quality for "icq" rate-control (0: default)

Flags : Read / Write

Default value : 0

### idr-interval

    “idr-interval” guint

IDR-frame interval in terms of I-frames. 0: only first I-frame is is an IDR frame, 1: every I-frame is an IDR frame, N: "N - 1" I-frames are inserted between IDR-frames

Flags : Read / Write

Default value : 1

### max-bitrate

    “max-bitrate” guint

Maximum bitrate in kbit/sec, Ignored when selected rate-control mode is constant QP variants (i.e., "cqp" and "icq")

Flags : Read / Write

Default value : 0

### max-qp-b

    “max-qp-b” guint

Maximum allowed QP value for B-frame types (0: default)

Flags : Read / Write

Default value : 0

### max-qp-i

    “max-qp-i” guint

Maximum allowed QP value for I-frame types (0: default)

Flags : Read / Write

Default value : 0

### max-qp-p

    “max-qp-p” guint

Maximum allowed QP value for P-frame types (0: default)

Flags : Read / Write

Default value : 0

### min-qp-b

    “min-qp-b” guint

Minimum allowed QP value for B-frame types (0: default)

Flags : Read / Write

Default value : 0

### min-qp-i

    “min-qp-i” guint

Minimum allowed QP value for I-frame types (0: default)

Flags : Read / Write

Default value : 0

### min-qp-p

    “min-qp-p” guint

Minimum allowed QP value for P-frame types (0: default)

Flags : Read / Write

Default value : 0

### qp-b

    “qp-b” guint

Constant quantizer for B frames (0: default)

Flags : Read / Write

Default value : 0

### qp-i

    “qp-i” guint

Constant quantizer for I frames (0: default)

Flags : Read / Write

Default value : 0

### qp-p

    “qp-p” guint

Constant quantizer for P frames (0: default)

Flags : Read / Write

Default value : 0

### qvbr-quality

    “qvbr-quality” guint

Quality level used for "qvbr" rate-control mode (0: default)

Flags : Read / Write

Default value : 0

### rate-control

    “rate-control” Qsv-h265enc-rate-control *

Rate Control Method

Flags : Read / Write

Default value : vbr (2)

### ref-frames

    “ref-frames” guint

Number of reference frames (0: unspecified)

Flags : Read / Write

Default value : 2

## Named constants

### Qsv-h265enc-rate-control

#### Members

`cbr` (1) – Constant Bitrate
`vbr` (2) – Variable Bitrate
`cqp` (3) – Constant Quantizer
`icq` (9) – Intelligent CQP
`vcm` (10) – Video Conferencing Mode (Non HRD compliant)
`qvbr` (14) – VBR with CQP

Since : 1.22

### Qsv-h265enc-sei-insert-mode

#### Members

`insert` (0) – Insert SEI
`insert-and-drop` (1) – Insert SEI and remove corresponding meta from output buffer
`disabled` (2) – Disable SEI insertion

Since : 1.22

The results of the search are