0

I understand mp4 files, AVI files, the list goes on. I also understand encoding and compression and bitrate. I wouldn't say I'm an expert at c#, but I understand it well enough to make a browser with cef sharp(Chromium Embedded FrameWork). I would think I would use FFMPEG or direct show but I don't understand the first thing of those to be honest or if there is even a .NET wrapper for them (there probably is though I would be surprised if there isn't). I have done research but none of it has answered my question.

1 Answer 1

0

DirectShow can be used for this. It's a framework where you connect devices, codecs and file writers as nodes in a graph where edges are streams of data between them.

DirectShow graphs

You can learn DirectShow on MSDN site and there is a nice C# wrapper called DirectShow.NET and also a graph editing application GraphEditPlus where you can build such graphs with your mouse, see all the relevant properties and matching filters, and then it can generate C# code that builds the graph using aforementioned .NET library. Windows SDK contains some sample filters and I remember there was a sample of a filter for capturing screen and turning into a video stream that you can feed to a codec and file writer.

1
  • hey, thanks! that helps allot! thank you for the detailed answer explaining what it is and resources for me to use.
    – JamDoggie
    Jul 23, 2016 at 16:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.