How to compress AVI file using any of the Codec in VB?

I have an uncompressed AVI file (no audio layer). I want to compress it using CODECs installed on my system (DivX, Leadtec, ... whatewer). Sample code anybody?
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

if you just need a tool for compressing and do not need to do it through code use the following tool:

they have a free format converter which will allow you to specify the compression method
kojotAuthor Commented:
Very kind of you to post this URL, but I need CODE SAMPLE, for I want to have full control over the procedure.
Never miss a deadline with

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

kojotAuthor Commented:
OK!!!!!!!!!!!!! Thanx a lot:)=
You're welcome.....
kojotAuthor Commented:
TheRedGuy hi!

One more Q: I used the sample code there to encode AVi .. that's cool. But there is one more issue - I cannot figure out hot to pre-set codec I want to use for compressing (user must mannually select it) and it's verry frustrating.

Have you been working on this problem or/and have any suggestions?
All Courses

From novice to tech pro — start learning today.