HOME | 1. Extracting | 2. DGIndex | 3. Avisynth script | 4. Encoding with MeGUI | 5. Muxing | Finding the best CRF value
4. MeGUI
Launch MeGUI.
Open your Avisynth script (encode.avs in my case).
4.1 AssumeTFF() and AssumeBFF()
A preview window will appear. Use the arrow keys on your keyboard to go forward, frame by frame. If the motion doesn't seem fluid (like if the video seems to go back and forth), it means you have to use AssumeBFF() in your script. Modify your script and open it again with MeGUI.
4.2 Cropping
Most of the videos will have black bars, either on the sides and/or at the top.
Modify your avisynth script to remove them (modify then reload the avs file every time).
It goes like this:
Crop(left,top,-right,-bottom)
Dimensions allowed by x264:
mod16 (example 720x432)
mod8 (example 712x424)
mod4 (example 716x428)
width mod4, height mod2 (example 716x430)
If you set this wrong, the encoding simply won't start and it will give an error.
4.3 Encoder Settings
Reload the avisynth script in meGUI again.
If the format of your video is 4/3 select the SDB Fullscreen NTSC non-ITU profile.
If the format of your video is 16/9 select the SDB Anamorphic NTSC non-ITU profile.
We don't care about the other profiles in this case (but they could be useful if you want to start encoding other stuff).
Click on 'Config'.
Instead of 'Automatic 2pass', choose 'Constant. Quality' (aka CRF, Constant Rate Factor).
I generally choose something between 20 and 24, depending on the source (the smaller the value, the better the quality).
I'll explain later how to encode a few seconds of the video for testing purposes.
4.4 Encoding
Choose the File Format 'mkv'.
Click on 'Enqueue'.
Go to the 'Queue' tab.
Click on 'Start'.
On my machine, a 10 minutes video can take up to 1h30 of encoding. Depending on the quality chosen.