On 24 May 2007 11:29:35 -0700, gsimmons wrote:
[Quoted Text] > I need to create a number of large WMV files from a series of > application-generated bitmaps. Each bitmap is a frame in the resulting > video. My app is written in C# and I've been Googling all day looking > for some example code or open source on how to do this. Found examples > for AVI files, but none for WMV. I want to take advantage of the > compression options for WMV files to save disk space. It appears the > real work is done by the IWMWrite interface in the SDK, but I'm pretty > clueless on how to access it from C#. Any help or links to articles, > example code, etc would be appreciated.
It's COM so you have to use COM Interop. I don't use C# so I can't help you there but if you look at DirectShow.Net on sourceforge you can see how that works. DirectShow.net is the Interop wrapper over the DirectShow COM interfaces, the same technique can be applied to the Windows Format SDK.
-- http://www.chrisnet.net/code.htm [MS MVP for DirectShow / MediaFoundation]
|