Difference between revisions of "MeGUI"

From SDA Knowledge Base

Jump to: navigation, search
(Main)
m (Saving your settings)
Line 142: Line 142:
  
 
You can save a lot of time by saving your settings for later. Go to the video configuration window and click "New," then type in a name corresponding to whatever quality you had your settings adjusted to. Do the same thing for audio and making videos in the future will be quick and painless. To load your settings, go to the main MeGUI screen and choose an option you created from one of the profile dropdowns.
 
You can save a lot of time by saving your settings for later. Go to the video configuration window and click "New," then type in a name corresponding to whatever quality you had your settings adjusted to. Do the same thing for audio and making videos in the future will be quick and painless. To load your settings, go to the main MeGUI screen and choose an option you created from one of the profile dropdowns.
 +
 
Return to the [[Main Page|front page]].
 
Return to the [[Main Page|front page]].

Revision as of 23:21, 2 April 2007

Introduction

Those who use VirtualDub(Mod) 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 Microsoft .NET framework 2.0 in order for MeGUI to run.

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. You can also go to Tools -> Update to access the autoupdate feature. If their server is down and autoupdate isn't working, you can get the files here, with latest versions up to January 31st, 2007. Extract the contents to "C:\Program Files\MeGUI\". This package includes the Nero Digital Audio files.

Go to the Nero Digital Audio page and download the zip file. Extract the contents of the zip file to "C:\Program Files\megui\tools\neroaacenc\". It will probably have a "win32" folder; if so, copy all the contents of the win32 folder and put them in "C:\Program Files\megui\tools\neroaacenc\". If the neroaacenc folder does not exist, create it yourself.

In MeGUI, go to Tools -> Settings -> Program Paths. Look for the entry with NeroAacEnc and click the browse icon to the right. Find neroaacenc.exe which should be in the "megui\tools\neroaacenc\" folder if you followed the instructions above. Verify that the paths for mp4box and x264 are also correct; don't worry about the rest. Save your settings.


Meguipaths.png


Importing the AviSynth script

In the input tab, open the AviSynth script in both video and audio boxes. MeGUI exports your video and audio as separate files; you later combine them. You will notice that the video and audio 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:

Meguiinput.png

Don't worry about the profiles.


Setting the video compression

Bitrate list:

  • Low quality - 128 kbps
  • Medium quality - 512 kbps
  • High quality - 2048 kbps
  • Insane quality - 5000 kbps


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. Look at the bitrate list above and choose the appropriate value for your encoding.

Tip: 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. Notice that these values correspond to the minimum quantizer values below.

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 corresponds to the number of processing cores your computer has. Set it to 0 and it'll automatically choose the right value.

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 hexagon 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 (aka: quality can't go beyond this point...) - 17 should be used for videos with 320x240 resolution, 19 for 640x480 or higher resolution. If you are getting undersized files, this is the minimum quantizer in effect, assuming you did everything else correctly.

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 5, since it is rare that you'll see more than that in a row.

Adaptive B-Frames - 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.


Setting the audio compression

Bitrate list:

  • Low quality - 64 kbps
  • Medium quality - 64 kbps
  • High quality - 128 kbps
  • Insane quality - 320 kbps

Tip: Use common sense when choosing the bitrate for the audio. If your DVD recorder uses 192 kbps AC3, then there's no need to go any higher, especially when considering that AAC is a newer, more advanced codec and can account for the lossy to lossy conversion. To check the audio bitrate of your DVD recorder, look at the filename of the ac3 file DGIndex gave you.

Go back to the input screen and look at the audio section. Choose ND AAC as the codec, choose MP4-AAC as the container, and then press the Config button. Use adaptive bitrate, and move the slider to select your bitrate. (Why they didn't just use an input box puzzles me.) For AAC Profile, use Low Complexity (AAC-LC).

NDAAC HQ.png


Encoding the video and audio

So you're back at the input screen, your configurations are all good to go. Now you just have to put those encoding jobs in the queue, so click the enqueue button for both video and audio and then click on the queue tab.

Meguiqueue.png

If it looks good, hit the start button.

Combining the finished video and audio files

Simple enough, just go to Tools -> Muxer -> MP4 Muxer and add your video and audio files and set an output file name. Then press the queue button, go back to the queue tab and press start again.

Meguimux.png


And that's it! You should now have your final mp4 files ready for submission.

TIP: If you want to queue everything right from the get-go, you can create text documents and rename them whatever you plan on naming your intermediate files (segment_1_video.mp4, segment_3_audio.mp4, etc.), tell MeGUI to mux those together, then delete them. This basically tricks MeGUI into thinking you have the files when you don't. You can also use batch encoding.


Clearing the queue

Sometimes, when you select all the files inthe queue and hit "Delete," you'll get a weird error message and you'll have to Ctrl+Alt+Del to get out of MeGUI. To avoid this, simply hit the "Clear" button.


Checking your quality

Before you encode your actual speed run, you should make sure you're doing everything right. If you encode your speed run incorrectly, it will be a waste of time for you and SDA. Make 10-15 second test files for each quality and upload them to a site such as http://www.yousendit.com, then make a topic on the Tech Support forum with links to the files so their quality can be verified. Make sure to post the contents of your AviSynth script as well. If you use YouSendIt, just enter your own e-mail as the recipient, since anyone can download it, whether or not you enter their e-mail there.


Saving your settings

You can save a lot of time by saving your settings for later. Go to the video configuration window and click "New," then type in a name corresponding to whatever quality you had your settings adjusted to. Do the same thing for audio and making videos in the future will be quick and painless. To load your settings, go to the main MeGUI screen and choose an option you created from one of the profile dropdowns.

Return to the front page.

Personal tools