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.

QSV dowsn't work, MSS2017 on Ubuntu 16

Milan_C_
Beginner
1,563 Views
Ubuntu 16.04.1 LTS
Linux Stream.local 4.4.0 #1 SMP Wed Sep 7 12:00:18 CEST 2016 x86_64 x86_64 x86_64 GNU/Linux
CPU0: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz (family: 0x6, model: 0x3c, stepping: 0x3)
- Media Server Studio 2017, installation via install_IntelSDK.sh, all kernel patches installed
- cuda_8.0.27.1_linux

cat /etc/environment
# CUDA
CUDA_HOME=/usr/local/cuda
# Intel MediaSDK
LIBVA_DRIVER_NAME=iHD
LIBVA_DRIVERS_PATH=/opt/intel/mediasdk/lib64
PATH="/usr/local/cuda:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
LD_LIBRARY_PATH="/usr/local/cuda/lib64:/opt/intel/opencl:/usr/local/lib:/usr/lib64"
Linux Stream.local 4.4.0 #1 SMP Wed Sep 7 12:00:18 CEST 2016 x86_64 x86_64 x86_64 GNU/Linux

cd /opt/intel/mediasdk/opensource/libdrm/2.4.66-55964/
tar xf libdrm-2.4.66.tar.bz2
cd libdrm-2.4.66
./configure
make -j 8
make install
cd /opt/intel/mediasdk/opensource/libva/1.67.0.pre1-55964
tar xf libva-1.67.0.pre1.tar.bz2
cd libva-1.67.0.pre1
./configure --enable-static
make -j 8
make install
cd /opt/intel/mediasdk/opensource/mfx_dispatch/
mkdir build
cd build
cmake –D__ARCH:STRING=intel64 ../
make -j 8
# cat /usr/lib/pkgconfig/libmfx.pc
prefix=/opt/intel/mediasdk
exec_prefix=${prefix}
libdir=${prefix}/lib/lin_x64
includedir=${prefix}/include
Name: libmfx
Description: Intel Media Server Studio SDK
Version: 16.4.2
Requires:
Libs: -L${libdir} -lmfx -lva -lstdc++ -ldl -lva-drm -ldrm
Cflags: -I${includedir} -I/usr/local/include/libdrm

# ls -l /dev/dri
crwxrwxrwx 1 vlc vlc 226,   0 Sep 14 11:23 card0
crwxrwxrwx 1 vlc vlc 226,  64 Sep 14 11:23 controlD64
crwxrwxrwx 1 vlc vlc 226, 128 Sep 14 11:23 renderD128
 
# vainfo
error: can't connect to X server!
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>?
 
+ ffmpeg compiled with --enable-libmfx alo ok.
All seems ok, but...
 
# /opt/intel/mediasdk/samples/sample_multi_transcode -i::h264 /opt/intel/mediasdk/samples/content/test_stream.264 -o::h264 /opt/intel/mediasdk/samples/content/test_out.h2$
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
Return on error: error code -2, /home/lab_msdk/buildAgentDir/buildAgent_MediaSDK4/git/mdp_msdk-samples/samples/sample_multi_transcode/src/pipeline_transcode.cpp        3372
Return on error: error code -2, /home/lab_msdk/buildAgentDir/buildAgent_MediaSDK4/git/mdp_msdk-samples/samples/sample_multi_transcode/src/sample_multi_transcode.cpp    277
 
