Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Entertainment » microsoft.public.windowsmedia.sdk
Thread: C# Wrapper for IWMWriter?

HTVi
TV Discussion Newsgroups

C# Wrapper for IWMWriter?
gsimmons <simmons.garry[ at ]gmail.com> 5/24/2007 6:29:35 PM
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.

Re: C# Wrapper for IWMWriter?
"Chris P." <msdn[ at ]chrisnet.net> 5/24/2007 7:27:19 PM
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]

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen