Media Foundation C #

The basis for the media is Microsoft's recommended technology, and it really supported it with many examples and explanations, but they all have their own code

I found a wrapper in sourceforge so that I can use Media Foundation with C #, but for now I read that people say that not all managed code can be executed

I have some tasks related to MF:

  • Capture live video
  • resolution change and baud rate
  • Encode Video
  • decode video

Can I use .net for these tasks or do I need to use my own code? Do samples help (please do not specify msdn one of them)?

+4
source share
1 answer

The Media Foundation.NET C # wrapper can work well for all the tasks you talked about. I used it personally to implement capture, resizing, and encoding, and I think decoding should not be too heavy either.

There are several examples in the project that you can download, but I believe that they are not enough. The shell is so close to a C ++ implementation that it’s not too difficult to use C ++ examples and just port the logic to C #. I used the following link and found it very valuable: https://github.com/sipsorcery/mediafoundationsamples

+2
source

All Articles