Guide Convert your mkv movies and t.v. shows - .mkv to .avi the quick and dirty way

Status
Not open for further replies.
This is a quick and dirty way to convert your .mkv files to DIVX .avi. and should take an hour or less to convert your movie file, with pretty much the same quality you started with.

Tools you will need:-

If you have a codec pack installed, the first 3 items may already have been installed.

Install these if you don't already have them

-avisynth

-ffdshow

-mkv splitter

Please also install the 3 items below.

-AC-3 ACM codec

-VirtualDub (extract files to the directory of your choice)

-DIVX 6.08 (Even though ffdshow can play this file format, please install this codec anyway.

Install above filters/codecs as necessary.

OK, now to begin

In explorer, Navigate to the Directory where you have your movie file (for the sake of ease, I'll call it "myfile.mkv")

Make a new empty text file and rename it to myfile.avs

(this is just a text file which has had the extension changed from .txt to .avs so that it can be recognized as an avisynth script file)

This will leave you with 2 files..... myfile.mkv and myfile.avs

d38c94c974815f5eb9ed514bf564c4bc5g.jpg


Open up myfile.avs with notepad and write

Code:
DirectShowSource ("myfile.mkv")
where myfile.mkv is the name of your mkv movie file.. you need to put both the " " and the ( ) in the code.

Save and close the .avs file.

(this is just a text file which has had the extension changed from .txt to .avs so that it can be recognized as an avisynth script file)

Now fire up Virtual dub and open up myfile.avs (not the mkv file as it won't open or be readable by VirtualDub)

If you are unable to see the file, just click on the down arrow next to "files of type" (see image below) and change to "all types"

320ab2699b317ebdb045b3a474b66b2b4g.jpg


Your movie should load without any problems, if there are problems, then something is either not installed or not installed correctly.

VirtualDub

Audio

In VirtualDub click on the Audio drop down menu and make sure you have "full processing mode" selected (see image below)

Then click on "compression"

8d815ac2809d703497a3b0dee66268654g.jpg


One of the reasons that people encode with mkv, is it's ability to hold lossless audio formats, so it is likely that you have 6 channel (5.1) sound encoded with the file.

Go ahead and select AC-3 ACM codec

(see picture below) this should have been installed earlier.

Then select on the right "256k/bits, 48000 Hz, 5.1 Channels 32KB/s" (See picture below)

audio-comp.jpg


Then Click on ok button

Video

In VirtualDub select video drop down menu and make sure you have "full processing mode" selected (see image below)

Then click on "compression"

video-comp.jpg


Select "DIVX 6.8 Codec (2 logical cpu's)"

(Keep in mind that it will only say 2 logical cpus, if you have a dual core processor"

video-codec.jpg


Then on the click on "Configure"

On the first tab "Main" do the following

Select check box "Use presets to configure the encoder"

Slide bar/arrow all the way to the left so it is under speed not quality

leave the default at 1-pass

leave the bitrate at default

In Certification profile, select the profile that matches your input resolution ONLY

For example if you have 720p HD content select "720HD profile"

If you do not have HD content then select Home Theater Profile"

divxmainyd5.jpg


Leave the codec tab alone.. or at defaults

On the Video tab leave everything at defaults and make sure that you are NOT Resizing or select "No resize or format conversion"

divxvideotabrz4.jpg


Click ok in the DIVX window, and then again in the "select video compression" window

That should about cover all the settings, lets save the file.

In the VirtualDub window, select the File drop down menu, and then Save as AVI... and name your file as usual......

saveavinx0.jpg


OR

If you have a PS3 and you want to play these files back as DIVX, I believe the files have to be under 2GB, I find that if I make the file sizes 1GB max, I have less problems.

Under the file drop down select "save segmented AVI" (This will split the files into segments)

savesegmenthl2.jpg


Then select the segment size, in my case 1024 (this equals 1GB) or 2048 (this equals 2GB) (see below)

Leave both check boxes unchecked and name your file and save it.(see below)

segmentedcg8.jpg


That's it, sit back and wait.....

Oh.. to speed things up a bit one more thing....

In the Render Status window(see below) if you uncheck all boxes, it will speed things up a bit.

renderaz3.jpg


The render window you see above is for a 4.5 GB mkv file with the same settings as described above... the time to render approx 43 mins. @ 55-65 frames per second... not too bad :D

EDIT 03/25/08

Here is an image capture from the converted movie you see in the status window above so you can see the quality of the conversion.
 
  • Like
Reactions: 2 people
This is a quick and dirty way to convert your .mkv files to DIVX .avi. and should take an hour or less to convert your movie file, with pretty much the same quality you started with.

hmm, you sure bout this, as i see you choosing codecs, in the guide, for both audio+video.

Same quality means, you pull off the audio+video compnents off one container format and then re-insert them into another, unchanged, ie no re-encodes at all.
 
^^ That's why he said pretty much the same quality...
PP, excellent tut...
One Query, will this avi file play in DivX (Ultra certified) players? Do the DVD players support 720p?
 
4dh1r said:
^^ That's why he said pretty much the same quality...

PP, excellent tut...

One Query, will this avi file play in DivX (Ultra certified) players? Do the DVD players support 720p?

when it’s a DVD player it won't play anything above 720x480 resolution by any chance even the encoded divx videos @ HD resolution.
 
Quad Master said:
when it’s a DVD player it won't play anything above 720x480 resolution by any chance even the encoded divx videos @ HD resolution.

So this tut is exclusively for those who wanna see mkv movies in PS3 only? For PC / DivX player users this is of no use (unless if we downscale the res to 720x480 for DVD players which is again useless since we get the same quality from a DVDRip) :huh:
 
No re...
This is for all thosee who want to view their mkv on dvd players..

He gave you the choice to choose any divx profile...
Consider this a walkthrought,,You can alwasys change as per your needs, SAy if you want to play on dvd player, you can change the audio to mp3 or something you know is compatible..
 
Consider this a walkthrought,,You can alwasys change as per your needs, SAy if you want to play on dvd player, you can change the audio to mp3 or something you know is compatible..
Thank you ... exactly......Yes :) You can change the size by changing the profile, the idea behind quick and dirty means that you are not resizing and are using very-fast re-compress to avoid the time it takes to convert normally, so it should give you similar quality. If you are starting with a different resolution than I am using in the example, then you should use the profile that best matches your input.

If you want to resize to 720x480 from HD content, then you will need to choose a more balanced re-compression, and use the "Home Theater Profile" so it will take longer if you want to maintain the quality of the movie.

Please also note that it depends on what DIVX compatible device that you have.. it states (next to the certification profile) that the 720 HD profile is compatible with some DIVX devices.

divxva4.jpg


If it is an HD dvd player, then my example will play back fine,.. if not, you will need to resize. This rez should have no problems on a pc, or yes... a PS3 and I think also Xbox. :)

The movie I showed in the render info at the end of the tutorial was amazing HD quality from an original Blue Ray source at 1280x528 rez, the converted DIVX file was so close in quality, that the difference was not really perceptible, this file payed perfectly on my PC and PS3

Truthfully, if you guys are planning on resizing HD content to NTSC 720x480 compatible content, you should just get the 720x480 version to start with and save yourselves the large download... it really isn't worth it to download HD just to convert it to 720x480. If you start with a 720x480 mkv file, then it's a moot point anyway, since you will end up with a 720x480 DIVX file too, after using this guide. ;)

It is difficult to account for every situation in a single tutorial, someone had asked me how to convert their mkv files, so I put up this tutorial for them. If you are stuck and need help to convert to another resolution, let me know and I'll see what I can do :D
 
If the source mkv has 2 audio streams will the obtained avi be a dual audio avi? Also will the subtitles become hardcoded?

Nice tutorial though.
 
Status
Not open for further replies.