问题描述
我使用 DirectShow 过滤器作为虚拟相机 (CLSID_VideoInputDeviceCategory).它运行良好,但某些应用程序/配置不会将此提要显示为源.例如,在 win 8.1 上,我可以通过 webrtc 在 Chrome/Firefox 中看到这个源代码.但是在 win 10 中 - chrome 不会在列表中显示此源(但 FF 会).adobe flash 也不会在列表中到处显示它.现在对我来说重要的是让它在 win 10/chrome 上可用.对此有何影响以及如何解决?
I'm using DirectShow filter as virtual camera (CLSID_VideoInputDeviceCategory). It's working good but some apps/configurations do not display this feed as source. For example on win 8.1 I can see this source in Chrome/Firefox via webrtc. But in win 10 - chrome does not show this source in the list (but FF does). Also adobe flash does not show it in the list everywhere. What is important for me now is to make it available on win 10 /chrome. What may affect on this and how to fix it?
更新
看起来 x86 和 x64 有两组不同的过滤器.所以chrome的问题是由不同的架构引起的.但是闪光灯仍然无法检测到相机.
Looks like there are two different sets of filters for x86 and x64. So the poblem with chrome was caused by different architecture. But flash still not detect camera.
推荐答案
DirectShow 虚拟摄像头仅对相同位数的应用程序可见,这些应用程序使用 DirectShow(或在某些情况下为 Windows 的视频)消耗视频捕获.如果您有位数问题,您可以通过为相应的位数构建/注册虚拟相机来解决它.如果应用程序使用 Media Foundation 消费视频,则虚拟 DirectShow 摄像头将不会被看到/访问.Virtual DirectShow Sources 的适用性 博客文章进一步解释了这一点,并附有图片.
DirectShow virtual cameras are only visible to same bitness applications, which consume video capture using DirectShow (or, in some cases, Video for Windows). If you have a bitness problem, you can fix it by building/registering virtual camera for respective bitness. If the application consumes video using Media Foundation, the virtual DirectShow camera won't bee seen/accessible. Applicability of Virtual DirectShow Sources blog post explains this a bit further and with a picture.
Firefox 应该使用 DirectShow,所以它可能是个位问题.
Firefox is supposedly using DirectShow, so it might be a bitness problem.
另一个问题可能与 Windows 10 周年更新有关,它改变了 DirectShow 源的行为.您可能需要应用此处提到的注册表修复程序,以查看它是否恢复了早期的行为(以确定是否遇到问题与周年更新变化有关).
Another problem might be related to Windows 10 Anniversary Update, which changed behavior of DirectShow sources. You might want to apply a registry fix mentioned here to see if it restores the earlier behavior (to find out whether the experienced issue is related to Anniversary Update changes).
这篇关于DirectShow Virtual Camera 未出现在某些配置的列表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!