65.9K
CodeProject is changing. Read more.
Home

Avitowmv sample compressed AVI file support

starIconstarIconstarIcon
emptyStarIcon
starIcon
emptyStarIcon

3.67/5 (3 votes)

Apr 12, 2001

viewsIcon

149967

downloadIcon

2252

This article demonstrates how to modify the'avitowmv' sample to support compressed AVI files

Introduction

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.

The Code

If you want to uncompress video frames you can use AVIStreamGetFrame() function. Also, you can modify the existing code slightly to configur Input Properties if you wish.