MKV [Demuxing , Encoding and Muxing] Tutorial
By Koushik Saha on 25.12.07
Filed Under: computer, GUI, H.264 Info, MeGUI, MKV, MKVToolNix, photoshop
Software You’ll Need:
1. MKVToolNix - http://www.bunkus.org/videotools/mkv...downloads.html
2. H.264 Info - http://sourceforge.net/project/showf...kage_id=225029
3. MeGUI - http://sourceforge.net/projects/megui
Part 1 : Demuxing an MKV into elementary streams
1. Start MKVMergeGUI from the MKVToolNix Installation Folder
2. Drag and Drop your MKV Video file to the “Input Files” container .
3. Notice the Streams you want to extract .
4. Now open a Command Prompt from
Start->Program Files->accessories->Command Prompt
5. Change to the directory where you have MKVToolNix installed
6. Now to demux the file you’ll use a program called mkvextract .
7. On the command prompt , type this code:
mkvextract tracks
Note: The most simple way to enter path of a file in CMD is to just drag and drop it into the
8. This will extract the Video and Audio streams separately in the locations C:\Video.264 c:\Audio.aac
Part 2: Encoding the Video and Audio
1. Open up H264Info
2. Load the file using the input button and then change the Profile Level of the file to 4.1 , this will make sure that the H.264 Video plays well on most HD Players and the Xbox 360 as well .
3. Save the output as video-4.1.264
4. Now if you want to encode the audio then encode it to whatever format you like using any encoder like dBPoweramp or whichever encoder you like . we’ll leave the audio encoding part here as AAC works fine .
Part 3: Muxing into an MPEG-4 File
1. Now , to combine these streams into s single MP4 file we’ll have to Multiplex it.
2. Fire up MeGUI
3. Go to Tools->MP4 Muxer
4. Now set the Video Input , the Frame Rate , the Audio Input and Finally select the Output Destination .
5. The resultant file is a fully standards compliant mp4 file and will play in any player that supports H.264 and AAC .

0 comments for this post