Log in

View Full Version : Can't get MeGUI to use the correct AR


noaxark
19th April 2008, 13:36
So I've been using this guide (http://mewiki.project357.com/wiki/Guides:Basic_Guide) to convert a DVD to x264. The guide doesn't cover aspect ratios very well, and as I've found out, neither does google (at least with the keywords I'm using).

I'm encoding Bubba Ho-Tep, which is in a 16:9 AR with 6 pixels of of black at the top and 10 at the bottom. The avisynth script is as follows:


# Set DAR in encoder to 2357 : 1250. The following line is for automatic signalling
global MeGUI_darx = 2357
global MeGUI_dary = 1250
DGDecode_mpeg2source("E:\Temp\dvdriptemp\VTS_01_1.d2v",info=3)
ColorMatrix(hints=true)
#deinterlace
crop( 0, 6, 0, -10)


The problem is that no matter which Clever (TM) Anamorphic encoding setting I use -- resize to mod16, non-mod16 (as in the script above), crop to mod16 -- the black bars in the end product are too large. But if I manually change the darx and dary values in the AVS script to 853 and 464 respectively (numbers construed from my pretty much guessing what calculations to use), the black bars match those of the DVD as far as I can tell.

Now, I don't like the look of that odd number (853), and I certainly would prefer that MeGUI did the math instead of the dysfunctional duo that is run->calc and I. So what am I doing wrong?

Avenger007
20th April 2008, 21:58
If you want 16:9 Sample AR (aka Pixel AR), then use --sar 16:9 in MeGUI's Custom Commandline Options (Zones tab).

foxyshadis
22nd April 2008, 20:30
Hopefully you can get help here in the Megui forum, sorry I can't look into it now.

anonova
23rd April 2008, 03:18
Well, I'll say I don't quite like how megui deals with aspect ratios. An incorrect 37:20 comes out way too often for 16:9 video in my opinion. But to get 16:9 DAR, you can change the acceptable aspect ratio % in the preferences to 5% (actually, I think 2% works too). When you're in the script creator, you can either

a) ignore what it says and manually change the values in the script to 1111:625 or 16:9.
b) leave the input DAR at ITU 16:9 and crop 8 from right and left and not cropping the top and bottom
c) set the input DAR to 1.778 (Select AR), then choose overcrop and set 6 to top, 10 to bottom, and 8 to left and right

b and c should yield 1111 : 625.