# v4l2h265dec
The v4l2h265dec plugin uses the V4L2 APIs to decode the video stream.
- The plugin uses the H.265 video decoder to provide hardware accelerated H.265 (MPEG-H Part 2) decoding on supported platforms.
- The plugin is based on the [GstVideoDecoder](https://gstreamer.freedesktop.org/documentation/video/gstvideodecoder.html) 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) → [GstVideoDecoder](https://gstreamer.freedesktop.org/documentation/video/gstvideodecoder.html) → GstV4l2VideoDec → v4l2h265dec
The following tables provide information on pad templates and element properties of v4l2h265dec. For use cases, see [Video playback use cases](https://docs.qualcomm.com/doc/80-80021-50/topic/video-playback-use-cases.html).
## Pad configuration
| Pad Name | Capabilities | Capabilities | Capabilities |
| --- | --- | --- | --- |
|
SINK template: 'sink'
>
>
>
Availability: Always
Direction: sink
Availability: Always
Direction: sink
Availability: Always
Direction: source
Availability: Always
Direction: source
Availability: Always
Direction: source
Availability: Always
Direction: source
flags: readable, writable
Flags "GstVideoDecoderRequestSyncPointFlags" Default: 0x00000003, "corrupt-output+discard-input"
(0x00000001): discard-input - GST_VIDEO_DECODER_REQUEST_SYNC_POINT_DISCARD_INPUT
(0x00000002): corrupt-output - GST_VIDEO_DECODER_REQUEST_SYNC_POINT_CORRUPT_OUTPUT
flags: readable, writable
Boolean. Default: false
flags: readable, writable
Enum "GstV4l2IOMode" Default: 0, "auto"
(0): auto - GST_V4L2_IO_AUTO
(1): rw - GST_V4L2_IO_RW
(2): mmap - GST_V4L2_IO_MMAP
(3): userptr - GST_V4L2_IO_USERPTR
(4): dmabuf - GST_V4L2_IO_DMABUF
(5): dmabuf-import - GST_V4L2_IO_DMABUF_IMPORT
flags: readable
String. Default: "/dev/video0"
flags: readable
Integer. Range: ˗1 to 2147483647, default: ˗1
flags: readable
String. Default: null
flags: readable, writable
Boolean. Default: false
flags: readable, writable
Boxed pointer of type "GstStructure"
flags: readable, writable
Integer. Range: ˗1 to 2147483647, default: 10
flags: readable, writable
Unsigned Integer64. Range: 0 to 18446744073709551615, default: 0
flags: readable, writable, 0x2000
String. Default: "v4l2h265dec0"
flags: readable, writable
Enum "GstV4l2IOMode" Default: 0, "auto"
(0): auto - GST_V4L2_IO_AUTO
(1): rw - GST_V4L2_IO_RW
(2): mmap - GST_V4L2_IO_MMAP
(3): userptr - GST_V4L2_IO_USERPTR
(4): dmabuf - GST_V4L2_IO_DMABUF
(5): dmabuf-import - GST_V4L2_IO_DMABUF_IMPORT
flags: readable, writable, 0x2000
Object of type "GstObject"
flags: readable, writable
Boolean. Default: true