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

[SOLVED] sample_decode with Screen Capture reutrns MFX_NOT_SUPPORTED on m_pmfxDEC->Query


I'm trying to get the screen capture feature working on a Haswell platform. The sts = m_pmfxDEC->Query(&m_mfxVideoParams, &m_mfxVideoParams); line in CDecodingPipeline::AllocFrames() fails. 

Actual decoding seems to work fine:

C:\Intel Media Samples\_bin\x64>sample_decode h264 -i "c:\Intel Media S
amples\_bin\content\test_stream.264" -o c:\temp\temp.yuv
Decoding Sample Version

Input video     AVC
Output format   YUV420
Resolution      176x96
Crop X,Y,W,H    0,0,0,0
Frame rate      30.00
Memory type             system
MediaSDK impl           hw
MediaSDK version        1.15

Decoding started
Frame number:  101, fps: 549.456, fread_fps: 0.000, fwrite_fps: 1716.894
Decoding finished

But when we try something like this (the readme is somewhat unclear how to use this particular option, but with or without -r it does the same )

C:\Intel Media Samples\_bin\x64>sample_decode capture -w 100 -h 100 -r

Return on error: error code -3, src\pipeline_decode.cpp 641  <-- this is the sts = m_pmfxDEC->Query(&m_mfxVideoParams, &m_mfxVideoParams);
Return on error: error code -3, src\pipeline_decode.cpp 287
Return on error: error code 1,  src\sample_decode.cpp   49

How would one use this correctly?

0 Kudos
2 Replies

Turns out you need to specify the plugin included in the Media Server Studio 2015 R4 package. For the binary to find the plugin, copy:

C:\Program Files\Intel\Intel(R) Media Server Studio 2015 R4\Software Development Kit\bin\x64\22d62c07e672408fbb4cc20ed7a053e4


C:\Intel Media Samples\_bin\x64\22d62c07e672408fbb4cc20ed7a053e4

with the mfxplugin64_screen_capture.dll and .cfg file inside the folder, then run:

C:\Intel Media Samples\_bin\x64>sample_decode capture -p 22d62c07e67240 8fbb4cc20ed7a053e4  -h 1000 -w 1000 -r

0 Kudos


Glad, issue was resolved. Yes, screen capture feature is provides as plugin with sample_decode and so its required specify the plugin to be used by the sample.


0 Kudos