Re: WMEncoder
- From: [Joe] <Joe@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 8 Feb 2008 06:27:01 -0800
I can't find the namespace and reference of IWMWriter :-(
Can you help me with this issue?
what should I install and what reference to add to my project ?
"Alessandro Angeli" wrote:
From: "[Joe]".
Can someone let me know how to change the following code
to save only the PictureBox data within my application
and not all the desktop. Or any other Idea for how to do
that in deferent way .
There are several ways and embedding WME9 is the worst.
Since you have the bitmaps, you can just use a component
that accepts those as input.
If you want to save to uncompressed AVI, you can use any of
the following methods:
1. your own AVI writer (AVI1.0 is a very simple format)
2. the mmio or AVIFile functions in Windows (AVI1.0, easy
enough in C# through P/Invoke)
3. the AVIMux filter in DirectShow (AVI1.0/AVI2.0, but
requires a lot of COM InterOp or the open source
DirectShow.NET wrapper and you need to write a push source
filter, which is not easy in .NET, while you have one ready
in C++, the PushSourceBitmap sample in the Windows SDK)
To compress the AVI, you need to manually use a compressor
in 1 and 2, while you can insert a compressor in the
DirectShow graph and let DirectShow deal with it.
If you want to save to compressed or uncompressed WMV:
4. use the WMWriter object directly (requires COM InterOp
and the DirectShow.NET wrapper can only help with a part of
it, but you don't have to write any component)
5. use the WMASFWriter in DirectShow (same comments as in
#3)
--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm
- Follow-Ups:
- Re: WMEncoder
- From: Alessandro Angeli
- Re: WMEncoder
- References:
- WMEncoder
- From: [Joe]
- Re: WMEncoder
- From: Alessandro Angeli
- WMEncoder
- Prev by Date: Re: Subtitles in AVI files
- Next by Date: Re: Muting fragments of WMA files, inaccuracy occurs
- Previous by thread: Re: WMEncoder
- Next by thread: Re: WMEncoder
- Index(es):
Relevant Pages
|