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:
A bit of googling has given me the impression that
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...
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With