Problem with hardware encoder in plugin_WinMF

154 views
Skip to first unread message

Claus Futtrup

unread,
Jun 7, 2016, 3:52:09 AM6/7/16
to discuss-doubango
Im  getting the following FAILED in a trace using mftrace:

10376,2868 07:41:26.26156 COle32ExportDetours::CoCreateInstance @ New MFT @1280C2D8, <NULL>
10376,2868 07:41:26.26158 COle32ExportDetours::CoCreateInstance @ Created {1EA1EA14-48F4-4054-AD1A-E8AEE10AC805} Resizer DMO (C:\Windows\SysWOW64\vidreszr.dll) @1280C2D8 - traced interfaces: IMFTransform @1280C2D8, IMediaObject @1280C2F0, 
10376,2868 07:41:26.26162 CMFTopologyNodeDetours::GetGUID @0299FC28 attribute not found guidKey = MF_TOPONODE_TRANSFORM_OBJECTID
10376,2868 07:41:26.26414 CMFTopologyNodeDetours::GetUINT32 @0299FC28 attribute not found guidKey = MF_TOPONODE_LOCKED

10376,2868 07:41:26.26417 CMFTransformDetours::SetInputType @1280C2D8 Failed MT: MF_MT_FRAME_SIZE=2748779069920 (640,480);MF_MT_AVG_BITRATE=1290240;MF_MT_MAJOR_TYPE=MEDIATYPE_Video;MF_MT_MPEG2_PROFILE=77;MF_MT_FIXED_SIZE_SAMPLES=0;MF_MT_FRAME_RATE=64424509441 (15,1);MF_MT_PIXEL_ASPECT_RATIO=4294967297 (1,1);MF_MT_ALL_SAMPLES_INDEPENDENT=0;MF_MT_INTERLACE_MODE=2;MF_MT_SUBTYPE=MEDIASUBTYPE_H264

10376,2868 07:41:26.26419 CMFTopologyDetours::GetUINT32 @12847A00 attribute not found guidKey = {F297151B-1410-4936-A111-6D103A461F34}
10376,2868 07:41:26.26419 CMFTopologyDetours::GetUINT32 @12847A00 attribute not found guidKey = {1967731F-CD78-42FC-B026-0992A56E5693}
10376,2868 07:41:26.26430 COle32ExportDetours::CoCreateInstance @ New MFT @1280C2D8, <NULL>
10376,2868 07:41:26.26430 COle32ExportDetours::CoCreateInstance @ Created {1EA1EA14-48F4-4054-AD1A-E8AEE10AC805} Resizer DMO (C:\Windows\SysWOW64\vidreszr.dll) @1280C2D8 - traced interfaces: IMFTransform @1280C2D8, IMediaObject @1280C2F0, 
10376,2868 07:41:26.26434 CMFTopologyNodeDetours::GetGUID @0299FC28 attribute not found guidKey = MF_TOPONODE_TRANSFORM_OBJECTID
10376,2868 07:41:26.26761 CMFTopologyNodeDetours::GetUINT32 @0299FC28 attribute not found guidKey = MF_TOPONODE_LOCKED

10376,2868 07:41:26.26765 CMFTransformDetours::SetInputType @1280C2D8 Failed MT: MF_MT_FRAME_SIZE=2748779069920 (640,480);MF_MT_AVG_BITRATE=1290240;MF_MT_MAJOR_TYPE=MEDIATYPE_Video;MF_MT_MPEG2_PROFILE=77;MF_MT_FIXED_SIZE_SAMPLES=0;MF_MT_FRAME_RATE=64424509441 (15,1);MF_MT_PIXEL_ASPECT_RATIO=4294967297 (1,1);MF_MT_ALL_SAMPLES_INDEPENDENT=0;MF_MT_INTERLACE_MODE=2;MF_MT_SUBTYPE=MEDIASUBTYPE_H264

