I don't like this approach. nvidia hardware support vaapi too via wrapper.