Graphics
Intel® graphics drivers and software, compatibility, troubleshooting, performance and optimization
18256 Discussions

libva info: va_openDriver() returns 1

Dayong
Beginner
1,548 Views

CPU is i7-3770

 

On CentOS command vainfo ouput,

[root@CentOS-79-64-minimal ~]# vainfo
error: can't connect to X server!
libva info: VA-API version 0.40.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_40
failed to open /usr/lib64/dri/hybrid_drv_video.so
Failed to wrapper hybrid_drv_video.so
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.40 (libva )
vainfo: Driver version: Intel i965 driver for Intel(R) Ivybridge Desktop - 1.8.3
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Simple : VAEntrypointEncSlice
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointEncSlice
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileH264StereoHigh : VAEntrypointVLD
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
VAProfileJPEGBaseline : VAEntrypointVLD

 

 

but I was unable to bring GPU into docker ubuntu container,

[root@CentOS-79-64-minimal ~]# docker run --rm --device=/dev/dri -v /root:/opt kleveralt/qsvenc:v0 --check-hw
libva info: VA-API version 1.14.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
libva info: va_openDriver() returns 1
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: va_openDriver() returns -1
DRMLibVA::DRMLibVA: Intel GPU was not found
libva info: VA-API version 1.14.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
libva info: va_openDriver() returns 1
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: va_openDriver() returns -1
DRMLibVA::DRMLibVA: Intel GPU was not found

 

 

Here is my dockerfile, this genrated docker image runs well on host with the same CentOS with CPU i7-6700, but I am confused why it failed on 3770, please help.

 

FROM ubuntu:20.04

RUN apt update
RUN apt install -y gpg-agent wget software-properties-common
RUN wget -qO - https://repositories.intel.com/graphics/intel-graphics.key | apt-key add -
RUN apt-add-repository 'deb [arch=amd64] https://repositories.intel.com/graphics/ubuntu focal main' && apt update && \
apt install -y intel-media-va-driver-non-free intel-opencl-icd intel-level-zero-gpu level-zero libmfx1

RUN apt install -y --no-install-recommends libfdk-aac-dev libass-dev curl g++ make nasm yasm
RUN cd /tmp && curl https://www.ffmpeg.org/releases/ffmpeg-4.4.2.tar.xz | tar xJf - && \
cd ffmpeg-4.4.2 && ./configure --prefix=/usr --enable-shared --enable-nonfree --enable-libfdk-aac --enable-libass && \
make -s -j`nproc` && make install
RUN cd /tmp && rm -r ffmpeg-4.4.2 && apt autoremove -y --purge gpg-agent wget software-properties-common curl g++ make nasm yasm

RUN apt install -y ocl-icd-opencl-dev libva-drm2 libigfxcmrt7

COPY qsvencc_7.01_Ubuntu20.04_amd64.deb .
RUN dpkg -i --force-depends ./qsvencc_7.01_Ubuntu20.04_amd64.deb && rm *.deb

RUN rm -rf /var/lib/apt/lists/*


ENTRYPOINT ["/usr/bin/qsvencc"]



0 Kudos
1 Reply
Jean_Intel
Moderator
1,509 Views

Hello Dayong,


Thank you for posting on the Intel️® communities.  


Due to this product being discontinued, Intel Customer Service no longer supports inquiries for it, but perhaps fellow community members have the knowledge to jump in and help. You may also find the Discontinued Products (https://www.intel.com/content/www/us/en/support/discontinued-products.html) website helpful to address your request. Thank you for understanding.   


You can get the specifications and verify this product's discontinuance status at the Intel® Product Specifications website > Product Status > "Discontinued". https://ark.intel.com/ 


Please keep in mind that this thread will no longer be monitored by Intel. Thank you for your understanding.


Best regards, 

Jean O.  

Intel Customer Support Technician


Reply