IMO, to fix this, you just need to find a way to determine what is the driver used by the hardware/software configuration at runtime and preload it, together with libva. I suppose VAAPI_Initialize() is trying to load more stuff you don't have preloaded.