Community
cancel
Showing results for 
Search instead for 
Did you mean: 
randy_s_2
Beginner
56 Views

[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 6.0.0.49\_bin\x64>sample_decode h264 -i "c:\Intel Media S
amples 6.0.0.49\_bin\content\test_stream.264" -o c:\temp\temp.yuv
Decoding Sample Version 6.0.0.49


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 6.0.0.49\_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
randy_s_2
Beginner
56 Views

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

to:

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

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

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

56 Views

Hi,

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.

Thanks,

Reply