April 14th, 2011
This tutorial will show you how to encode your video to h264 with meGUI. Please note that MeGUI is frequently updated, so this tutorial might not be fully accurate. What you'll need:
There are many versions of avisynth, I would suggest that you download the latest stable version, which right now is 2.5. Then install avisynth, just select the standard installation. Next install meGUI and then open it once you've installed it. When meGUI is launched it will ask you if you want to update it. Select "yes"
Then just click "update", it should have checked all the boxes for you.
Windows with presets will pop-up, I would suggest that you tick them all, because many of them will be useful later on.
A quick way to select the presets is to right click with your mouse and select check all. meGUI will say that it needs to be restarted. The installation is finished after it has been restarted. Now we can select the movie you want to encode. Go to Tools > AVS Script Creator A window will pop-up. Just select the video input.
Then click save. Open up the meGUI window again. Next select an option from the encoder setting. I would suggest one of these 3:
- x264 Unrestricted: 2 Pass Fast - Decent quality, good for people with really slow processors.
- x264 Unrestricted: 2 Pass HQ - Good quality, probably the best solution for most people, you should at least have a dual core processor if you select this option.
- x264 Unrestricted: 2 Pass Insane - The best quality you can get. It will take a long time to encode, even with a good processor. With a bad processor you'll be encoding a 10 minute movie for days.
If you don't have these presets, then you need to download them. Click this link and save the zip archive somewhere. Then you need to import the presets, in MeGUI click file and select "Import Presets". Then after a few seconds a new window should open, I suggest that you tick all the presets (a fast way to tick all the presets is to right click and select "Check All"). Select the file format as MP4. Next select the audio track for your movie by clicking the button on the Audio Input row. If you don't have a separate audio track then you can just put the video there that contains the audio track. Next you need to select the encoder setting for the audio. I highly recommend that you use FAAC. Many streaming sites like YouTube use AAC as their audio codec, so this reduces the chance of your video getting a screwed up audio on YouTube and other places. You can select the audio bitrate by clicking the config on the right side of the encoder setting.
Select ABR and choose the bitrate you want for your video. Anything between 320 and 128 is good. Select the extension for the audio to be M4A Now the meGUI page should look like this:
You're almost ready to encode. Click the AutoEncode button in the bottom right corner.
Select Average Bitrate and put a vaule there. Anything around 5000-6000 is good. The bitrate affects the video quality the most. A 5000-6000 bitrate is pretty much perfect quality. The bitrate also affects the filesize of the video. No one wants to download a 213471313891231 GB file so I really suggest that you stay below 10000 bitrate. 5000-6000 bitrate gives the best quality/filesize ratio. Then click Queue Now select the Queue tab on meGUI
Then click Start. It should start to work on the different jobs...
On the meGUI window there should be listed 4 jobs. Once all the jobs are "done". Then you're video is encoded and ready to be viewed. When you're done delete all the jobs. If you get an error, it is most likely because you used the video as the audio track. You can extract the audio track from the video with this program. Select AAC/WMA/WAV as the output format. Once you've got the new audio track go back to meGUI and put it as the Audio Input. Then go to AutoEncode and select the bitrate and queue the jobs. Remember to delete any old jobs from the queue before you queue new jobs.