# v4l2h265enc The v4l2h265enc plugin uses V4L2 APIs for encoding of video stream. - The plugin uses the H.265 video encoder to provide hardware accelerated H.265 (MPEG-H Part 2) encoding on supported platforms - The plugin is based on [GstVideoEncoder](https://gstreamer.freedesktop.org/documentation/video/gstvideoencoder.html?gi-language=c) base class. ## Inheritance chain [GObject](https://docs.gtk.org/gobject/) → [GstObject](https://gstreamer.freedesktop.org/documentation/gstreamer/gstobject.html?gi-language=c) → [GstElement](https://gstreamer.freedesktop.org/documentation/gstreamer/gstelement.html?gi-language=c) → [GstVideoEncoder](https://gstreamer.freedesktop.org/documentation/video/gstvideoencoder.html?gi-language=c) → GstV4l2VideoEnc → v4l2h265enc The following tables provide information on pad templates and element properties of v4l2h265enc. For use cases, see [Video encode and decode](https://docs.qualcomm.com/doc/80-80021-50/topic/camera-and-video-encode.html) and [Slice-based encoding](https://docs.qualcomm.com/doc/80-80021-50/topic/camera-and-video-encode.html#slice-based-encoding). ## Pad configuration | Pad Name | Capabilities | Capabilities | Capabilities | | --- | --- | --- | --- | |
SINK template: 'sink'



>
>
> | video/x-raw | format: | { (string)NV12, (string)NV21 } | |
SINK template: 'sink'



>
>
> | video/x-raw | width: | [ 1, 32768 ] | |
SINK template: 'sink'



>
>
> | video/x-raw | height: | [ 1, 32768 ] | |
SINK template: 'sink'



>
>
> | video/x-raw | framerate: | [ 0/1, 2147483647/1 ] | |
SRC template: 'src'



>
>
> | video/x-h265 | alignment: | au | |
SRC template: 'src'



>
>
> | video/x-h265 | stream-format: | byte-stream | | | | | | | | | | | | | | | | ## Element configuration Table : Element properties of v4l2h265enc | Property | Description | | --- | --- | | capture-io-mode | - Capture I/O mode (matches src pad).
- | | device | - The device location.
- | | device-fd | - The file descriptor of the device.
- | | device-name | - The name of the device.
- | | extra-controls | - The extra v4l2 controls (CIDs) for the device.
- | | min-force-key-unit-interval | - The minimum interval between force-key-unit requests in nanoseconds.
- | | name | - The name of the object.
- | | output-io-mode | - The output side I/O mode (matches sink pad).
- | | parent | - The parent of the object.
- | | qos | - Handle quality-of-service events from downstream.
- | The following table lists the codec controls for H.265. For the general v4l2ctl user and codec controls, see [Table : v4l2ctl extra-controls–user controls](https://docs.qualcomm.com/doc/80-80021-50/topic/v4l2h264enc.html#section-ibv-jrz-q1c) and [Table : v4l2ctl extra-controls–codec controls](https://docs.qualcomm.com/doc/80-80021-50/topic/v4l2h264enc.html#section-ibn-jrz-q1c). Table : v4l2ctl–H.265 codec controls | Control name | Control type | Parameters | | --- | --- | --- | | hevc\_minimum\_qp\_value | Integer |


>
>
> | | hevc\_maximum\_qp\_value | Integer |


>
>
> | | hevc\_i\_frame\_qp\_value | Integer |


>
>
> | | hevc\_p\_frame\_qp\_value | Integer |


>
>
> | | hevc\_b\_frame\_qp\_value | Integer |


>
>
> | | hevc\_hierarchical\_coding\_type | Menu |


>
>
> | | hevc\_hierarchical\_coding\_layer | Integer |


>
>
> | | hevc\_profile | Menu |


>
>
> | | hevc\_level | Menu |


>
>
> | | hevc\_hierarchical\_lay\_0\_bitrate | Integer |


>
>
> | | hevc\_hierarchical\_lay\_1\_bitrate | Integer |


>
>
> | | hevc\_hierarchical\_lay\_2\_bitrate | Integer |


>
>
> | | hevc\_hierarchical\_lay\_3\_bitrate | Integer |


>
>
> | | hevc\_hierarchical\_lay\_4\_bitrate | Integer |


>
>
> | | hevc\_hierarchical\_lay\_5\_bitrate | Integer |


>
>
> | | hevc\_i\_frame\_minimum\_qp\_value | Integer |


>
>
> | | hevc\_i\_frame\_maximum\_qp\_value | Integer |


>
>
> | | hevc\_p\_frame\_minimum\_qp\_value | Integer |


>
>
> | | hevc\_p\_frame\_maximum\_qp\_value | Integer |


>
>
> | | hevc\_b\_frame\_minimum\_qp\_value | Integer |


>
>
> | | hevc\_b\_frame\_maximum\_qp\_value | Integer |


>
>
> | Last Published: Mar 26, 2026 [Previous Topic v4l2h264enc](https://docs.qualcomm.com/bundle/publicresource/80-80021-50/topics/v4l2h264enc.md) [Next Topic v4l2vp9dec](https://docs.qualcomm.com/bundle/publicresource/80-80021-50/topics/v4l2vp9dec.md) Source: [https://docs.qualcomm.com/doc/80-80021-50/topic/v4l2h265enc.html](https://docs.qualcomm.com/doc/80-80021-50/topic/v4l2h265enc.html)