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.
3056 Discussions

Media SDK on Ubuntu 16.04 failure: missing igfx_registry.txt?

J_M_E_
Beginner
473 Views

 Installation follows the pattern described in this thread:https://software.intel.com/en-us/forums/intel-media-sdk/topic/691360

Outputs from all tests etc (below). look very encouraging. But running the multi_transcode example fails with error code -3. strace reveals a failure to find igfx_registry.txt? What have I missed here?

-----------------elided strace---------------------

open("/opt/intel/opencl/libdrm_intel.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/libdrm_intel.so", O_RDONLY|O_CLOEXEC) = 6
read(6, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\2200\0\0\0\0\0\0"..., 832) = 832
fstat(6, {st_mode=S_IFREG|0755, st_size=445016, ...}) = 0
close(6)                                = 0
ioctl(3, _IOC(_IOC_READ|_IOC_WRITE, 0x64, 0x76, 0x10), 0x7ffe767de990) = -1 EINVAL (Invalid argument)
open("/etc/igfx_registry.txt", O_RDONLY) = -1 ENOENT (No such file or directory)
write(1, "\n", 1
)                       = 1
write(1, "Return on error: error code -3,\t"..., 167Return on error: error code -3,    /home/lab_msdk/buildAgentDir/buildAgent_MediaSDK4/git/mdp_msdk-samples/samples/sample_multi_transcode/src/pipeline_transcode.cpp    2924

) = 167
write(1, "\n", 1
)                       = 1
write(1, "Return on error: error code -3,\t"..., 170Return on error: error code -3,    /home/lab_msdk/buildAgentDir/buildAgent_MediaSDK4/git/mdp_msdk-samples/samples/sample_multi_transcode/src/sample_multi_transcode.cpp    307

-------------------------snip---------------------------------

jevans@nuci5:~/Intel$ uname -a
Linux nuci5 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux


jevans@nuci5:~/Intel$ vainfo
libva info: VA-API version 0.99.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
vainfo: VA-API version: 0.99 (libva 1.67.0.pre1)
vainfo: Driver version: 16.5.55964-ubit
vainfo: Supported profile and entrypoints
      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>
      VAProfileVP9Profile0            :    <unknown entrypoint>
      <unknown profile>               :    VAEntrypointVideoProc
      VAProfileNone                   :    VAEntrypointVideoProc
      VAProfileNone                   :    <unknown entrypoint>
jevans@nuci5:~/Intel$ 

jevans@nuci5:~/Intel$ python sys_analyzer_linux.py 
--------------------------
Hardware readiness checks:
--------------------------
 [ OK ] Processor name: Intel(R) Core(TM) i5-5250U CPU @ 1.60GHz
--------------------------
OS readiness checks:
--------------------------
 [ OK ] GPU visible to OS
--------------------------
Intel(R) Media Server Studio Install:
--------------------------
 [ OK ] user in video group
 [ OK ] libva.so.1 found
 [ OK ] vainfo reports valid codec entry points
 [ OK ] /dev/dri/renderD128 connects to Intel i915

--------------------------
Media SDK Plugins available:
(for more info see /opt/intel/mediasdk/plugins/plugins.cfg)
--------------------------
    H264LA Encoder     = 588f1185d47b42968dea377bb5d0dcb4
    VP8 Decoder     = f622394d8d87452f878c51f2fc9b4131
    HEVC Decoder     = 33a61c0b4c27454ca8d85dde757c6f8e
    HEVC Encoder     = 6fadc791a0c2eb479ab6dcd5ea9da347
--------------------------
Component Smoke Tests:
--------------------------
 [ OK ] Media SDK HW API level:1.19
 [ OK ] Media SDK SW API level:1.19
 [ OK ] OpenCL check:platform:Intel(R) OpenCL GPU OK CPU OK
jevans@nuci5:~/Intel$ 

jevans@nuci5:~/Intel$ /opt/intel/mediasdk/samples/sample_multi_transcode  -i::h264 ~/Intel/test_stream.264 -o::h264 ~/Intel/out.h264 -hw -la
Multi Transcoding Sample Version 7.0.16053497

libva info: VA-API version 0.99.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
Pipeline surfaces number (DecPool): 59

Return on error: error code -3,    /home/lab_msdk/buildAgentDir/buildAgent_MediaSDK4/git/mdp_msdk-samples/samples/sample_multi_transcode/src/pipeline_transcode.cpp2924


Return on error: error code -3,    /home/lab_msdk/buildAgentDir/buildAgent_MediaSDK4/git/mdp_msdk-samples/samples/sample_multi_transcode/src/sample_multi_transcode.cpp    307

 

0 Kudos
3 Replies
Mark_L_Intel1
Moderator
473 Views

Hi,

I am not quite clear your installation process but I think that is the problem. From the error message, it seems libdrm is not the correct version, but the problem might happens all i915-i965-libdrm-libva stack, so please clarify these software components carefully.

The script was originally wrote for Ubuntu14.04, it should be ok for 16.04 but there might be little bit difference.

Mark

0 Kudos
Joo_Fei_W_
Beginner
473 Views

Hi JME,

I'm getting the exact same error as yours,

How did you fix the problem?

0 Kudos
spyer_s_
Beginner
473 Views

Hi joo,

Did you install it in ubuntu ?

Can you Share the steps ?

0 Kudos
Reply