# How to install gstreamer (1.22) with the vah264enc element

**URL:** <https://discourse.gstreamer.org/t/how-to-install-gstreamer-1-22-with-the-vah264enc-element/4330>\
**Category:** Newcomers\
**Created:** [March 19, 2025, 6:49pm UTC](https://discourse.gstreamer.org/t/how-to-install-gstreamer-1-22-with-the-vah264enc-element/4330 "2025-03-19T18:49:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![axuwon](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/axuwon/32/1225_2.png) [@axuwon](https://discourse.gstreamer.org/u/axuwon)\
**Post date:** [March 19, 2025, 6:49pm UTC](https://discourse.gstreamer.org/t/how-to-install-gstreamer-1-22-with-the-vah264enc-element/4330/1 "2025-03-19T18:49:21Z")

</div>

1. I have Ubuntu 22.04.5 installed on pc with Intel Core i5-6400 CPU with Mesa Intel HD Graphics 530.

2. I have installed the graphic card related drivers and programs

`sudo apt install -y intel-opencl-icd intel-media-va-driver-non-free libmfx1 libvpl2 libegl-mesa0 libegl1-mesa libegl1-mesa-dev libgbm1 libgl1-mesa-dev libgl1-mesa-dri libglapi-mesa libgles2-mesa-dev libglx-mesa0 libigdgmm12 libxatracker2 mesa-va-drivers mesa-vdpau-drivers mesa-vulkan-drivers va-driver-all vainfo hwinfo clinfo`

The output of the vainfo as follow:

```auto
libva info: VA-API version 1.14.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.14 (libva 2.12.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 22.3.1 ()
vainfo: Supported profile and entrypoints
      VAProfileNone :	VAEntrypointVideoProc
      VAProfileNone :	VAEntrypointStats
      VAProfileMPEG2Simple :	VAEntrypointVLD
      VAProfileMPEG2Simple :	VAEntrypointEncSlice
      VAProfileMPEG2Main :	VAEntrypointVLD
      VAProfileMPEG2Main :	VAEntrypointEncSlice
      VAProfileH264Main :	VAEntrypointVLD
      VAProfileH264Main :	VAEntrypointEncSlice
      VAProfileH264Main :	VAEntrypointFEI
      VAProfileH264Main :	VAEntrypointEncSliceLP
      VAProfileH264High :	VAEntrypointVLD
      VAProfileH264High :	VAEntrypointEncSlice
      VAProfileH264High :	VAEntrypointFEI
      VAProfileH264High :	VAEntrypointEncSliceLP
      VAProfileVC1Simple :	VAEntrypointVLD
      VAProfileVC1Main :	VAEntrypointVLD
      VAProfileVC1Advanced :	VAEntrypointVLD
      VAProfileJPEGBaseline :	VAEntrypointVLD
      VAProfileJPEGBaseline :	VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline:	VAEntrypointFEI
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSliceLP
      VAProfileVP8Version0_3 :	VAEntrypointVLD
      VAProfileHEVCMain :	VAEntrypointVLD
      VAProfileHEVCMain :	VAEntrypointEncSlice
      VAProfileHEVCMain :	VAEntrypointFEI

```

1. From the default ppa the Gstreamer was installed including gstreamer1.0-plugin-bad, where vah264enc should be located, but command `gst-inspect1.0 va` and `gst-inspect1.0 vah264enc` gives `No such element or plugin`.

- The gstremer version installed is 1.22.00

So I just wonder is there are some trick to do to have vah264enc to be installed?

---

<div class="post-metadata">

**Author:** ![wildiness](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/wildiness/32/1229_2.png) [@wildiness](https://discourse.gstreamer.org/u/wildiness)\
**Post date:** [March 20, 2025, 6:56pm UTC](https://discourse.gstreamer.org/t/how-to-install-gstreamer-1-22-with-the-vah264enc-element/4330/2 "2025-03-20T18:56:09Z")

</div>

Hello, it might be installed already. Try with sudo: `sudo gst-inspect-1.0 va`

I ran into this issue last year trying to use vaapi(the old name for intel hardware elements). I also made a note for my future self saying it needed “i965-va-driver-shaders” but that might just be for `vaapipostproc` and will vary depending on your specific type of processor/gpu. You might be able to change the permission to not require `sudo`, you can see the complete path to the .so files in gst-inspect, but idk.

 ![gst_va_vaapi_sudo_long](https://discourse.gstreamer.org/uploads/default/original/2X/a/aae57dc1912c473a05a9d0d17da94d8ef71464d9.jpeg)
