If you are using the Windows Media SDK, you will probably know the sample source named 'avitowmv'.
This is an example that shows how to encode .asf files using the WMF SDK. Unfortunately, the
sample doesn't not support compressed AVI video files.
By adding a few lines of code you can change the source to support compressed AVI files.
If you want to uncompress video frames you can use
Also, you can modify the existing code slightly to configur Input Properties if you wish.