Re: WMEncoder

Tech-Archive recommends: Speed Up your PC by fixing your registry



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



.



Relevant Pages

  • Re: WMEncoder
    ... your own AVI writer ... DirectShow.NET wrapper and you need to write a push source ... you need to manually use a compressor ... DirectShow graph and let DirectShow deal with it. ...
    (microsoft.public.windowsmedia.sdk)
  • Re: record full duplex voice communication
    ... Both the AVI syntax and the ASF syntax will allow you to ... the AVIFile* funtions or DirectShow or manually (AVIs ... You can also write the streams down as a dual-channel MPA ...
    (microsoft.public.win32.programmer.mmedia)
  • Re: Image List to Video Format
    ... sequence of images. ... export a video of the animation to AVI and WMV formats. ... Is this possible in DirectShow? ... The stock AVIMux creates AVI ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Fast direct frame access - vfw vs ds vs riff - newbie
    ... > fast, random access to the individual frames of an avi file, the raw, ... > directshow is better suited for this. ... > seem to directly access and parse the avi as a riff file. ... or source filters to support other file formats. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: MP3 encoding
    ... > If you have to adjust the code to get it to compile, ... > faster not to use DirectShow at all: read the PCM data from the WAV ... to compile the Dump filter with a few changes and it works now at least ... My main problem is how to find the MP3 compressor filter. ...
    (microsoft.public.win32.programmer.mmedia)