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

How to enable HEVC HW acceleration in Media Sample?

qin_c_
Beginner
948 Views

Hi all

when i ran sample_decode in HEVC HW mode,i got this error:

[root@localhost x64]# ./sample_decode_x11 h265 -i blue_sky.h265 -o blue_sky_h265.yuv -hw -p 33a61c0b4c27454ca8d85dde757c6f8e
plugin_loader.h :153 [ERROR] Failed to load plugin from GUID, sts=-9: { 0x33, 0xa6, 0x1c, 0x0b, 0x4c, 0x27, 0x45, 0x4c, 0xa8, 0xd8, 0x5d, 0xde, 0x75, 0x7c, 0x6f, 0x8e } (Intel (R) Media SDK HW plugin for HEVC DECODE)

Return on error: error code -3,    /home/lab_msdk/buildAgentDir/buildAgent_MediaSDK3/git/mdp_msdk-samples/samples/sample_decode/src/pipeline_decode.cpp    266


Return on error: error code 1,    /home/lab_msdk/buildAgentDir/buildAgent_MediaSDK3/git/mdp_msdk-samples/samples/sample_decode/src/sample_decode.cpp    501

 

if i ran that in SW mode ,it was OK.

 

[root@localhost x64]# ./sample_decode_x11 h265 -i blue_sky.h265 -o blue_sky_h265.yuv -sw -p 15dd936825ad475ea34e35f3f54217a6 
plugin_loader.h :157 [INFO] Plugin was loaded from GUID
Decoding Sample Version 6.0.16043175.175


Input video	HEVC
Output format	YUV420
Resolution	1920x1088
Crop X,Y,W,H	0,0,0,0
Frame rate	30.00
Memory type		system
MediaSDK impl		sw
MediaSDK version	1.16

Decoding started
Frame number:  217, fps: 22.357, fread_fps: 0.000, fwrite_fps: 24.43199
Decoding finished
plugin_loader.h :183 [INFO] MFXBaseUSER_UnLoad(session=0x0x7fc318e82210), sts=0

then i checked plugin.cfg,didn't find hw_decoder:

[HEVC_Decoder_15dd936825ad475ea34e35f3f54217a6]
GUID = 15dd936825ad475ea34e35f3f54217a6
PluginVersion = 1
APIVersion = 272
Path = /opt/intel/mediasdk/plugins/libmfx_hevcd_sw64.so
Type = 1
CodecID = HEVC
Default = 0

[HEVC_Encoder_e5400a06c74d41f5b12d430bbaa23d0b]
GUID = e5400a06c74d41f5b12d430bbaa23d0b
PluginVersion = 1
APIVersion = 272
Path = /opt/intel/mediasdk/plugins/libmfx_hevce_hw64.so
Type = 2
CodecID = HEVC
Default = 0

[HEVC_Encoder_2fca99749fdb49aeb121a5b63ef568f7]
GUID = 2fca99749fdb49aeb121a5b63ef568f7
PluginVersion = 1
APIVersion = 272
Path = /opt/intel/mediasdk/plugins/libmfx_hevce_sw64.so
Type = 2
CodecID = HEVC
Default = 0

[HEVC_Encoder_87e0e80207375240852515cf4a5edde6]
GUID = 87e0e80207375240852515cf4a5edde6
PluginVersion = 1
APIVersion = 271
Path = /opt/intel/mediasdk/plugins/libmfx_h265fei_hw64.so
Type = 4
CodecID = HEVC
Default = 0

my OS is CentOS 7.1 and the cpu is Intel(R) Core(TM) i7-4700EQ CPU @ 2.40GHz,lspci can get this:

00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)

 

Maybe i do something wrong in HEVC or SDK installation?could anyone help me?

 

0 Kudos
1 Solution
Surbhi_M_Intel
Employee
948 Views

Hi qin, 

On Linux, we support only HEVC SW mode, the GUID for that is 15dd936825ad475ea34e34e35f3f54217a6, HEVC HW (Hybrid implementation for HSW and BDW) is not enabled as of now. There is nothing wrong with your install. 

Thanks,
Surbhi

 


 

View solution in original post

0 Kudos
3 Replies
Surbhi_M_Intel
Employee
949 Views

Hi qin, 

On Linux, we support only HEVC SW mode, the GUID for that is 15dd936825ad475ea34e34e35f3f54217a6, HEVC HW (Hybrid implementation for HSW and BDW) is not enabled as of now. There is nothing wrong with your install. 

Thanks,
Surbhi

 


 

0 Kudos
qin_c_
Beginner
948 Views

SURBHI M. (Intel) wrote:

Hi qin, 

On Linux, we support only HEVC SW mode, the GUID for that is 15dd936825ad475ea34e34e35f3f54217a6, HEVC HW (Hybrid implementation for HSW and BDW) is not enabled as of now. There is nothing wrong with your install. 

Thanks,
Surbhi

one more thing:i ran HEVC decoder with 15dd936825ad475ea34e34e35f3f54217a6 and  got 25 fps for 1080P.But the <HEVC whitepaper> says that we can get more than 100fps on 1080P.is the Test in <HEVC whitepaper> working on HW mode?

./sample_decode_drm h265 -i blue_sky.h265 -o h265.yuv -sw -p 15dd936825ad475ea34e35f3f54217a6
plugin_loader.h :157 [INFO] Plugin was loaded from GUID
Decoding Sample Version 6.0.16043175.175


Input video	HEVC
Output format	YUV420
Resolution	1920x1088
Crop X,Y,W,H	0,0,0,0
Frame rate	30.00
Memory type		system
MediaSDK impl		sw
MediaSDK version	1.16

Decoding started
Frame number:  217, fps: 24.931, fread_fps: 0.000, fwrite_fps: 27.74533
Decoding finished
plugin_loader.h :183 [INFO] MFXBaseUSER_UnLoad(session=0x0x7f277ab7a210), sts=0
Table 4B Decoding Speed of HD1080p on Intel® Media Server Studio HEVC Codec in TU1, TU4, TU7 modes
                TU1 Dec Speed          TU4 Dec Speed         TU7 Dec Speed 
1  Park_joy       183.16                   205.53              232.34

 

0 Kudos
Surbhi_M_Intel
Employee
948 Views

Hi qin, 

The reason of getting low fps in your experiments is due to writing the output out to a file, that's why we have a write fps and hence low fps overall. To know the actual performance of the underlying hw and SDK, it's best not to write the o/p to a file. Please remove the -o cmd and check the o/p on your system. 

Did a quick run on 4th generation system, using ducks 1080p bitstream encoded at 10Mbps 30fps - 

Decoding Sample Version 6.0.16043175.175

Input video     HEVC
Output format   YUV420
Resolution      1920x1088
Crop X,Y,W,H    0,0,0,0
Frame rate      30.00
Memory type             system
MediaSDK impl           hw
MediaSDK version        1.16

Decoding started
Frame number:  500, fps: 166.074, fread_fps: 0.000, fwrite_fps: 0.000

Thanks,
Surbhi

0 Kudos
Reply