1[](http://waffle.io/intel/libva-utils) 2[](https://travis-ci.org/intel/libva-utils) 3[](https://scan.coverity.com/projects/intel-libva-utils) 4 5# Libva-utils Project 6 7libva-utils is a collection of utilities and examples to exercise VA-API in accordance with the libva project. --enable-tests (default = no) provides a suite of unit-tests based on Google Test Framework. A driver implementation is necessary to properly operate. 8 9VA-API is an open-source library and API specification, which provides access to graphics hardware acceleration capabilities 10for video processing. It consists of a main library and driver-specific acceleration backends for each supported hardware vendor. 11 12If you would like to contribute to libva, check our [Contributing guide](https://github.com/intel/libva-utils/blob/master/CONTRIBUTING.md). 13 14We also recommend taking a look at the ['janitorial' bugs](https://github.com/intel/libva-utils/issues?q=is%3Aopen+is%3Aissue+label%3AJanitorial) in our list of open issues as these bugs can be solved without an extensive knowledge of libva-utils. 15 16We would love to help you start contributing! 17 18The libva-utils development team can be reached via github issues. 19 20# Build and Install Libva-utils 21 22### Install Libva 23You could refer to https://github.com/intel/libva to install Libva 24 25### Build Libva-utils 26Take latest libva-utils version: 27``` 28git clone https://github.com/intel/libva-utils.git 29cd libva-utils 30``` 31 32Build libva-utils by autogen. You could add ```--enable-tests``` to run unit test 33``` 34./autogen.sh or ./autogen.sh --enable-tests 35make 36sudo make install 37``` 38 39or build using Meson 40``` 41mkdir build 42cd build 43meson .. or meson .. -Denable-tests 44ninja 45sudo ninja install 46``` 47 48 49### Validate your environment 50You could run ```vainfo``` to check your media stack environment is correct or not as below. 51``` 52sys@KBL:~/github/libva-utils$ vainfo 53Trying display: drm 54libva info: VA-API version 1.14.0 55libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so 56libva info: Found init function __vaDriverInit_1_14 57libva info: va_openDriver() returns 0 58vainfo: VA-API version: 1.18 (libva 2.18.0.pre1) 59vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 22.3.1 () 60vainfo: Supported profile and entrypoints 61 VAProfileMPEG2Simple : VAEntrypointVLD 62 VAProfileMPEG2Main : VAEntrypointVLD 63 VAProfileH264Main : VAEntrypointVLD 64 VAProfileH264Main : VAEntrypointEncSliceLP 65 VAProfileH264High : VAEntrypointVLD 66 VAProfileH264High : VAEntrypointEncSliceLP 67 VAProfileJPEGBaseline : VAEntrypointVLD 68 VAProfileJPEGBaseline : VAEntrypointEncPicture 69 VAProfileH264ConstrainedBaseline: VAEntrypointVLD 70 VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP 71 VAProfileVP8Version0_3 : VAEntrypointVLD 72 VAProfileHEVCMain : VAEntrypointVLD 73 VAProfileHEVCMain10 : VAEntrypointVLD 74 VAProfileVP9Profile0 : VAEntrypointVLD 75 VAProfileVP9Profile2 : VAEntrypointVLD 76 ... 77```