PDA

View Full Version : MEGUI: Avisynth script editor issue


djesteban
28th July 2009, 05:22
Hi,

There's something I think I don't understand when using the Clever anamorphic encoding option.
I have a 1920x1080 AVC input (.dga) in the Avisynth script editor and I checked the Clever anamorphic encoding function using "Overcrop to achieve mod16" option; when I do this the Suggested Resolution (mod16) gets checked automatically. Then in the Crop & Resize section, I click the Auto Crop button which gives me values of 72, 60, 72, 60. Seems to be fine up to now IMHO, but when I look at the avs script:
# Set DAR in encoder to 37 : 20. The following line is for automatic signalling
global MeGUI_darx = 37
global MeGUI_dary = 20
AVCSource("K:video.dga")
#deinterlace
crop( 72, 64, -72, -64)

#resize
#denoise

...you can see that the horizontal crop is now 64...
now if I calculate 1080 - (64*2) /16 = 59.5... which is not mod16.... am I doing something wrong, or missing something?

Please let me know!

..Also, if there's a good tutorial for this, let me know, thanks in advance!!!!! :)

Kurtnoise
28th July 2009, 07:53
Actually, this is 1088 not 1080...:)

djesteban
29th July 2009, 05:37
Actually, this is 1088 not 1080...:)

...
but my .dga log file clearly states that the resolution is 1920x1080... why do you say it's 1088?
If you are guessing that by the ratio, it comes to what my problem is in a way... if I check the Clever anamorphic encoding before the auto crop, the avs script looks like this
# Set DAR in encoder to 16 : 9. The following line is for automatic signalling
global MeGUI_darx = 16
global MeGUI_dary = 9
AVCSource("K:\video.dga")
#deinterlace
#crop
#resize
#denoise
...but as soon as I click the auto crop, the avisynth reflects what is in my first post...
Anyone can help me understand, kind of lost with what's happening here :confused:

*EDIT*
Ohhh, also.... if I only click the auto crop and do not check the Clever anamorphic, then the avs script looks like this:
AVCSource("K:\video.dga")
#deinterlace
crop( 72, 60, -72, -60)

#resize
#denoise

Inspector.Gadget
29th July 2009, 22:41
1088 is the encoded size. 1080 is the display size.

djesteban
2nd August 2009, 23:33
1088 is the encoded size. 1080 is the display size.

Ok, but should I used Clever anamorphic or not? Should I only auto-crop?
Please help me, I think I need some clarification as to when I need to use Clever anamorphic

Thanks in advance

Inspector.Gadget
3rd August 2009, 01:55
Your source is 1:1. Don't bother with anamorphism - go ahead and resize to a resolution at 1:1, but in the resize section it's safe to check "Suggest resolution (mod16)" because you'll get a very accurate resize even after cropping.