Skip to content

vulkan: add h26x encoders support

Stéphane Cerveau requested to merge dabrain34/gstreamer:dab_vkencode_h26x into main


This work intends to provide support to final specifications allowing to encode media content using Vulkan API. See

This MR is now complete and can encode video content in h264 and h265 with I, P and B frames.

Tt has been tested on both Windows and Linux with compatible drivers to the KHR extensions.

Compatible drivers

How to build it

As the official Vulkan SDK does not support the latest encoder final specs, you need:

  1. install it through
  2. Download and build/install the Vulkan Header fron here
  3. Build GStreamer using -Dgst-plugins-bad:vulkan-sdk-path=/path/to/vulkan/headers/install
$ meson setup builddir -Dgst-plugins-bad:vulkan-video=enabled -Dgst-plugins-bad:vulkan-sdk-path=/path/to/vulkan/headers/install

$ ninja -C builddir

Missing features

  • H264 b-frames support.
  • H265 b-frames support.


  • Need Vulkan SDK >= 1.3.274 and suitable IHV drivers.
Edited by Stéphane Cerveau

Merge request reports