November 5, 2020
Linux: Verify hardware video decoding is working
The utility vainfo may be used to check the status of hardware video decoding, if it is enabled and working on Linux.
It should be run without arguments and, if successful, it will not output any errors.
$ vainfo
libva info: VA-API version 1.17.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_17
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.17 (libva 2.12.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 23.1.1 ()
vainfo: Supported profile and entrypoints
The exit code should be 0
$ echo $?
0
