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.

could not open /dev/dri/renderD128

thierry_t_
Beginner
7,731 Views

Hi !

I have installed MSS2017 on ubuntu 16.04LTS. I run sys_analyzer_linux.py to check my configurarion. I configured ffmpeg with x264, x265, libmfx. Compilation is ok. Processor name: Intel(R) Core(TM) i5-6300HQ CPU @ 2.30GHz

 

--------------------------------------------------------------------------------------------------------------------

 

tapiet@lnx35:~$ ls /dev/dri/
card0  card1  controlD64  controlD65  renderD128  renderD129

 

 


tapiet@lnx35:~$ ./sys_analyzer_linux.py
--------------------------
Hardware readiness checks:
--------------------------
 [ OK ] Processor name: Intel(R) Core(TM) i5-6300HQ CPU @ 2.30GHz
--------------------------
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
 [ ERROR ] could not open /dev/dri/renderD128
 [ OK ] /dev/dri/renderD129 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:igdrcl: using XCB-DRI2 authentication...
platform:Intel(R) OpenCL GPU OK CPU OK

 

##########################################################################

if i run ffmpeg , i get :

 

tapiet@lnx35:/opt/ffmpeg_hw$ ./ffmpeg -v verbose -i ~/in_crowd_run_1080p50.mp4 -vcodec h264_qsv ~/test.mp4
ffmpeg version 3.2.2 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
  configuration: --prefix=/opt/ffmpeg_hw --disable-static --enable-shared --enable-nonfree --enable-pic --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libmfx --enable-gpl --enable-zlib --pkg-config-flags=--static
  libavutil      55. 34.100 / 55. 34.100
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.100 / 57. 56.100
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc    54.  1.100 / 54.  1.100
[h264 @ 0x1dd8900] Reinit context to 1920x1088, pix_fmt: yuv420p10le
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/tapiet/in_crowd_run_1080p50.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.56.100
  Duration: 00:00:10.00, start: 0.000000, bitrate: 24178 kb/s
    Stream #0:0(und): Video: h264 (High 10), 1 reference frame (avc1 / 0x31637661), yuv420p10le(left), 1920x1080 (1920x1088) [SAR 1:1 DAR 16:9], 24172 kb/s, 50 fps, 50 tbr, 12800 tbn, 100 tbc (default)
    Metadata:
      handler_name    : VideoHandler
[graph 0 input from stream 0:0 @ 0x1deace0] w:1920 h:1080 pixfmt:yuv420p10le tb:1/12800 fr:50/1 sar:1/1 sws_param:flags=2
[auto-inserted scaler 0 @ 0x1ddce80] w:iw h:ih flags:'bicubic' interl:0
[format @ 0x1ddb240] auto-inserting filter 'auto-inserted scaler 0' between the filter 'Parsed_null_0' and the filter 'format'
[auto-inserted scaler 0 @ 0x1ddce80] w:1920 h:1080 fmt:yuv420p10le sar:1/1 -> w:1920 h:1080 fmt:nv12 sar:1/1 flags:0x4
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 @ 0x1de9740] mfx init: /dev/dri/renderD128 vaInitialize failed

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
[h264_qsv @ 0x1de9740] mfx initialization: /dev/dri/renderD129 vaInitialize successful
[h264_qsv @ 0x1de9740] Initialized an internal MFX session using hardware accelerated implementation
[h264_qsv @ 0x1de9740] Using the VBR with lookahead (LA) ratecontrol method
[h264_qsv @ 0x1de9740] Error initializing the encoder
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

########################################################

 

vainfo gives :

tapiet@lnx35:~/mss2017-install$ 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>
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointEncSlice
      VAProfileVP9Profile0            : <unknown entrypoint>
      <unknown profile>               : VAEntrypointVideoProc
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileNone                   : <unknown entrypoint>

#####################################################################

I can send the content of my script installation if necessary.

Is somebody could help me ?

 

Thank's a lot

 

Thierry

 

0 Kudos
2 Replies
Anthony_C_
Beginner
7,730 Views

Was a solution ever found for this issue? I seem to be encountering a similar problem, possibly. When I try to run the provided simple_encode (from the mediasdk-tutorials-0.0.3), I receive the following error message:

$ ./simple_encode -g 256x256 -b 5000 -f 30/1

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

 Device operation failure. src/simple_encode.cpp 167


Or, if I edit mediasdk-tutorials-0.0.3/common/common_vaapi.cpp, line 77:

EDIT
m_fd = open("/dev/dri/card0", 0_RDWR);

CHANGE TO
m_fd = open("/dev/dri/card1", 0_RDWR);

Then I get the following output when running the simple_encode:

$ ./simple_encode -g 256x256 -b 5000 -f 30/1
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)
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Aborted


Which looks like it could be similar to Thierry's problem.


Furthermore, here is the output when I run the provided sys_analyzer_linux.py:

$ ./sys_analyzer_linux.py 
--------------------------
Hardware readiness checks:
--------------------------
 [ OK ] Processor name: Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz
--------------------------
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
 [ ERROR ] could not open /dev/dri/renderD129

--------------------------
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:igdrcl: using XCB-DRI2 authentication...
platform:Intel(R) OpenCL GPU OK CPU OK


Which is a similar output that Thierry is getting from the system analyzer.


Additional system information:

$ lscpu
Architecture:          x86_64
CPU(s):                8
...
Model name:            Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz

$ uname -a
Linux ... 4.4.0-83-generic #106-Ubuntu SMP Mon Jun 26 17:54:43 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06)
01:00.0 VGA compatible controller: NVIDIA Corporation GK107GL [Quadro K420] (rev a1)

$ 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.1.59511-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>
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointEncSlice
      VAProfileVP9Profile0            : <unknown entrypoint>
      <unknown profile>               : VAEntrypointVideoProc
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileNone                   : <unknown entrypoint>


Thank you to anyone who can help me diagnose this issue.

0 Kudos
Jeffrey_M_Intel1
Employee
7,730 Views

Sorry for the delayed reply.

Here are a few things to try:

  • The correct interface to use is /dev/dri/renderD12x.  Here the system analyzer script says the Intel GPU is renderD129.
  • Sometimes there can be complications with other GPUs.  As an experiment, do your results change if you remove the other GPU or disable it in your BIOS?

 

0 Kudos
Reply