Media (Intel® oneAPI Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools from Intel. This includes Intel® oneAPI Video Processing Library and Intel® Media SDK.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

H.264 Decoder DirectShow Filter and MFX_IMPL

olivierp_eboo
Beginner
171 Views
Hello,

As the title of my post suggests, I'm looking for some tips to check and possibly to change the implementation selected by the H264 DS filter.
I have read that it's possible if I use the Media SDK directly without Direct Show, for instance:
[bash]mfxSession session;
MFXInit(MFX_IMPL_AUTO, 0, &session);
mfxIMPL impl;
MFXQueryIMPL(session, &impl);
if (impl==MFX_IMPL_SOFTWARE) printf(Software Implementation\n);
if (impl==MFX_IMPL_HARDWARE) printf(Hardware implementation\n);
MFXClose(session);[/bash]
Is there any interface to query wich implementation is used ?

Regards,

OP
0 Kudos
1 Solution
Nina_K_Intel
Employee
171 Views
There is no actual interface on DShow sample filter which methods can be called. But filters write a flag IsHWMfxLibin the Windows registry underHKEY_CURRENT_USER\Software\Intel\Media SDK Sample FiltersIsHWMfxLib. The flag is set to 1 if hw Media SDK library was used. Additionally there is a flagIsEncode(Decode)PartiallyAccelerated which is set to 1 if a software fallback code path was working inside hw library.

Hope this is sufficient for you.

Regards,
Nina

View solution in original post

3 Replies
Nina_K_Intel
Employee
172 Views
There is no actual interface on DShow sample filter which methods can be called. But filters write a flag IsHWMfxLibin the Windows registry underHKEY_CURRENT_USER\Software\Intel\Media SDK Sample FiltersIsHWMfxLib. The flag is set to 1 if hw Media SDK library was used. Additionally there is a flagIsEncode(Decode)PartiallyAccelerated which is set to 1 if a software fallback code path was working inside hw library.

Hope this is sufficient for you.

Regards,
Nina
olivierp_eboo
Beginner
171 Views
Thanks Nina.

I have found the registry key and it is indeed set to FALSE (so I have no doubt about why the decoding performances were low).

I have post another thread about where is the dll used to the hardware decoding (I have only found the one for software decoding and maybe this is link to the IsHWMFxLib value).

Thanks again,


cheers

OP
Nina_K_Intel
Employee
171 Views
Hi Olivier,


Regards,
Nina
Reply