Community
cancel
Showing results for 
Search instead for 
Did you mean: 
sutono_g_
Beginner
38 Views

Merit validation failed

Hi All,

I encountered this "MFGetMFTMerit @ Merit validation failed for MFT @071E2BB (hr=80004005 E_FAIL)"

I'm using Media foundation Sink Writer with Hardware encoder enable, input is generated bytes from capture card.

Using MFTrace I can see "CoCreateInstance @ created <guid> Intel Quick sync Video H.264 Encoder MFT".

So my application seems able to call Quick Sync encoder but due to that Merit validation failed problem it failed and fall back to Microsoft H.264 encoder :(

Can anyone tell me how to fix this or have any idea what may happen?

btw my system is i5 4570TE with Q87 chipset.

I also saw two other people that encounter the same problem:

http://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/fe051dd5-b522-4e4b-9cbb-2c06a5450e40/im...

Thank you very much!

 

SG

0 Kudos
1 Reply
sutono_g_
Beginner
38 Views

I still stuck on this merit :(
here what mftrace.exe show, hope someone can see what I did wrong with it:

 

3140,9FC 08:36:51.58590 CMFReadWriteClassFactoryDetours::HandleObject @ New sink writer @00651768
3140,9FC 08:36:51.58620 CMFSinkWriterDetours::AddStream @00651768 Stream Index 0x0, MT: MF_MT_MAJOR_TYPE=MEDIATYPE_Video;MF_MT_SUBTYPE=MEDIASUBTYPE_H264;MF_MT_AVG_BITRATE=4000000;MF_MT_FRAME_SIZE=8246337209400 (1920,1080);MF_MT_FRAME_RATE=128849018881 (30,1);MF_MT_MPEG2_PROFILE=77;MF_READWRITE_ENABLE_HARDWARE_TRANSFORMS=1;MF_READWRITE_DISABLE_CONVERTERS=0;{1C0608E9-370C-4710-8A58-CB6181C42423}=3;{FCBF57A3-7EA5-4B0C-9644-69B40C39C391}=50;MF_MT_PIXEL_ASPECT_RATIO=4294967297 (1,1);MF_MT_INTERLACE_MODE=2;MF_MT_ALL_SAMPLES_INDEPENDENT=1;MF_MT_FIXED_SIZE_SAMPLES=1;MF_MT_SAMPLE_SIZE=4147200
3140,9FC 08:36:51.58627 CMFPlatExportDetours::MFTEnumEx @ Category: MFT_CATEGORY_VIDEO_ENCODER, Flags: 0x00000077, input MT: <NULL>, output MT: MF_MT_MAJOR_TYPE=MEDIATYPE_Video;MF_MT_SUBTYPE=MEDIASUBTYPE_H264
3140,9FC 08:36:51.58988 COle32ExportDetours::CoCreateInstance @ Created {62BE5D10-60EB-11D0-BD3B-00A0C911CE86} System Device Enumerator (C:\Windows\SysWOW64\devenum.dll) @001CA298 - traced interfaces:
3140,9FC 08:36:51.59134 COle32ExportDetours::CoCreateInstance @ Failed to create {F79EAC7D-E545-4387-BDEE-D647D7BDE42A}  () hr=0x80040154 REGDB_E_CLASSNOTREG
3140,9FC 08:36:51.59320 CMFPlatExportDetours::MFTEnumEx @ Activate 00 @064B9580, MFT_CODEC_MERIT_Attribute=7;MF_TRANSFORM_CATEGORY_Attribute=MFT_CATEGORY_VIDEO_ENCODER;MFT_TRANSFORM_CLSID_Attribute={4BE8D3C0-0515-4A37-AD55-E4BAE19AF471};MFT_INPUT_TYPES_Attributes=76 69 64 73 00 00 10 00 80 00 00 aa 00 38 9b 71 4e 56 31 32 61 39 ae 42 ba 67 ff 47 cc c1 3e ed 76 69 64 73 00 00 10 00 80 00 00 aa 00 38 9b 71 4e 56 31 32 00 00 10 00 80 00 00 aa 00 38 9b 71 ;MFT_OUTPUT_TYPES_Attributes=76 69 64 73 00 00 10 00 80 00 00 aa 00 38 9b 71 48 32 36 34 00 00 10 00 80 00 00 aa 00 38 9b 71 ;MFT_FRIENDLY_NAME_Attribute=Intel® Quick Sync Video H.264 Encoder MFT;MF_TRANSFORM_FLAGS_Attribute=4
3140,9FC 08:36:51.59354 CMFPlatExportDetours::MFTEnumEx @ Activate 01 @064B9630, MF_TRANSFORM_CATEGORY_Attribute=MFT_CATEGORY_VIDEO_ENCODER;MFT_TRANSFORM_CLSID_Attribute={6CA50344-051A-4DED-9779-A43305165E35};MFT_INPUT_TYPES_Attributes=76 69 64 73 00 00 10 00 80 00 00 aa 00 38 9b 71 49 59 55 56 00 00 10 00 80 00 00 aa 00 38 9b 71 76 69 64 73 00 00 10 00 80 00 00 aa 00 38 9b 71 59 56 31 32 00 00 10 00 80 00 00 aa 00 38 9b 71 76 69 ;MFT_OUTPUT_TYPES_Attributes=76 69 64 73 00 00 10 00 80 00 00 aa 00 38 9b 71 48 32 36 34 00 00 10 00 80 00 00 aa 00 38 9b 71 ;MFT_FRIENDLY_NAME_Attribute=H264 Encoder MFT;MF_TRANSFORM_FLAGS_Attribute=1
3140,9FC 08:36:51.80751 COle32ExportDetours::CoCreateInstance @ New MFT @03A72BB8, MF_TRANSFORM_ASYNC=1;MFT_SUPPORT_DYNAMIC_FORMAT_CHANGE=1;MFT_ENUM_HARDWARE_URL_Attribute=AA243E5D-2F73-48c7-97F7-F6FA17651651
3140,9FC 08:36:51.80754 COle32ExportDetours::CoCreateInstance @ Created {4BE8D3C0-0515-4A37-AD55-E4BAE19AF471} Intel® Quick Sync Video H.264 Encoder MFT (C:\Program Files\Intel\Media SDK\mfx_mft_h264ve_w7_32.dll) @03A72BB8 - traced interfaces: IMFTransform @03A72BB8,
3140,9FC 08:36:51.86205 CMFPlatExportDetours::MFGetMFTMerit @ Merit validation failed for MFT @03A72BB8 (hr=80004005 E_FAIL)