OpenSouce i965_drv_video.so is not working properly with OS-CentOs7.1 and NUC(D54250WYKH)

OpenSouce i965_drv_video.so is not working properly with OS-CentOs7.1 and NUC(D54250WYKH)

Hi All,

I have seen that media SDK  - iHD_drv_video.so having  invalid read and write issue. Following is the corresponding post with Valgrind log-

https://software.intel.com/en-us/comment/1847176#comment-1847176

So, I have started writing  mpeg2 decoder using vaapi API.  And for that, I have install latest open source - libva-1.6.1,vaapi-1.6.1 , Kernel-4.2.0 ( 01.org) . from

https://01.org/linuxgraphics/downloads/2015q3-intel-graphics-stack-release-0

I have taken sample code  on how to use vaapi api to write decoder from 

http://cgit.freedesktop.org/libva/tree/test/decode/mpeg2vldemo.cpp

and extended same code for one I-frame  by sending slice level buffer and finally  calling vaendPicture. Sample example  s given here for mpeg2 decode.

https://wiki.ubuntu.com/mobile-hw-decode-va-api

Now the problem is as follows-

With iHD_drv_Video.so  my code is working fine which uses Vaapi api from  SDK  libva.

libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'iHD'
libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so
libva info: Found init function __vaDriverInit_0_32
libva info: va_openDriver() returns 0

---------Extrated info from VA_DPY in Application------------
vainfo: VA-API version: 0.35
vainfo: Driver version: 16.4.2.1.39163-ubit
vainfo: Supported profile and entrypoints
VAProfileH264Baseline           :  VAEntrypointEncSlice
VAProfileH264Baseline           :  <unknown entrypoint>
VAProfileH264Baseline           :  <unknown entrypoint>
VAProfileH264ConstrainedBaseline:  VAEntrypointVLD
VAProfileH264ConstrainedBaseline:  VAEntrypointEncSlice
VAProfileH264ConstrainedBaseline:  <unknown entrypoint>
VAProfileH264ConstrainedBaseline:  <unknown entrypoint>
VAProfileH264Main               :  VAEntrypointVLD
VAProfileH264Main               :  VAEntrypointEncSlice
VAProfileH264Main               :  <unknown entrypoint>
VAProfileH264Main               :  <unknown entrypoint>
VAProfileH264High               :  VAEntrypointVLD
VAProfileH264High               :  VAEntrypointEncSlice
VAProfileH264High               :  <unknown entrypoint>
VAProfileH264High               :  <unknown entrypoint>
VAProfileMPEG2Simple            :  VAEntrypointEncSlice
VAProfileMPEG2Simple            :  VAEntrypointVLD
VAProfileMPEG2Main              :  VAEntrypointEncSlice
VAProfileMPEG2Main              :  VAEntrypointVLD
VAProfileVC1Advanced            :  VAEntrypointVLD
VAProfileVC1Main                :  VAEntrypointVLD
VAProfileVC1Simple              :  VAEntrypointVLD
VAProfileJPEGBaseline           :  VAEntrypointVLD
VAProfileJPEGBaseline           :  VAEntrypointEncPicture
VAProfileVP8Version0_3          :  VAEntrypointEncSlice
VAProfileVP8Version0_3          :  VAEntrypointVLD
VAProfileVP8Version0_3          :  <unknown entrypoint>
VAProfileHEVCMain               :  VAEntrypointEncSlice
VAProfileVP9Profile0            :  VAEntrypointEncSlice
VAProfileVP9Profile0            :  VAEntrypointVLD
VAProfileVP9Profile0            :  <unknown entrypoint>
<unknown profile>               :  VAEntrypointVideoProc
VAProfileNone                   :  VAEntrypointVideoProc
VAProfileNone                   :  <unknown entrypoint>

 

But same code is giving wrong decode output with open source driver- i965_drv_video.so -

libva info: VA-API version 0.38.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'i965'
libva info: Trying to open /usr/local/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_38
libva info: va_openDriver() returns 0
---------Extrated info from VA_DPY in Application------------
vainfo: VA-API version: 0.38
vainfo: Driver version: Intel i965 driver for Intel(R) Haswell Mobile - 1.6.1
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
VAProfileH264MultiviewHigh      :  VAEntrypointVLD
VAProfileH264MultiviewHigh      :  VAEntrypointEncSlice
VAProfileH264StereoHigh         :  VAEntrypointVLD
VAProfileH264StereoHigh         :  VAEntrypointEncSlice
VAProfileVC1Simple              :  VAEntrypointVLD
VAProfileVC1Main                :  VAEntrypointVLD
VAProfileVC1Advanced            :  VAEntrypointVLD
VAProfileNone                   :  VAEntrypointVideoProc
VAProfileJPEGBaseline           :  VAEntrypointVLD
VAProfileH264MultiviewHigh      :  VAEntrypointVLD
VAProfileH264MultiviewHigh      :  VAEntrypointEncSlice
VAProfileH264StereoHigh         :  VAEntrypointVLD
VAProfileH264StereoHigh         :  VAEntrypointEncSlice

Plz suggest what could be the issue. With open Source driver what can be the possible change compare to iHD_drvier  which causes wrong output,

 

Regards,,

Sumit Jha

 

 

 

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.