在 Windows 上拆分摄像机源,以便 2 个应用程序可以访问

发布于 2024-09-02 21:36:05 字数 576 浏览 2 评论 0原文

我需要在两个应用程序中同时访问摄像机。我找到了一些解决方案,例如 WebcamSplitter 和 Splitcam,但我不想要一个应用程序 - 我想要一些可以集成到我的应用程序中并通过某种 API 或配置文件进行控制的东西。

下面是一个使用场景:

分割视频源名称 = 视频分割器

摄像头 1 名称 = Logitech 网络摄像

头 摄像头 2 名称 = Osprey 视频

2 个应用程序 A 和 B 显示视频源的预览。 A(在我们的控制范围内)和 B(我们可以配置和启动的第三方应用程序)配置为使用 Video Splitter 作为视频源。最初,在为视频分配器配置任何源之前,它可能会显示默认图像。应用程序 A 将视频分配器配置为使用 Logitech 网络摄像头作为视频源。这两个应用程序现在都显示罗技网络摄像头的预览。然后,应用程序 A 将 Video Splitter 配置为使用 Osprey 视频作为源;现在,这两个应用程序都显示 Osprey 视频源的预览。

有谁知道任何现有的解决方案(即:DirectShow 过滤器?)可以做到这一点?理想情况下,我们不希望启动任何第三方应用程序来完成此任务。

谢谢!

I need to access a video camera simultaneously in 2 applications. I have found some solutions, such as WebcamSplitter and Splitcam, but I don't want an application - I want something that can be integrated into my application, and controlled via some sort of API or configuration file.

Here's a usage scenario:

Split video source name = Video Splitter

Camera 1 name = Logitech Webcam

Camera 2 name = Osprey video

2 applications, A and B, show previews of the video source. A (in our control) and B (3rd party application that we can configure and launch) are configured to use Video Splitter as the video source. Initially, before any source is configured for Video Splitter, it might display a default image. Application A configures Video Splitter to use Logitech Webcam as the video source. Both applications now show previews of the Logitech Webcam. Application A then configures Video Splitter to use Osprey video as the source; now, both applications show previews of the Osprey video source.

Does anyone know any existing solutions (ie: DirectShow filters?) that do this? Ideally, we would not want any 3rd party applications to launch to accomplish this.

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

流心雨 2024-09-09 21:36:05

我相信在 DirectShow 中,您可以让两个应用程序同时访问同一“源”(过滤器)。所以双应用程序应该可以工作。如果没有,那么创建两个单独的图表可能会起作用。不知道。

I believe in DirectShow you can have two apps accessing the same "source" (filter) at the same time. So dual-app should work. If not then creating two separate graphs might work. Dunno.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文