DirectShow 与 Media Foundation 进行视频捕捉?

发布于 2024-10-06 20:09:19 字数 394 浏览 0 评论 0原文

我正在尝试在视频捕获/监控/流媒体应用程序的这两个 API 之间进行选择,但我不确定哪个是最佳选择。

一些背景知识:

  • 我需要它与各种视频采集卡/适配器一起使用。
  • 该应用程序可能会用 C++ 开发,因此本机 API 至关重要
  • 性能很重要,因为我需要处理多个视频流 谷

歌搜索给我的印象是

  • MF 仅支持 Win 7 上的视频捕获
  • Directshow 得到更好的支持,但是将过时
  • MF 可以在某些应用程序中提供更好的性能

MF 感觉是未来更好的选择,但我担心如果 MF 不“流行”并且 Directshow 仍然是首选 API,那么最终会陷入技术死胡同。建议和忠告,请...

I'm trying to choose between these two APIs for a Video Capture/Monitoring/Streaming application, and I'm not sure which is going to be the best bet.

A bit of background:

  • I need it to work with a wide range of video capture cards/dongles.
  • The app will likely be developed in C++ so a native API is essential
  • Performance is important, as I need to handle multiple video streams

A bit of googling has given me the impression that

  • MF only supports video capture on Win 7
  • Directshow is better supported , but will become obsolete
  • MF can offer better performance in some applications

MF feels a better bet going forwards, but I'm concerned about ending up in a technological dead-end if MF doesn't 'catch on' and Directshow remains the API of choice. Suggestions and advice, please...

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

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

发布评论

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

评论(1

空城仅有旧梦在 2024-10-13 20:09:19

无论微软的营销人员怎么说,DirectShow 都将继续存在。太多的应用程序使用它,因此 MS 将永远支持它,就像所有其他基于 COM 的技术一样。由于 DirectShow 具有更多功能并且是 C++ 编程的本机,因此我建议坚持使用它。

Whatever marketers from MS say, DirectShow is here to stay. Too many applications use it, so MS will support it forever, just as all other COM-based technologies. And since DirectShow has much more features and is native for C++ programming, I suggest sticking with it.

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