Intel arc 310 driver/transcoding issues


i have issues getting transcoding to run on my server with an intel arc 310 GPU. vainfo gives me this output:

error: can't connect to X server!
libva info: VA-API version 1.20.0
libva info: Trying to open /usr/lib64/dri/
libva info: Found init function __vaDriverInit_1_11
libva error: /usr/lib64/dri/ init failed
libva info: va_openDriver() returns 1
libva info: Trying to open /usr/lib64/dri/
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit

To my understanding I need libva, gmmlib and the intel-media-driver for transcoding. I got the intel-media-driver from rpm fusion, but this version and its dependency gmmlib are ancient Is there a fix for this apart from manual install?

rocky linux 9.4
kernel 5.14.0-427.16.1.el9_4.x86_64
libva 2.20.0
intel-media-driver 21.1.3
intel-gmmlib 21.1.2