简体   繁体   English

DirectShow与Media Foundation进行视频捕捉?

[英]DirectShow vs. Media Foundation for video capture?

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. 我正在尝试在视频捕获/监控/流媒体应用程序中选择这两个API,我不确定哪个是最好的选择。

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 该应用程序可能会使用C ++开发,因此本机API至关重要
  • 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 MF仅支持Win 7上的视频捕获
  • Directshow is better supported , but will become obsolete Directshow得到更好的支持,但会变得过时
  • MF can offer better performance in some applications MF可以在某些应用中提供更好的性能

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. MF感觉更好的向前推进,但我担心如果MF没有“赶上”并且Directshow仍然是选择的API,那么最终会陷入技术死胡同。 Suggestions and advice, please... 建议和建议,请...

Whatever marketers from MS say, DirectShow is here to stay. 无论MS的营销人员说什么,DirectShow都会留在这里。 Too many applications use it, so MS will support it forever, just as all other COM-based technologies. 太多的应用程序使用它,因此MS将永远支持它,就像所有其他基于COM的技术一样。 And since DirectShow has much more features and is native for C++ programming, I suggest sticking with it. 由于DirectShow具有更多功能并且是C ++编程的原生功能,因此我建议坚持使用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM