I am trying to encode nv12 source file to H264 and it's working fine as long as I am using system memory.
When adding -d3d switch, the sample_encode crashes when the external allocator is trying to unlock the surface.
[Frames below may be incorrect and/or missing, no symbols loaded for igdumdim64.dll]
> sample_encode.exe!D3DFrameAllocator::UnlockFrame(void * mid, mfxFrameData * ptr) Line 189 C++
sample_encode.exe!MFXFrameAllocator::Unlock_(void * pthis, void * mid, mfxFrameData * ptr) Line 57 C++
sample_encode.exe!CEncodingPipeline::Run() Line 1285 + 0x4d bytes C++
sample_encode.exe!wmain(int argc, wchar_t * * argv) Line 664 + 0x2b bytes C++
media_sdk_system_analyzer report :
The following versions of Media SDK API are supported by platform/driver:
Version Target Supported Dec Enc
1.0 HW Yes X X
1.0 SW Yes X X
1.1 HW Yes X X
1.1 SW Yes X X
1.3 HW Yes X X
1.3 SW Yes X X
1.4 HW Yes X X
1.4 SW Yes X X
1.5 HW Yes X X
1.5 SW Yes X X
1.6 HW Yes X X
1.6 SW Yes X X
1.7 HW Yes X X
1.7 SW Yes X X
1.8 HW Yes X X
1.8 SW Yes X X
Name Version State
AMD Radeon HD 7600M Series 15.200.1062.1003 08
Intel(R) HD Graphics 4000 10.18.10.4252 Active
CPU: Intel(R) Core(TM) i7-3632QM CPU @ 2.20GHz
OS: Microsoft Windows 10 Pro
Any suggestion what can cause this crash and how to solve it are appreciated !
Which MediaSDK did you install in the system? Is it Media Server Studio or Media SDK in INDE? Switching to -d3d11 option, will it generate the same problem? When using -d3d9, is the monitor attached to Intel GPU? d3d9 requires monitor be attached to Intel GPU if a second GPU exist, d3d11 doesn't require that. Thanks.
I am using Media Server Studio.
I can't try -d3d11 right now because I am using Visual Studio 2010 on Windows 10.
I tried that earlier and I figured out that I must have Visual Studio 2015 and Windows 10 SDK.
Your last edit help me to figure out why it crashed.
I am using a laptop with 2 graphics cards and the graphics cards monitor sw decided to use the AMD card instead of the Intel one.
I set it manually to use intel and it's working now.
Thank you for your help !
regarding -d3d11 switch:
I added MFX_D3D11_SUPPORT preprocessor flag but the compilation failed when trying to include <dxgi1_2.h>
I installed win10 sdk and configured the project include & lib directories but it didn't help much as i had to find other missing .h files.
I will try to compile it later again using win10 sdk + msvc 2010.
if you have any suggestions, it would be greate if you can share them here :)
Thank you !
Media Server Studio 2015 R6 doesn't neither have support for windows 10 nor 3rd generation system. But I know for a fact that it should work on 3rd generation, but not windows 10. Can you roll back to windows 8.1 and test again. I don't see a reason why it should not work with -d3d9 or -d3d11 on windows 8.1. One more thing, can you try without the discrete graphics card attached to your machine to make sure Media Server Studio is working well on your system and later try it with discrete graphics, this should help to narrow down the problem.
it is working fine on windows 10 & 3rd gen processor.
As i said before, i am using a laptop and I can't remove the discrete graphics card.
the problem was that the graphics card monitor sw decided to use the discrete card for sample_encode.exe instead of the intel one.
All is good for now..
Great! Thanks for letting us know that it's working for you.
Closing this issue, if you do come across any other issue using Media Server Studio please post a new thread.