Windows 10 1703 - Direct Show和Media Foundation相机问题

时间:2017-10-23 09:41:49

标签: winapi directshow ms-media-foundation

我们在DirectShow和MediaFoundation上看到一个奇怪的问题,即相机正在给出黑框。 在两个应用程序上运行MFTrace时,我们看到了 CMemInputPinDetours ::未调用Receive(与工作方案进行比较时)。在什么情况下&这种情况会发生吗? 只有使用Lenova笔记本电脑才能看到问题,并且只能在病房使用Windows 10 1703(即创建者更新)。完整的DirectShow应用程序日志: 微软样本MFCaptureD3D和SimpleCapture也不起作用! 不确定我们在这里缺少什么,有人可以帮忙吗?

MFTrace日志的一部分列在下面:

  

1252,D2C 14:16:36.74678 CGraphHelpers :: Trace @ 000002CB48084CA0>>>>>>>>>>>>>>运行图表   1252,D2C 14:16:36.74679 CGraphBuilderDetours :: EnumFilters @ 000002CB48084CA0 - 输入   1252,D2C 14:16:36.74680 CGraphBuilderDetours :: EnumFilters @ 000002CB48084CA0 - 退出   1252,D2C 14:16:36.74681 CGraphHelpers :: TraceFilter @ Filter @ 000002CB60D7BCF8,name' SinkFilter',vendor'(null)'   1252,D2C 14:16:36.74684 CGraphHelpers :: TracePin @输入引脚@ 000002CB6602BDD8(IMemInputPin @ 000002CB6602BE98)名称' VideoCapture',连接到过滤器@ 000002CB48091158 pin @ 000002CB480C9228,MT:majortype = MEDIATYPE_Video; subtype = MFVideoFormat_YUY2 ; bFix​​edSizeSamples = 1; bTemporalCompression = 0; lSampleSize = 1843200; formattype = FORMAT_VideoInfo;朋克= @ 0000000000000000; cbFormat = 88   1252,D2C 14:16:36.74684 CGraphHelpers :: TraceFilter @ Filter @ 000002CB48091158,name' VideoCaptureFilter',vendor'(null)'   1252,D2C 14:16:36.74686 CGraphHelpers :: TracePin @输出引脚@ 000002CB480C9228名称' Capture',连接到过滤器@ 000002CB60D7BCF8 pin @ 000002CB6602BDD8,MT:majortype = MEDIATYPE_Video; subtype = MFVideoFormat_YUY2; bFix​​edSizeSamples = 1; bTemporalCompression = 0; lSampleSize = 1843200; formattype = FORMAT_VideoInfo;朋克= @ 0000000000000000; cbFormat = 88   1252,D2C 14:16:36.74687 CGraphHelpers :: TracePin @输入引脚@ 000002CB48084A18(IMemInputPin @ 000002CB48084AD8)名称'摄像机终端',未连接(!!!)   1252,D2C 14:16:36.74687 CGraphHelpers :: TracePin @ Output pin @ 000002CB480845F8 name' Still',NOT CONNECTED(!!!)   1252,D2C 14:16:36.74687 CGraphHelpers :: Trace @ 000002CB48084CA0<<<<<<<<<<<<<<运行图表   1252,D2C 14:16:36.74687 CGraphBuilderDetours :: EnumFilters @ 000002CB48084CA0 - 输入   1252,D2C 14:16:36.74688 CGraphBuilderDetours :: EnumFilters @ 000002CB48084CA0 - 退出   1252,D2C 14:16:36.74688 CMemInputPinDetours :: Attach @ 00007FF80B790928 - 输入   1252,D2C 14:16:36.74688 CInterfaceDetours :: AttachVtbl @ 00007FF80B790928 - 输入   1252,D2C 14:16:36.74688 CDetourHelpers :: AttachInterface @ - 输入   1252,D2C 14:16:36.74691 CDetourHelpers :: AttachInterface @ - 退出   1252,D2C 14:16:36.74691 CInterfaceDetours :: AttachVtbl @ 00007FF80B790928 - 退出   1252,D2C 14:16:36.74691 CMemInputPinDetours :: Attach @ 00007FF80B790928 - 退出   1252,D2C 14:16:36.74691 CMemInputPinDetours :: Attach @ 00007FF8129B7D10 - 输入   1252,D2C 14:16:36.74691 CInterfaceDetours :: AttachVtbl @ 00007FF8129B7D10 - 输入   1252,D2C 14:16:36.74692 CDetourHelpers :: AttachInterface @ - 输入   1252,D2C 14:16:36.74693 CDetourHelpers :: AttachInterface @ - 退出   1252,D2C 14:16:36.74693 CInterfaceDetours :: AttachVtbl @ 00007FF8129B7D10 - 退出   1252,D2C 14:16:36.74693 CMemInputPinDetours :: Attach @ 00007FF8129B7D10 - 退出   1252,D2C 14:16:36.74696 COle32ExportDetours :: CoCreateInstance @ - 输入   1252,D2C 14:16:36.74811 COle32ExportDetours :: CoCreateInstance @ Created {E436EBB1-524F-11CE-9F53-0020AF0BA770}系统时钟(C:\ Windows \ System32 \ quartz.dll)@ 000002CB4805CE68 - 跟踪接口:   1252,D2C 14:16:36.74811 COle32ExportDetours :: CoCreateInstance @ - 退出   1252,D2C 14:16:36.74822 COle32ExportDetours :: CoCreateInstance @ - 输入   1252,D2C 14:16:36.74865 COle32ExportDetours :: CoCreateInstance @ Created {877E4351-6FEA-11D0-B863-00AA00A216A1}插件分配器:IKsClock(C:\ Windows \ System32 \ ksproxy.ax)@ 000002CB48090920 - 跟踪接口:   1252,D2C 14:16:36.74865 COle32ExportDetours :: CoCreateInstance @ - 退出   1252,D2C 14:16:36.78381 CMediaControlDetours ::运行@ 000002CB480C98E8 - 退出   1252,D2C 14:16:36.78382 CMediaControlDetours :: GetState @ 000002CB480C98E8 - 输入   1252,D2C 14:16:36.78383 CMediaControlDetours :: GetState @ 000002CB480C98E8 - 退出   1252,1E08 14:16:54.49906 COle32ExportDetours :: CoCreateInstance @ - 输入   1252,1E08 14:16:54.49921 COle32ExportDetours :: CoCreateInstance @ Created {9FC8E510-A27C-4B3B-B9A3-BF65F00256A8}(C:\ WINDOWS \ system32 \ dataexchange.dll)@ 000002CB4805BD40 - 跟踪接口:   1252,1E08 14:16:54.49921 COle32ExportDetours :: CoCreateInstance @ - 退出   1252,D2C 14:16:54.57840 CMediaControlDetours ::暂停@ 000002CB480C98E8 - 输入   1252,D2C 14:16:54.58279 CMediaControlDetours ::暂停@ 000002CB480C98E8 - 退出   1252,D2C 14:16:54.58280 CMediaControlDetours :: Stop @ 000002CB480C98E8 - 输入   1252,D2C 14:16:54.79315 CMediaControlDetours ::停止@ 000002CB480C98E8 - 退出

1 个答案:

答案 0 :(得分:0)

发现根本原因,卡巴斯基反病毒导致了这个问题,将我们的应用程序添加到可信列表中解决了问题!

我们看到卡巴斯基10正在机器上使用,按照以下链接中提到的步骤解决了问题: https://support.kaspersky.com/9398#block2

如果有卡巴斯基2015,则可以使用以下链接来解决问题: https://support.kaspersky.com/11157#block1