PDA

View Full Version : Using Windows Media SDK



rombust2
02-25-2008, 06:36 AM
I thought that i would provide the following information, as it may help someone, somewhere.

I use Windows Media SDK in a C++ Program to perform an animation capture from my program.

This program outputs a "movie.wmv" file.

Initially, i would run the program as follows.

1) Open "movie.wmv
2) Write the initial frame
3) For every screen change, write a frame (with the current time stamp)
4) Close "movie.wmv"

Rename movie.wmv to movie.avi, else speededit will not open it.

This caused problems. Whist window media player would play it, speededit, randomly would show the screen changes at incorrect intervals (sometimes a couple of seconds out).

To fix this problem, i had to write the frame every tenth of a second, even if the screen had not changed.

Now speededit will display and render it correctly.

That took me a couple of days to figure out what was wrong!

(ffmpeg also did not handle the WMV, due to the same reason.)