Megui H.264 Conversion Guide
Updated: 07/06/2007 09:24 AM

MeGUI is one of the newer tools that has been designed with H.264 encoding in mind, while supporting other types of conversion, such as XviD. This guide shows you how to encode a H.264 (MP4) using MeGUI from a DVD as the primary example (instructions for converting other types of video files are also included).
This guide is aimed at intermediate users, basically users that are familiar with DVD conversion/backup and want to experiment with H.264 and MeGUI. As such, basic knowledge of DVD ripping and conversion is required, although brief instructions will be provided in any case.
Software you'll need (all freeware):
AVI-Mux_GUI.zipNeroDigitalAudio.zip

Show details for Step 1: InstallationStep 1: Installation

Hide details for Step 2: DVD RippingStep 2: DVD Ripping

This step will rip (copy) the DVD files from the DVD disc to your hard drive, for further processing or burning straight to a DVD recordable. This step uses RipIt4Me (which will control and use DVD Decrypter, FixVTS as needed). Before you run RipIt4Me, make sure you don't have any other DVD decrypting/ripping tools running (like DVD43, AnyDVD, DVD Region+CSS Free) and also close any conflicting programs. The instructions here are for you typical movie DVD - for episodic DVDs (eg. TV shows), please refer to this RipIt4Me FAQ entry.
There are some running tips/notices for RipIt4Me in the official guide (just below the table of contents).
This guide will not cover all aspects of RipIt4Me operation. If you run into problems or see error messages in this step, or simply want to read a more detailed guide on RipIt4Me, please refer to the official RipIt4Me guide. There is also a frequently asked questions document.
Pop the source DVD disc into your DVD drive.
Start RipIt4Me. From the "Logs/Settings" menu, select "Preferences" and uncheck the "Run DVD Shrink after rip" option under the "1-click" mode section. Press the "OK" button to save the changes.

Click on the button. The following screen should come up:



Check to make sure the selected DVD drive letter is the correct one. The default output directory is based on the DVD's title, and this should be fine. Change the ripping setting to "Movie only" (again, if your DVD is an episodic one, please refer to this RipIt4Me FAQ entry). The available audio and subtitle streams should now be shown down the bottom - you don't need to change anything, but you need to note down the stream number (eg. 0x80 => 1st stream, 0x81 => 2nd stream) for the audio, which you'll need to know for MeGUI. Press "Next" to continue.
RipIt4Me will now automatically start and operate all the required programs for ripping. When ripping has been finished, you will get a dialog box notifying you that the logs have been moved to another directory. You can view previously saved logs by using the "Log/Settings" -> "View saved logs" function (log files are needed when you run into a problem and want to get help in our (official) RipIt4Me forum.
The DVD has now been ripped. You can now close RipIt4Me.

Hide details for Step 3: D2V CreatorStep 3: D2V Creator

This step will use MeGUI's D2V Creator tool to create a D2V file needed for MeGUI/AviSynth to handle MPEG-2 files. This step is required only for MPEG-2 files - all other types of inputs do not require a D2V file and can be loaded straight into AviSynth and therefore, you can skip this step and go to the next page/step (Step 4: AviSynth Script Creator).
Start MeGUI. I like to first clear the job queues of previously finished jobs. This is optional, but it might help to make things clearer. To do this, click on the "Queue" tab and then click on the "Clear" button.
From the "Tools" menu, select "D2V Creator". In the "Video Input" section, load the first ripped VOB file of the movie titleset (the rest of the files in the set will be loaded automatically). You will get an error message about not being able to find DVD Decrypter generated info files, this is fine (as we did not use DVD Decrypter's IFO mode) and press "OK" to skip this error.
MeGUI: D2V Creator
In RipIt4Me's step 1, you were asked to take note of the audio track numbers. We'll need it here select which audio track(s) to demux - you can select more than one track if you want the encoded file to have multiple audio tracks. Alternatively, you can just select the demux all the tracks and then choose the correct audio track(s) later on.
The default save directory is the same directory as your loaded DVD VOB files - change this if you want to. Select both the "On completion load files", "and close" checkboxes and press the "Queue" button. You are now returned to MeGUI - click on the "Queue" tab and press the "Start" button to start the D2V creation. When processing has finished, the status of the queued job will read "Done" and the created D2V file will be loaded into the AviSynth Script Creator ready for the next step. This can take a while, so please be patient - the status window's progress bar may not move, but don't worry, DGIndex is working

Show details for Step 4: AviSynth Script CreatorStep 4: AviSynth Script Creator

Show details for Step 5a: Video Encoding Options MP4Step 5a: Video Encoding Options MP4

Hide details for Step 5b: Video Encoding Options XVIDStep 5b: Video Encoding Options XVID

After the AviSynth Script Creator window closes, it will be entered in the AviSynth Script box on the Input tab. Below that is the output file. Click the button to the right of it to change the location or name. Select the dropdown menu next to Codec and set it to XviD. File Format should be set to AVI, MKV, or RAWASP (MP4). To select a Video Profile, determine what percentage of original DVD's bitrate will be used for the XviD encode. If you're not sure, compare the combined size of the VOB files to the intended final size of the XviD. The profiles are named by what amount of compression they're designed for. For example, XviD '>90% comp. check' means it's for encodes that are 90% as big as the original or more. Find the largest percentage that's smaller than or equal to the amount of compression your encode will have. Each compression level will have a fast and HQ option. As the names suggest, one will give you faster encodes, and the other a little higher quality.


Show details for Step 6: Audio Encoding OptionsStep 6: Audio Encoding Options

Show details for Step 7: AutoEncode and starting the encodingStep 7: AutoEncode and starting the encoding


Show details for MeGUI Custom x264/AVC video profiles. (Updated: 2006-12-21)MeGUI Custom x264/AVC video profiles. (Updated: 2006-12-21)


Url to this pages:
http://nade.dk/web/nade/site.nsf/FramesetHP?readform&wmain=files/Megui