Re: Create WMV from sequence of images



"Chris P." wrote:

Honestly I think you're probably better off with the Format SDK (which is
what WME uses underneath). You will be able to create a profile
programmatically that matches your image source and push in the bitmaps
with the timestamps set for the desired duration. If your not using any of
WME's transformation features then I don't think it is buying you anything
here.

There is a sample in the WMF SDK called UncompAVIToWMV that does almost
exactly what you want. It just needs to be modified to push the bitmaps
from a source other than the AVI file. Unfortunately the sample is C++ but
between it and the documentation you should be able to figure out what to
do. Not sure how friendly it is to VB6.

Thanks Chris for the tip and suggestion.

I installed the Format SDK (ver 11) in my WinXP SP3 box (WMPlayer 11 is also
installed), and since I have Visual C++ Express Edition, I tried
experimenting with the sample UncompAVIToWMV.

Unfortunately VC++E wants to convert the code as it was written in a
previous version of Visual Studio (I don't know how to tell what version it
wants by default). I let VC++E convert everything, then tried to build the
..exe without modifying anything, and I got "UncompAVIToWMV - 126 error(s), 18
warning(s)". Ouch.

At this point I'm not very well versed in C++, but I'm willing to learn what
I need to do to make this sample code work so I can see if it might work for
my conversion project.

Do you have any suggestions on what I need to do in order to get my VC++E to
successfully build the console .exe app?

Thx again for the help.
-Dan

.