如何克隆相机源 DirectShow 过滤器?

发布于 2024-08-19 12:19:19 字数 230 浏览 4 评论 0原文

我正在做一些立体工作,这意味着我需要使用各种滤镜的两个实例(即接收 IP 流的摄像机源),事实证明这并非易事。

我什至尝试将 IPCamfilter.ax 复制到 IPCamfilter.ax 并在注册表中手动创建新的 CLSID 条目,克隆会出现,但无法工作。有什么想法吗?

我是否应该编辑克隆过滤器二进制文件以更改其 CLSID,然后注册它?或者有没有一种简单的方法可以使用 GraphEdit 来做到这一点?

I'm doing some stereoscopic work which means I have need to work with two instances of various filters (i.e. a camera source that receives an IP stream), and this is proving not to be trivial.

I even tried copying the IPCamfilter.ax to IPCamfilter.ax and manually making new CLSID entries in the reg, and the clone shows up, but won't work. Any ideas?

Should I edit the clone filters binary to change its CLSID and then register it? Or is there a simple way to use GraphEdit to do this?

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

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

发布评论

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

评论(3

幽梦紫曦~ 2024-08-26 12:19:19

您使用两台相机还是使用一台相机拍摄两张照片。

在第一种情况下,有一些过滤器仅适用于一个连接的设备(例如火线,摄像机必须连接到两个不同的控制器)。

在后一种情况下,您可以使用Infinite Pin Tee Filter来获取一个设备的两个流。您也可以在 GraphEdit 中进行测试。

Do you work with two cameras or with one camera and you wanna have two pictures.

In the first case, there are some filters which work just with one connected device (in case for e.g. firewire, cameras have to be connected to two different controllers).

In the latter case, you can use the Infinite Pin Tee Filter to get two streams of the one device. You can test that in GraphEdit as well.

沫离伤花 2024-08-26 12:19:19

COM 中没有任何内容可以阻止您创建同一 clsid 的两个实例,因此您通过尝试更改 clsid 解决了错误的问题。过滤器内部必须有某种东西可以防止在同一过程中多次使用。

如果您无法访问源代码来修复它,您可以在单独的进程中拥有两个捕获图,然后使用某种桥接器将两个输出合并到第三个图中(或在您的应用程序中)。

G

There's nothing in COM that prevents you creating two instances of the same clsid, so you're solving the wrong problem by trying to change the clsid. There must be something in the filter internals that prevents multiple use in the same process.

If you can't get access to the source to fix it, you could have two capture graphs in separate processes and then use a bridge of some sort to combine the two outputs in a third graph (or in your application).

G

遮云壑 2024-08-26 12:19:19

SplitCam 是一款免费软件虚拟视频克隆和视频驱动程序,用于将多个应用程序连接到单个视频捕获源。通常,如果您的 PC 连接了一台相机,则无法同时在多个应用程序中使用它,并且没有标准的 Windows 选项可以实现这一点。拆分相机可让您轻松地将视频源倍增任何会议软件,如 ICQ、Yahoo、MSN Messenger 等。

视频处理过滤器是一个功能强大的变换过滤器,允许将视频旋转 90、180 和 270 度,在将视频旋转 90 和 270 度时保持宽高比,翻转视频,将 RGB 视频流转换为灰度并反转颜色。支持在任何 Directshow 基础应用程序中将视频旋转 90、180 和 270 度。支持视频旋转 90 度和 270 度时保持宽高比。

SplitCam is a freeware virtual video clone and video driver for connecting several applications to a single video capture source. Usually, if you have a camera connected to your PC, you cannot use it in more than one application at the same time, and there is no standard Windows options that makes it possible. Split Camera allows you to easily multiply your video source in any conferencing software like ICQ, Yahoo, MSN Messenger, or whatever.

Video Processing Filter is a powerful transform filter that allows rotate the video in 90, 180, and 270 degrees ,keep aspect ratio when rotated the video in 90 and 270 degrees , flip the video, convert a RGB video stream to Grayscale and invert color. Support rotate the video in 90, 180, and 270 degrees in any Directshow base application. Support keep aspect ratio when rotated the video in 90 and 270 degrees.

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