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):
Step 1: Installation
The first thing you need to do before you can even install MeGUI is to download and install
Microsoft's .NET Framework version 2.0. It's a fairly large file and installation could take more than half an hour. Once you have it fully installed, you can now go on and download MeGUI.
Download MeGUI and install it. Start it up and most likely, it will prompt you to update the software used by MeGUI - click "Yes" to launch the update Manager.
Press the "Update" button to start the update process - MeGUI will automatically download and launch the install for the required software. You will most likely get a "1 file had problems" error, this is because the "neroaacenc" software cannot be downloaded automatically from MeGUI due to copyright reasons (it is freeware, but you need to go through Nero's software agreement first before you can download it). If you need to update "neroaacenc", go to
this page, select "Agree" to download the ZIP archive and extract the .exe files (in the win32/ folder in the ZIP archive) to your "megui\tools\neroaacenc" folder (eg. "c:\program files\megui\tools\neroaacenc\neroaacenc.exe").
When all the updates are completed, you can now close the MeGUI updater.
If you are converting from a commercial DVD source, you will need to rip the DVD to your hard-drive using RipIt4Me. RipIt4Me (and tools required by it) also needs to be installed - you can either follow the instructions in the
RipIt4Me guide or follow step 1 of our
Quick and Dirty DVD Backup Guide (you can skip installing ImgBurn and DVD Shrink, just install DVD Decrypter, RipIt4Me and FixVTS).
And we're now finished with the installation. If you are converting from a commercial DVD source, please proceed to the next page/step (Step 2: DVD Ripping). If you are converting from MPEG-2 (but not from a commercial DVD), please skip to step 3 (Step 3: D2V Creator). For all other video formats (eg. AVI,
Step 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.
Step 3: D2V Creator
Step 4: AviSynth Script Creator
Step 5a: Video Encoding Options MP4
Step 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.
Step 6: Audio Encoding Options
Now it's time to set up the audio encoding options. If you've followed this guide for DVD conversion, then the demuxed audio track we selected in the D2V Creator should already be loaded in (if not, load in the .ac3 file that was created). If you are not converting from a DVD source, then you can either load in a separate audio file or if you edited the AviSynth script (set "audio=true"), then load in the AVS file into the "Audio Input" section (meaning both video and audio inputs are the same AVS file). Repeat if you want a second audio track by clicking on the "2" select option.
Now we select an audio codec to use. I prefer AAC audio, especially with H.264 as video - AAC is to MP3 what H.264 is to DivX/XviD, better compression + better quality. So which audio codec should you use? I prefer ND AAC (Nero Digital), so select it if you agree with me. We can now choose an audio profile from one of the "NDAAC" options. "NDAAC-HE-64Kbps" is the one I like, as it will give you roughly the same quality as a 128 Kbps MP3 file. You can select one of the "HEPS" (HEv2) profiles if you really want a small file size. The "LC" options offer better compatibility (eg. with iPod/iTunes), but at the cost of file size (still smaller than MP3s though).
Step 7: AutoEncode and starting the encoding
MeGUI Custom x264/AVC video profiles. (Updated: 2006-12-21)
Instructions
Install
MeGUI and let the autoupdate run, it will automatically fetch the profiles from the autoupdate server or if you prefer get the profiles archive (below) and use the MeGUI Import Profiles option to import them.
Once imported you will find the profiles in the "Video Profiles" drop down list.
Before starting encoding set the bitrate or quantizer (manually or thru the calculator) and adjust the inloop filter accordingly to your needs/taste: keep it 1;1 or higher for anime/toons (max 3;3) and not higher than x264 defaults (0;0) for movies.
Profiles for maximizing Quality and hit a desired bitrate/filesize (2 or more passes, SLOW encoding, High Profile)
HQ-Slow: Pretty slow but not much. Quality is near the best.
HQ-Slower: Slower than HQ-Slow but it tries to squeeze some more compression thru the use of more reference frames.
HQ-Slowest: Same as HQ-Slower with more reference frames.
HQ-Insane: All settings maxed out.
Profiles for Common Encoding (2-passes)
CE-Highprofile: Common settings using high profile options (not compatible with QuickTime)
CE-Mainprofile: Common settings using main profile options (not compatible with QuickTime)
CE-QuickTime: Common settings for QuickTime 7 compatibility.
CE-Baseline: Common settings using baseline profile options (100% compatible with QuickTime 7)
Profiles for maximizing Speed and hit a desired bitrate/filesize (1-pass)
1P-Maxspeed: Everything disabled for max encoding speed (good for live capturing).
1P-Intermediate: Intermediate settings for average speed and final quality.
1P-Goodquality: Settings for good quality with 1 pass.
Profiles for constant Quality/Quantizer (1-pass)
CQ-Lossless: Lossless encoding.
CQ-ASP_Q2_equiv: Almost the equivalent of MPEG-4 ASP Q2 encoding.
CQ-ASP_Q2_eq(crf): Same as above but with "constant quality" (constant rate factor).
Profiles for Anime/Toons (2 passes)
AE-Standard: 2 passes, Main Profile, standard quality.
AE-Goodquality: Slower than AE-Standard, High Profile, higher quality.
AE-Maxquality: Slowest mode with maxed out settings, best quality.
Profiles for Consoles and Portable Devices
PD-PSP: Profile for Sony PSP playback.
PD-Xbox_Hires: Profile for MS XBOX and higher than 512pixels resolution (latest XBMC is needed).
PD-Xbox_LoRes: Profile for MS XBOX and lower than 512pixels resolutions (latest XBMC is needed).
PD-iPod: Profile for iPod Video based on
Arstechnica settings.
PD-iPod 5.5G: Profile for the new iPod 5.5G.
Profiles for HD-DVDs
SA-HD-DVD: First EXPERIMENTAL Profile for HD-DVD.
Url to this pages:
http://nade.dk/web/nade/site.nsf/FramesetHP?readform&wmain=files/Megui