November 2007

Monthly Archive

How to Convert MKV x264 to WMV for the Xbox 360 (Part 2)

Posted by walsh_r on 10 Nov 2007 | Tagged as: Media Center, Multimedia, Xbox 360

**Update Visit http://www.ryanwalsh.ca/blog/?p=8 for a new polished tutorial similar to this one, to convert all of your MKV’s to WMV (DTS support included).

With all of the required software from Part 1, we are now ready to start converting x264 MKV video files to WMV-HD.

Process:

The first step is to separate the audio and video portions of the MKV file. By doing this, we will minimize the reduction in quality associated with converting video files from one type to another. Skipping this step, will negatively impact the frame rate of the outputted WMV-HD files.

  1. Open MKVExtractGUI (C:\Program Files\MKVtoolnix\MKVextractGUI.exe by default).
  2. Select the MKV file using the input section of MKVExtractGUI.
    1. After a few moments, items will be displayed in the Content box of the MKVExtractGUI.
  3. Select the audio track (usually labeled with A_AC3).
  4. Click Extract.
    1. This will extract the audio portion of your MKV file to the output directory (which is by default, the same location as the input directory).
    2. Once the extraction is complete, click OK and close MKVExtractGUI.

Extracting Audio from MKV using MKVExtractGUI

The second step in the conversion process is to create an AVIsynth script to be used in a TMPG Express project (the software which we will use in the next step).

  1. Open up notepad, or any other text editor, and create a script using the following as a guideline. Remember to edit the script so that it matches the path to your file, and the correct filename.
    1. DirectShowSource (”C:\wmv_working\Oceans.Thirteen.2007.720p.HDDVD.x264-SiNNERS.mkv”)
    2. c:\wmv_working in this example, is the directory where the mkv file is being stored, and the full path to the file is C:\wmv_working\Oceans.Thirteen.2007.720p.HDDVD.x264-SiNNERS.mkv
  2. Save the file as “movie.avs”.

Our next step is to create a project in TMPG Express, using the AVIsynth script as our video source file, and the extracted AC3 file as the audio source.

  1. Launch TMPG Express
  2. Start a new project
  3. Click “Add File”
  4. Select the AVIsynth file created earlier. You may have to change the file type drop down list to “All Files” for the script to appear.
  5. Select the AC3 file extracted previously as the source file for the AUDIO.
    TMPG Project Window
  6. Click “Yes” if prompted to reset a key frame list
  7. Pay attention to the details listed beside “Source Format” for the video portion of the project. Particularly, note the resolution of the video somewhere before proceeding, as you will need to enter in this information in future steps. The resolution of the video in my example, is 1280*528.
  8. Rename the clip name if you’d like, and click OK to proceed.
  9. Select “Format” at the top of the TMPG window.
    Select Format from the Main Menu
  10. The “Output Format Selection” window will display. Click “Browse” at the bottom of your screen, and select the custom Xbox 360 720p VBR TMPG profile extracted from the wmv-hd.zip file in Part 1 of this tutorial. The file’s name is Xbox 360 720 VBR.txp4e
  11. Once you have selected the TMPG profile in step 7, you will be directed to the TMPG Format window. There are two key things to adjust in this Window.
    TMPG Format Window

    1. Enter the correct values for the video resolution (as noted earlier).
    2. Click on the “Calculator” button.
      1. From the Calculator, you can adjust the bit rate of your output file, to achieve whatever quality/size limitations needed. For example, I try to make my HD-WMV files fit onto a blank 4.7 GB DVD. To do this, select DVD 4.7 GB (UDF) from the drop down list, enter 100% of the media capacity, and click OK.
      2. Most HD MKV files are released to fit onto a 4.7 GB DVD, or an 8.5 GB DVD already. If your MKV file is set to fit onto an 8.5 GB disc, it may make sense to you for your converted file to fit the same. In this case, select DVD 8.5 GB (UDF) instead.
      3. If you never plan to burn the video files to DVD, file size may not be an important factor for you. In this case, try to match the file size of your MKV file by experimenting with the bit rate values.
  12. Click on Encode at the top of the TMPG menu.
    Click on Encode
  13. Change the output file name if you choose, and click Start Encode to have TMPG begin the transcoding process.
  14. Sit back, and wait. This process can take quite a bit of time, depending on the specs of your system, and the length of the video file. For example: a dual core, 64 bit 4200+ AMD, with 3 GB of RAM, and Windows Vista finishes a 1.5 hour movie in approximately 12.5 hours.

Thanks again to Cody Browning for helping many of us come up with this conversion method. His original thread from xbox-scene.com can be found here.