Hi All, I read all the post on IWMWriter and DirectShow stuff here and I am still having problems on how to mix them together (Obviously IConfigAsfWriter and related interface used in Asfcopy project is fading away..., so we are not going to use them much longer): 1) Can we add IWMWriter to the directshow filter graphs directly 2) If #1) is out of questions, how can we convert encoded avi files (compressed) to the WM file (WM files) by using IWMWriter 3) Lets say this AVI file has both audio and video output and If we have the sample grabber for both the Audio and Video pin, how could we mix it back together when we write to the WMV files Thanks you very much in Advance! Gordon

How to combine DShow filters and IWMWriter together
FredMunro
Hi Gordon,
First off, since this forum is about Media Foundation, and not as much about legacy platforms (DirectShow / WM Format SDK), the best place to get a good answer to this question from the community is here: http://www.microsoft.com/windows/windowsmedia/community/newsgroups/WindowsMedia/default.mspx dg=microsoft.public.windowsmedia.sdk&lang=en&cr=US
That said, I'll do what I can to answer at least the WM Format SDK side of your questions (I myself don't know the answer to #1).
It is definitely possible to use IWMWriter to convert AVI to WMV. You'll just need to do the decompression on each stream before sending the samples into the WMWriter, so that you're giving the WMWriter uncompressed audio and video. Once you get there, the code sample UncompAVIToWMV (included in the WM Format SDK v9.5) is pretty much what you want to do. And yes, the WMWriter will take care of interleaving audio and video for you.
Hope this is at least somewhat helpful,
Becky