Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.

Intel vaapi error: can't connect to X server

mfoglio
New Contributor I
4,007 Views

I am using an EC2 with Ubuntu 18.04, CPU Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz, and a Nvidia Tesla T4. It seems `vainfo` reports a problematic setup:

error: can't connect to X server!
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns -1
libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
vaInitialize failed with error code -1 (unknown libva error),exit


My goal is to use vaapi accelerated HW decoding with gstreamer in Python.

`lspci | grep VGA` returns:

error: can't connect to X server!
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns -1
libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
vaInitialize failed with error code -1 (unknown libva error),exit

 

Note:
- I installed on the EC2 the Nvidia drivers (not sure if they could interfere with Intel's graphic card)
- I also installed OpenVINO
- I was following this guide http://lifestyletransfer.com/how-to-install-gstreamer-vaapi-plugins-on-ubuntu/ for the setup and I got stuck at the point when I run `vaapi`

How can I fix this?

0 Kudos
4 Replies
JaideepK_Intel
Moderator
3,953 Views

Hi,

Thank you for posting in Intel Communities.

We are investigating your issue at our end and we will get back to you soon.


Thanks,

Jaideep


0 Kudos
JaideepK_Intel
Moderator
3,901 Views

Hi,

Sorry for delay, “vainfo” normally reports the availability of the libVA on Linux platform which is the layer that connect media SDK library and kernel driver, if it is not available, Media SDK cannot use hardware acceleration in Linux.

Xeon Processors:

For Media SDK, we must make sure “Quick Sync” is included in the integrated GPU. So Xeon(R) Platinum 8259CL will not work. We only include GPU in Xeon E3.

If Nvidia's GPU takes the primary position, the integrated GPU might not be accessible. Please go through below links:

  1. https://github.com/Intel-Media-SDK/MediaSDK/issues/167
  2. https://github.com/Intel-Media-SDK/MediaSDK/issues/1067
  3. https://github.com/Intel-Media-SDK/MediaSDK/issues/2477

 

Thanks,

Jaideep

 

0 Kudos
JaideepK_Intel
Moderator
3,875 Views

Hi,


If this resolves your issue, make sure to accept this as a solution. This would help others with similar issue. Thank you!


Thanks,

Jaideep


0 Kudos
JaideepK_Intel
Moderator
3,840 Views

Hi,


I have not heard back from you. This thread will no longer be monitored by Intel. If you need further assistance, please post a new question.


Thanks,

Jaideep


0 Kudos
Reply