I'm now learning programming with intel media sdk, for using hevc plugin, I installed Intel media server studio for windows (Evaluation), and copied the HEVC plugin from media server studio install dir:
C:\Program Files\Intel\Intel(R) Media Server Studio 2015 R6\HEVC Decoder & Encoder\Plugin
To Media SDK plugin dir:
C:\Program Files (x86)\IntelSWTools\Intel(R)_Media_SDK_2016.0.1\bin\x64
I'm not quite sure this is the correct way to install plug-in on Media SDK, for there was screen capture plugin mfxplugin64_screen_capture.dll located here, so I guess this is the plugin dir for media sdk.
Now I do some test with sample_encode and sample_decode which part of Intel Media Samples following its document: readme-encode.pdf
First soft encode:
sample_encode.exe h265 -i input.yuv -o output.h265 -w 352 -h 288 -b 256 -f 30 -u speed -d3d11 -sw
It works fine, even i didn't use the -p arg to specify the guid of mfxplugin64_hevce_sw
Then hard encode:
sample_encode.exe h265 -i input.yuv -o output.h265 -w 352 -h 288 -b 256 -f 30 -u speed -d3d11 -hw -p e5400a06c74d41f5b12d430bbaa23d0b
Where e5400a06c74d41f5b12d430bbaa23d0b is the dir name (also the guid) where mfxplugin64_hevce_hw.dll located.
It fails with the output:
Return on error: error code -3, src\pipeline_encode.cpp 574
Return on error: error code -3, src\pipeline_encode.cpp 1156
Return on error: error code -3, src\pipeline_encode.cpp 1086
Return on error: error code 1, src\sample_encode.cpp 656
The soft decode:the output.h265
./sample_decode.exe h265 -i output.h265 -o test.yuv
sample_decode.exe h265 -i output.h265 -o test.yuv -p 15dd936825ad475ea34e35f3f54217a6
Where 15dd936825ad475ea34e35f3f54217a6 is the dir name for mfxplugin64_hevcd_sw.dll
All fail with the output:
Return on error: error code -3, src\pipeline_decode.cpp 541
Return on error: error code -3, src\pipeline_decode.cpp 271
Return on error: error code 1, src\sample_decode.cpp 501
I don't know what's going wrong?!! Is it the problem the way i use the plugin???