MeGUI

From SDA Knowledge Base

Revision as of 20:28, 18 August 2006 by Yoshi348 (Talk | contribs)

Jump to: navigation, search

Megui

Those who use VirtualDub will have to get used to the fact that Megui does not accept simple avi input. Avisynth scripting is required before continuing with this guide.

We will be using the H.264 video codec along with the AAC audio codec muxed inside an mp4 container. The video files must be Quicktime 7 compatible; please double-check your work before submitting to save yourself and SDA time and bandwidth.

Software and Installation

You may need to install the latest .NET Framework before installing Megui.

Head over to x264.nl and download Megui. Install the program and run it. You should get a message saying there are updates available. Click ok and let the program download everything it needs. To access the autoupdate feature, you can also go to Tools -> Update.

You will probably get an error saying that Nero Digital Audio isn't available, so you'll have to download it separately. Download the zip file and extract the contents to "C:\Program Files\megui\tools\neroaacenc\".

Importing the avisynth script

In the input tab, open the avisynth script in both video and audio boxes. You will notice that the output files have the same name... MAKE SURE THEY ARE DIFFERENT ...or you will probably end up losing your whole encode, and a whole lot of time.

Your input screen should look something like this:

File:Http://www.angelfire.com/planet/ballofsnow/meguiinput.png

Setting the video compression

While still at the input screen , press the config button for x264. I will briefly explain the settings.

Main

Mode - Automated 2-pass should be used. Use the following bitrates: LQ - 128, MQ - 512, HQ - 2048, IQ - 5000.

If your game is not graphically complex, you can save some time by using Constant Quantizer mode and staying under the SDA bitrates. Starcraft for example is typically done with Constant Quantizer and bitrates usually do not go beyond 1300, well under the 2048 limit for HQ. 17 should be used for videos with 320x240 resolution, 19 for 640x480 or higher resolution.

Deblocking - It is recommended to leave the settings to 0/0. Use lower settings if video is too blurry, but you will risk seeing more blocks.

Number of threads - This depends on your computer. Leave it at 1 if you're cpu is single-core, and 2 if it's dual-core.

AVC profiles - Since we want to be sure that the video is Quicktime 7 compatible, you should select the main profile.

Zones

Zones are used to make specific parts of your video have higher or lower quality than the rest of the video. This is rarely used.

RC and ME (Rate Control and Motion Estimation)

Rate Control - I recommend leaving these settings alone, although VBV Maximum Bitrate can be useful. It ensures that encodes using variable bitrate won't go above the maximum specified bitrate.

M.E. - These settings can make a large impact on the quality on your video, and it all depends on how much time you want to put into it. Chroma M.E. should be enabled. Range should be at least 8, I recommend 16. For the algorithm, go with either hexagonal or multi-hex. Do not use exhaustive, it takes way too long and has negligible results. Subpixel Refinement, go with at least #5.

Misc - Leave these on default.

Advanced

Minimum Quantizer - 17 should be used for videos with 320x240 resolution, 19 for 640x480 or higher resolution.

Trellis - Should be turned off when using Constant Quantizer mode. Otherwise it depends on you, though #2 is probably not worth the extra time.

Number of reference frames - This is how far the encoder will check for similarities between frames. A value of 5 is recommended, use higher for more quality.

Mixed - enabled.

CABAC - Should definitely be turned on. It is one of the main reasons that H.264 is a superior codec.

No Fast P-Skip - Helps to keep blocking low in scenes with gradients.

Macroblock options - All should be turned on except Adaptive DCT and I8x8.

Number of B-Frames - I recommend 3, since it is rare that you'll see more than that in a row.

Adaptive B-Franes - Should be turned on to let the encoder decide how many B-Frames to use in a row.

B-Pyramid - OFF. This will break Quicktime 7 compatibility if it is on.

RDO, Weighted, Bidirectional - More "give me more quality at lower encoding speed" settings.

B-Frame mode - Spatial tends to give better results than Temporal.

Personal tools