DirectShow 与 Media Foundation 进行视频捕捉?
我正在尝试在视频捕获/监控/流媒体应用程序的这两个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
无论微软的营销人员怎么说,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.