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.

Media SDK 2015r6 on i7 Skylake not working

Edward_R_2
Beginner
758 Views

Hi,

I've followed all the steps here: https://software.intel.com/en-us/forums/intel-media-sdk/topic/593838 for Windows 10 and can't get the samples to run. In both cases (FFmpeg & MediaSDK __bin example) it just hangs on the first frame and I have to ^C out.

C:\Users\testuser\Documents\Intel Media Samples 6.0.0.68\_bin\x64>sample_encode.exe h264 -i ..\content\test_stream_176x96.yuv -o dump.mp4 -w 176 -height 96 -b 5000
Encoding Sample Version 6.0.0.68

Input file format       YUV420
Output video            AVC
Source picture:
        Resolution      176x96
        Crop X,Y,W,H    0,0,176,96
Destination picture:
        Resolution      176x96
        Crop X,Y,W,H    0,0,176,96
Frame rate      30.00
Bit rate(Kbps)  5000
Target usage    balanced
Memory type     system
Media SDK impl          hw
Media SDK version       1.16

Processing started
^C
C:\Users\testuser\Documents\Intel Media Samples 6.0.0.68\_bin\x64>



C:\Users\testuser\Desktop\FFMPEG\Windows>ffmpeg.exe -y -loglevel verbose -i ..\big_buck_bunny_1080p_h264.mov -vcodec h264_qsv -preset quality -b:v 5M -an dump.mp4
ffmpeg version N-68994-g713e3bb Copyright (c) 2000-2015 the FFmpeg developers
  built on Jan 14 2015 19:47:03 with gcc 4.9.2 (Rev2, Built by MSYS2 project)
  configuration: --enable-libmfx --enable-libnvenc --enable-nonfree --enable-iconv --arch=x86 --disable-debug --disable-shared --disable-doc --disable-w32threads --enable-gpl --enable-version3 --enable-runtime-cpudetect --enable-avfilter --enable-bzlib --enable-zlib --enable-decklink --enable-librtmp --enable-gnutls --enable-avisynth --enable-frei0r --enable-filter=frei0r --enable-libbluray --enable-libcaca --enable-libopenjpeg --enable-fontconfig --enable-libfreetype --enable-libass --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libsoxr --enable-libtwolame --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvorbis --enable-libvo-aacenc --enable-libopus --enable-libvidstab --enable-libvpx --enable-libwavpack --enable-libxavs --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzvbi
  libavutil      54. 16.100 / 54. 16.100
  libavcodec     56. 20.100 / 56. 20.100
  libavformat    56. 18.100 / 56. 18.100
  libavdevice    56.  3.100 / 56.  3.100
  libavfilter     5.  7.100 /  5.  7.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '..\big_buck_bunny_1080p_h264.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2008-05-27 18:40:35
    timecode        : 00:00:00:00
  Duration: 00:09:56.46, start: 0.000000, bitrate: 9725 kb/s
    Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080 (1920x1088), 9282 kb/s, 24 fps, 24 tbr, 2400 tbn, 4800 tbc (default)
    Metadata:
      creation_time   : 2008-05-27 18:40:35
      handler_name    : Apple Alias Data Handler
      encoder         : H.264
    Stream #0:1(eng): Data: none (tmcd / 0x64636D74) (default)
    Metadata:
      creation_time   : 2008-05-27 18:40:35
      handler_name    : Apple Alias Data Handler
      timecode        : 00:00:00:00
    Stream #0:2(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 437 kb/s (default)
    Metadata:
      creation_time   : 2008-05-27 18:40:35
      handler_name    : Apple Alias Data Handler
