This guide will tell you how to convert from a .mkv file to a .avi file. Note: This will not work if you can't play the .mkv file on your computer.
Step 1
Download Avisynth, VirtualDub, the Xvid codec, and this .avs file.
Step 2
Install the files you downloaded. Note: VirtualDub does not need to be installed, you only have to unzip it to a folder.
Step 3
Move MyMovie.avs (the .avs file above) into the same folder as your video file (let us call it "yourmovie.mkv").
Step 4
Open it with Notepad. Then the line within the quotation marks ("mymovie.mkv") must be replaced with the name of your movie. For example: DirectShowSource("yourmovie.mkv", fps = 23.976, convertfps = true)
Step 5
Open VirtualDub.
Step 6

Drag MyMovie.avs file onto VirtualDub. 
Step 7
The beginning of your video should be shown on the screen.
Step 8
Go to Video->Compression (or type ctrl-P).
Step 9

Choosing Xvid: 1) Select Xvid (if its not there, re-install Xvid and restart VirtualDub). 2) Press Config. 3) Make sure the Target Quantizer is 4.00. 4) Press OK. 
Step 10
Check Audio->Full Processing mode.
Step 11


Step 12
Go to Audio-> Compression.
Step 13


Step 14

Select MPEG Layer-3 and 56kbit/s as the bit rate. 
Step 15

Press F7 and select a location to save your new video. 
Step 16
Your video will then be converted. Wait patiently, as this will take a while depending on your computer's speed and the length of the video.
Step 17
Close VirtualDub.
Step 18
Open your newly converted video.
Step 19
If it is playing properly, enjoy! If not, something went wrong.
Step 20
You can delete the .avs file and uninstall VirtualDub and Avisynth, but if you uninstall Xvid, your video may not play properly anymore.
Things You'll Need
- Xvid codec: http://www.xvidmovies.com/codec/
- Avisynth: http://sourceforge.net/project/showfiles.php?group_id=57023
- VirtualDub: http://virtualdub.sourceforge.net/
- A fast computer or a lot of time to leave your computer on.