ffmpeg -y -i "udp://@239.23.0.101:1234" -c:v h264_qsv -preset:v faster out.qsv.mp4
...
Input #0, mpegts, from 'udp://@239.23.0.101:1234':
  Duration: N/A, start: 36732.375211, bitrate: N/A
  Program 261
    Stream #0:0[0x7d1]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x7d2](cze): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s
    Stream #0:2[0x7d4](cze): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, mono, s16p, 64 kb/s (visual impaired)
    Stream #0:3[0x7d6](cze): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) (hearing impaired)
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 @ 0x40e9200] Error initializing the encoder
Output #0, mp4, to 'out.qsv.mp4':
    Stream #0:0: Unknown: none, SAR 1:1 DAR 0:0
    Metadata:
      encoder         : Lavc57.55.101 h264_qsv
    Stream #0:1(cze): Unknown: none
    Metadata:
      encoder         : Lavc57.55.101 aac
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_qsv))
  Stream #0:1 -> #0:1 (mp2 (native) -> aac (native))
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
 
0 Kudos
24 Replies
Alexander_K_5
Beginner
1,343 Views

Hi

MSS2017 doesn't support 4th genereration Intel Core processors.

0 Kudos
Milan_C_
Beginner
1,343 Views

Thx Alexander, I'm going to try it on i7-6700K​.

0 Kudos
Milan_C_
Beginner
1,343 Views

Hi, I have the same issue on Skylake... :(

/# 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>

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
Return on error: error code -2, /home/lab_msdk/buildAgentDir/buildAgent_MediaSDK4/git/mdp_msdk-samples/samples/sample_multi_transcode/src/pipeline_transcode.cpp        3372

Return on error: error code -2, /home/lab_msdk/buildAgentDir/buildAgent_MediaSDK4/git/mdp_msdk-samples/samples/sample_multi_transcode/src/sample_multi_transcode.cpp    277
0 Kudos
Anna_B_Intel
Employee
1,343 Views

Hi Milan,

It seems like you don't have rights for writing to /opt/intel/mediasdk/samples/content/. Try to save output in another directory. 

Best wishes,

Anna

0 Kudos
Milan_C_
Beginner
1,343 Views

Ouch, I apologize.

It was my big mistake in paths. :/ Now it works and solved. :-)

0 Kudos
jan_g_1
Beginner
1,343 Views

i install media server studio 2017 on i7-6700k ubuntu 16.04.

root@tvhneu:/opt/intel/mediasdk/opensource/mfx_dispatch/build# vainfo
error: can't connect to X server!
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>

 

then i compile ffmpeg but ....

    Stream #0:0[0x201]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x202](deu): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 192 kb/s
Please use -b:a or -b:v, -b is ambiguous
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 @ 0x37fa7c0] Error initializing the encoder
Output #0, mpegts, to 'udp://127.0.0.1:10000':
    Stream #0:0: Video: h264, none, q=2-31, 128 kb/s, SAR 1:1 DAR 0:0, 25 fps
    Metadata:
      encoder         : Lavc56.60.100 h264_qsv
    Stream #0:1(deu): Audio: aac, 0 channels, 128 kb/s
    Metadata:
      encoder         : Lavc56.60.100 aac
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_qsv))
  Stream #0:1 -> #0:1 (mp2 (native) -> aac (native))
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

 

can anyone help me?

 

 

root@tvhneu:/opt/intel/mediasdk/samples# ./sample_multi_transcode -i::h264 /opt/intel/mediasdk/samples/streams/test_stream.264 -o::h264 /home/bla.264
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): 20

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


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
Jeffrey_M_Intel1
Employee
1,343 Views

In case it might help to diagnose your system, I've added some updates to the system analyzer here: https://software.intel.com/en-us/articles/mss-sys-analyzer-linux

This white paper documents some of the things you can check to diagnose issues with your Media SDK + FFmpeg install: http://www.intel.com/content/www/us/en/cloud-computing/quicksync-video-ffmpeg-install-valid.html

If all else fails, strace can also sometimes help to debug startup issues like this.

0 Kudos
Milan_C_
Beginner
1,343 Views

mss-sys-analyzer-linux is best tool for diagnostic. It solved my problems, eg.  I had ":" separator in LD_LIBRARY_PATH instead of ";"