[graph 0 input from stream 0:0 @ 04fb8fc0] w:1920 h:1080 pixfmt:yuv420p tb:1/2400 fr:24/1 sar:0/1 sws_param:flags=2
[auto-inserted scaler 0 @ 0506a440] w:iw h:ih flags:'0x4' interl:0
[format @ 0506a3c0] auto-inserting filter 'auto-inserted scaler 0' between the filter 'Parsed_null_0' and the filter 'format'
[auto-inserted scaler 0 @ 0506a440] w:1920 h:1080 fmt:yuv420p sar:0/1 -> w:1920 h:1080 fmt:nv12 sar:0/1 flags:0x4
[h264_qsv @ 05069500] Using Intel QuickSync encoder hardware accelerated implementation.
[h264_qsv @ 05069500] Intel Media SDK API version 1.16
[h264_qsv @ 05069500] RateControlMethod: VBR
[h264_qsv @ 05069500] TargetKbps: 5000
[h264_qsv @ 05069500] FrameRate: 24/1
Output #0, mp4, to 'dump.mp4':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    timecode        : 00:00:00:00
    encoder         : Lavf56.18.100
    Stream #0:0(eng): Video: h264 (h264_qsv) ([33][0][0][0] / 0x0021), nv12, 1920x1080, q=2-31, 5000 kb/s, 24 fps, 12288 tbn, 24 tbc (default)
    Metadata:
      creation_time   : 2008-05-27 18:40:35
      handler_name    : Apple Alias Data Handler
      encoder         : Lavc56.20.100 h264_qsv
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_qsv))
Press  to stop, [?] for help
[h264 @ 0508df60] Increasing reorder buffer to 1
^C
C:\Users\testuser\Desktop\FFMPEG\Windows>

For CentOS 7.1 I ran the Media SDK installer and built the ./MSS directory new linux kernel and installed it. libdrm is causing a Machine Check during boot but I get to a prompt. even though "i915" is in "lsmod" there is no /dev/dri/card0

help is appreciated. I'd love to start transcoding!!!

 

0 Kudos
4 Replies
Harshdeep_B_Intel
758 Views

Hello Edward,

Currently steps mentioned in forum post (https://software.intel.com/en-us/forums/intel-media-sdk/topic/593838) is for encoding HEVC/H.265 bitstreams only and changing sample encode is not required to encode a H.264/AVC stream as default sample should run fine.

With default sample, mp4 file is not the supported output format. Instead, change and run following command line:

"sample_encode.exe h264 -i ..\content\test_stream_176x96.yuv -o dump.h264 -w 176 -height 96 -b 5000 -hw -d3d11"

Please take a look at "readme-encode.pdf" for output supported formats by sample_encode. Media Server Studio plans on SKL will be officially released in sometime. Stay tuned! 

Thanks, 

 

0 Kudos
Sravanthi_K_Intel
758 Views

Hi Edward - I see you had a Cent 7.1 question as well.

If you are installing MSDK on Cent7.1 SKL system - we do not have that support yet on Linux. (The post refers to MSDK install for Windows on SKL only).

If you are installing on the previous platform, and are still seeing the issue on /dev/dri/card0 -> can you go to /dev/dri and see if you can find render nodes instead? Also, are you running your Linux system without a monitor?

(Regarding your question on sample_encode.exe -> the post Surbhi wrote was specific to HEVC. Out of the box sample_encode works for H264 and prior codecs).

0 Kudos
Tommy_Y_
Beginner
758 Views

I've got the same problem, can't encoder H264 under Win10 HD 530, with drive 10.18.15.4279.

Failed when call SyncOperation return MFX_ERR_DEVICE_FAILED.

This should be the same reason as https://software.intel.com/en-us/forums/intel-media-sdk/topic/544961

Right now it's just no working anymore.

This only happened when I feed the encoder with system memory, and use d3d11 memory is OK.

I'm using Intel Media Samples 6.0.0.68 Sample encode for testing. Should be easy to reproduced.

And When I rollback the drive to 10.18.15.4256 then there is no problem with encode with the system memory.

 

 

0 Kudos
AaronL
Beginner
758 Views

See the following post about more details regarding system memory and Skylake:  https://software.intel.com/en-us/forums/intel-media-sdk/topic/596385 .  Basically, it doesn't work with the latest driver package from Intel.

0 Kudos
Reply