Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

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...

like image 525
Roddy Avatar asked Dec 10 '10 09:12

Roddy


People also ask

What is Media Foundation video capture?

A capture device is represented in Media Foundation by a media source object, which exposes the IMFMediaSource interface. In most cases, the application will not use this interface directly, but will use a higher-level API such as the Source Reader to control the capture device.

What is Media Foundation in zoom?

Media Foundation (MF) is a COM-based multimedia framework pipeline and infrastructure platform for digital media in Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10, and Windows 11.

What does Media Foundation do?

Media Foundation is the next generation multimedia platform for Windows that enables developers, consumers, and content providers to embrace the new wave of premium content with enhanced robustness, unparalleled quality, and seamless interoperability.

What is DirectShow and Media Foundation?

DirectShow (sometimes abbreviated as DS or DShow), codename Quartz, is a multimedia framework and API produced by Microsoft for software developers to perform various operations with media files or streams. It is the replacement for Microsoft's earlier Video for Windows technology.


1 Answers

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.

like image 186
Dee Mon Avatar answered Sep 22 '22 05:09

Dee Mon