10376,2868 07:41:26.26841 CMFTopologyDetours::GetUINT32 @12847A00 attribute not found guidKey = {F297151B-1410-4936-A111-6D103A461F34}
10376,2868 07:41:26.26981 CMFTopologyNodeDetours::GetUINT32 @1280BEE0 attribute not found guidKey = MF_TOPONODE_LOCKED
10376,2868 07:41:26.26989 CMFTopologyDetours::GetUINT32 @12847A00 attribute not found guidKey = {66B16DA9-ADD4-47E0-A16B-5AF1FB483634}
10376,2868 07:41:26.26989 CMFTopologyDetours::GetUINT32 @12847A00 attribute not found guidKey = {D91B0085-C86D-4F81-8822-8C68E1D7FA04}
10376,2868 07:41:26.26989 CMFTopologyDetours::GetUINT32 @12847A00 attribute not found guidKey = MF_TOPOLOGY_HARDWARE_MODE
10376,2868 07:41:26.26990 CMFTopologyDetours::GetUnknown @12847A00 attribute not found guidKey = MFT_FIELDOFUSE_UNLOCK_Attribute
10376,2868 07:41:26.26990 CMFTopologyDetours::GetUINT32 @12847A00 attribute not found guidKey = {F297151B-1410-4936-A111-6D103A461F34}


10376,2868 07:41:26.28163 CMFTransformDetours::SetOutputType @1280C3A0 Failed MT: MF_MT_FRAME_SIZE=2748779069920 (640,480);MF_MT_AVG_BITRATE=1290240;MF_MT_MAJOR_TYPE=MEDIATYPE_Video;MF_MT_MPEG2_PROFILE=77;MF_MT_FIXED_SIZE_SAMPLES=0;MF_MT_FRAME_RATE=64424509441 (15,1);MF_MT_PIXEL_ASPECT_RATIO=51539607568 (12,16);MF_MT_ALL_SAMPLES_INDEPENDENT=0;MF_MT_INTERLACE_MODE=2;MF_MT_SUBTYPE=MEDIASUBTYPE_H264
10376,2868 07:41:26.28165 CMFTopologyDetours::GetUINT32 @12847A00 attribute not found guidKey = {F297151B-1410-4936-A111-6D103A461F34}
10376,2868 07:41:26.28165 CMFTopologyDetours::GetUINT32 @12847A00 attribute not found guidKey = {1967731F-CD78-42FC-B026-0992A56E5693}
10376,2868 07:41:26.28210 COle32ExportDetours::CoCreateInstance @ New MFT @128178A8, <NULL>

log.txt

Mamadou

unread,
Jun 7, 2016, 7:11:23 PM6/7/16
to discuss-doubango

MediaFoundation is very hard to debug as it heavily depend on the hardware and the error messages are vague.
10376,2868 07:41:26.26765 CMFTransformDetours::SetInputType @1280C2D8 Failed MT: MF_MT_FRAME_SIZE=2748779069920 (640,480);MF_MT_AVG_BITRATE=1290240;MF_MT_MAJOR_TYPE=MEDIATYPE_Video;MF_MT_MPEG2_PROFILE=77;MF_MT_FIXED_SIZE_SAMPLES=0;MF_MT_FRAME_RATE=64424509441 (15,1);MF_MT_PIXEL_ASPECT_RATIO=4294967297 (1,1);MF_MT_ALL_SAMPLES_INDEPENDENT=0;MF_MT_INTERLACE_MODE=2;MF_MT_SUBTYPE=MEDIASUBTYPE_H264
All values looks correct except MF_MT_FIXED_SIZE_SAMPLES. Set it to 1 -> https://github.com/DoubangoTelecom/doubango/blob/master/plugins/pluginWinMF/internals/mf_codec.cxx#L583
Try with a Windows 8 (SDK 7) and a PC with Intel CPU+GPU. Here we have iMacs (year 2015/2016) and it's working fine.
We force using Intel QuickSync encoder but you can also try with Microsoft encoder instead to see if you have the same error.
Reply all
Reply to author
Forward
0 new messages