Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Giri_b_
Beginner
683 Views

How to use Intel HW Accelerators

I followed the steps mentioned in the getting started guide for installing the Intel media server studio SDK.

Version used: MediaServerStudioEssentials2016.tar.gz

Here are details about system:

 x86_64 CPU op-mode(s): 32-bit, 64-bit 

Model name: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz (SKYLAKE PROCESSOR)

Skylake PC

CentOS Linux release 7.1.1503

I checked few basic steps like :

uname –r

checked booted into the correct kernel or not.

lspci –nn | grep VGA

Checked if the Intel® Integrated Graphics

lsmod | grep i915

Checked if the i915 DRM module is installed

I find some problem while running vainfo as follow.

[skylake@localhost user]$ vainfo
error: failed to initialize display
Aborted (core dumped)

How to solve above problem, can any one please help me ..

Thanks&Regards,

0 Kudos
6 Replies
Soflen_S_Intel
Employee
683 Views

I've transferred it to the Forum about Intel Media SDK for Linux Server: https://software.intel.com/en-us/forums/intel-media-sdk-for-linux-servers-beta/topic/621445.

Soflen_S_Intel
Employee
683 Views

Hi Giri,

I got the reply from our internal team:

1. The Media Server Studio 2016 downloadable today does not include 6th Generation Core (Skylake) support.  It is intended for 4th and 5th Generation (Haswell and Broadwell) systems.  If you'd like you can use the client release of Media SDK for Windows on 6th Generation Core machines to preview new hardware features.

2.   While we don't have any timeline specifics for Linux yet, this forum is one of the best places to watch for announcements:  Media SDK Forum (https://software.intel.com/en-us/forums/intel-media-sdk)

Giri_b_
Beginner
683 Views

Dear Soflen S,

Thank you very much,

I tried on 4th generation Haswell system,

i) my system details are as follows:

 - Intel(R) Core(TM) i7-4700MQ CPU @ 2.40GHz

 - Linux 7.1 version

 but still i am getting some issues like:

When i run vainfo , getting like:

1) [user@localhost ffmpeg-3.0]# vainfo

libva info: VA-API version 0.99.0
Xlib:  extension "XFree86-DRI" missing on display ":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

2) trying to decode using h264_qsv , getting like 

[user@localhost ffmpeg-3.0]$ ./ffmpeg -i /home/xyz/tractor.264 -vcodec h264_qsv /home/xyz/out1.yuv

ffmpeg version 3.0 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
  configuration: --enable-libmfx --enable-nonfree
  libavutil      55. 17.103 / 55. 17.103
  libavcodec     57. 24.102 / 57. 24.102
  libavformat    57. 25.100 / 57. 25.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 31.100 /  6. 31.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
[h264 @ 0x23a6380] Stream #0: not enough frames to estimate rate; consider increasing probesize
Input #0, h264, from '/home/xyz/tractor.264':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: h264 (High), yuv420p, 1280x720, 25 fps, 25 tbr, 1200k tbn, 50 tbc
[h264_qsv @ 0x245d4c0] mfx init: /dev/dri/renderD128 fd open failed
[h264_qsv @ 0x245d4c0] mfx init: /dev/dri/renderD129 fd open failed
[h264_qsv @ 0x245d4c0] mfx init: /dev/dri/renderD130 fd open failed
libva info: VA-API version 0.99.0
libva info: va_getDriverName() returns -1
libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
[h264_qsv @ 0x245d4c0] mfx init: /dev/dri/card0 vaInitialize failed
[h264_qsv @ 0x245d4c0] mfx init: /dev/dri/card1 fd open failed
[h264_qsv @ 0x245d4c0] mfx init: /dev/dri/card2 fd open failed
[h264_qsv @ 0x245d4c0] Selected ratecontrol mode is not supported by the QSV runtime. Choose a different mode.
Output #0, rawvideo, to '/home/xyz/out1.yuv':
    Stream #0:0: Video: h264, none, q=2-31, 128 kb/s, 25 fps
    Metadata:
      encoder         : Lavc57.24.102 h264_qsv
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_qsv))
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

can you please help me regarding above issues.

 

Regards,

Giri.

 

 

Giri_b_
Beginner
683 Views

 

* Linux CentOS 7.1 version

Oleg_M_1
Beginner
683 Views

Giri,

looks like environment vars LIBVA_DRIVER_NAME and LIBVA_DRIVERS_PATH exist for similar issues.

 

Light_Intel
Moderator
683 Views

This issue has been resolved. If you have a similar question please start a new thread to ensure your issue is being addressed in a timely manner.

Reply