But now, when MSS2017 is working and all samples are ok, is another problem here with ffmpeg and segmentation fault...
https://trac.ffmpeg.org/ticket/5859

0 Kudos
jan_g_1
Beginner
1,343 Views
0 Kudos
Milan_C_
Beginner
1,343 Views

mss-sys-analyzer-linux​ tool works offline, internet connection is not needed (only for download this script).

0 Kudos
jan_g_1
Beginner
1,343 Views

root@tvh1:~# ./sys_analyzer_linux.py
--------------------------
Hardware readiness checks:
--------------------------
 [ OK ] Processor name: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
--------------------------
OS readiness checks:
--------------------------
 [ OK ] GPU visible to OS
--------------------------
Intel(R) Media Server Studio Install:
--------------------------
 [ OK ] user is root
 [ 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:terminate called after throwing an instance of 'OCLRT::xcb_error'
  what():  XCB ERROR: X session is not running!
Aborted (core dumped)

0 Kudos
Milan_C_
Beginner
1,343 Views

I have system without X and I didn't see this error.

0 Kudos
jan_g_1
Beginner
1,343 Views

https://software.intel.com/en-us/articles/how-to-setup-media-server-studio-on-secondary-os-of-linux

i install it with this script but on ubuntu 16.04 and the kernel compile is without errors but i have the same error in ffmpeg

0 Kudos
Milan_C_
Beginner
1,343 Views

I reported to ffmpeg team here: https://trac.ffmpeg.org/ticket/5859
​But no reply. :(

0 Kudos
jan_g_1
Beginner
1,343 Views

did u get it work on i7-4790k? with 2016? 

my problem is that the./sample_multi_transcode -i::h264 /opt/intel/mediasdk/samples/streams/test_stream.264 -o::h264 /home/bla.264 also is not working... can u explain how u install it?

0 Kudos
jan_g_1
Beginner
1,343 Views

root@tvh1:~# /opt/intel/mediasdk/samples/sample_multi_transcode -i::h264 /opt/intel/mediasdk/samples/streams/test_stream.264 -o::h264 /home/test-stream-264
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): 20
MFX HARDWARE Session 0 API ver 1.19 parameters:
Input  video: AVC
Output video: AVC

Session 0 was NOT joined with other sessions

Transcoding started
..
Transcoding finished

Common transcoding time is  0.06 sec
MFX session 0 transcoding PASSED:
Processing time: 0.06 sec
Number of processed frames: 101

The test PASSED

 

 

seems everything ok or?

 

root@tvh1:/home/jan# ./sys_analyzer_linux.py
--------------------------
Hardware readiness checks:
--------------------------
 [ OK ] Processor name: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
--------------------------
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

--------------------------
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

 

the compile from ffmpeg had an error...

./configure --enable-nonfree --enable-gpl --enable-libmfx --prefix=/home/ffmpeg --incdir=/opt/intel/mediasdk/include/mfx

make

/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libva-drm.a(va_drm.o): In Funktion `va_DisplayContextGetDriverName':
(.text+0xaa): Nicht definierter Verweis auf `drmGetMagic'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libva-drm.a(va_drm_auth.o): In Funktion `va_drm_is_authenticated':
(.text+0x6a): Nicht definierter Verweis auf `drmGetClient'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libva-drm.a(va_drm_auth.o): In Funktion `va_drm_authenticate':
(.text+0xf8): Nicht definierter Verweis auf `drmAuthMagic'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libva-drm.a(va_drm_utils.o): In Funktion `VA_DRM_GetDriverName':
(.text+0x2e): Nicht definierter Verweis auf `drmGetVersion'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libva-drm.a(va_drm_utils.o): In Funktion `VA_DRM_GetDriverName':
(.text+0x7d): Nicht definierter Verweis auf `drmFreeVersion'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libva-drm.a(va_drm_utils.o): In Funktion `VA_DRM_IsRenderNodeFd':
(.text+0x133): Nicht definierter Verweis auf `drmGetDeviceNameFromFd'
collect2: error: ld returned 1 exit status
Makefile:131: die Regel für Ziel „ffmpeg_g“ scheiterte
make: *** [ffmpeg_g] Fehler 1

0 Kudos
Manuel_M_5
Beginner
1,343 Views

Hi,

i have the same problem with ubuntu 16.04. I've installed everything as shown in the first post. But when i try to run the sample i got these error:

./sample_multi_transcode -i::h264 content/test_stream.264 -o::h264 /home/manuelmenz/out.h264 -hw -la
[sudo] password for manuelmenz: 
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

Return on error: error code -2,    /home/lab_msdk/buildAgentDir/buildAgent_MediaSDK4/git/mdp_msdk-samples/samples/sample_multi_transcode/src/pipeline_transcode.cpp    3372


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

I can not download the sys_analyzer script because the server is unavailable...

0 Kudos
mikko_h_
Beginner
1,343 Views

 

Hi,

I have error -3 when trying Multi Transcoding Sample Version 7.0.16053611, is there a mistake somewhere I did?

Intel Skull Canyon NUC6i7KYK i7 6770HQ Iris Pro graphics 580.

Installed MediaServerStudioProfessionalEvaluation2017 as root from ~/Downloads/MediaServerStudioProfessionalEvaluation2017/SDK2017Production16.5/Generic

using install_ubuntu.sh from https://software.intel.com/en-us/articles/how-to-setup-media-server-studio-on-secondary-os-of-linux

ldd (Ubuntu GLIBC 2.23-0ubuntu4) 2.23 & gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609

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

Now:            

env | grep LD_LIBRARY_PATH
LD_LIBRARY_PATH=/usr/lib64;/usr/local/lib

 

 

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

 

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>

 

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

./sys_analyzer_linux.py 
--------------------------
Hardware readiness checks:
--------------------------
 [ OK ] Processor name: Intel(R) Core(TM) i7-6770HQ CPU @ 2.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:igdrcl: using XCB-DRI2 authentication...
platform:Intel(R) OpenCL GPU OK CPU OK

 

                          ------------------------ERROR---------------------------

 

~/Downloads/MediaServerStudioProfessionalEvaluation2017/MediaSamples_Linux_2017/samples/_bin/x64/sample_multi_transcode -i::h264 ~/Downloads/MediaServerStudioProfessionalEvaluation2017/MediaSamples_Linux_2017/samples/_bin/content/test_stream.264 -o::h264 ~/transcoded.h264 -hw

Multi Transcoding Sample Version 7.0.16053611

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): 20

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


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
Joo_Fei_W_
Beginner
1,343 Views

Hi mikko,

 

Did you manage to fix the issue in the end? I have the same.

0 Kudos
huihai_l_
Beginner
1,170 Views

Hi Milan,

I saw CUDA stuff in your post, so I assume you have a Nvidia graphic card in your system. Have you been able to enable both Nvidia graphic card and Intel GPU at the same time, and get MSS2017 to work?

 

I have a Dell laptop XPS 9550 with both a Nvidia 960M and Intel integrated 530 graphic card. If I use nvidia-prime to switch to intel graphic card only, I can get MSS2017 to work, everything is fine. But if I switched to Nvidia 960M, if I run vainfo, it shows

libva info: VA-API version 0.99.0
Xlib:  extension "XFree86-DRI" missing on display ":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
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
libva error: /opt/intel/mediasdk/lib64/iHD_drv_video.so init failed
libva info: va_openDriver() returns 18
vaInitialize failed with error code 18 (invalid parameter),exit

Here is my machine configuration:

Ubuntu 16.04LST

nvidia-378 installed

followed this link to install MSS2017 R2:

https://software.intel.com/en-us/articles/how-to-setup-media-server-studio-on-secondary-os-of-linux

 

Best

0 Kudos
Reply