ukb007
25th October 2004, 03:28
Hi, PROs.
Here's a sample from an .avs file generated by AGK.
----------------------------------------------------------------------
LoadPlugin("D:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("D:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("D:\PROGRA~1\AutoGK\filters\undot.dll")
movie = mpeg2source("F:\Wi\AGKWork\gk_tmp\Wi.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=34)
fixed_aspect = 1.18518518518519
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
input_par = input_par > 1.4 ? input_par : (4.0/3.0)
out_width = 608
out_height = round(float(out_width) / input_par)
hmod = out_height - (floor(out_height / 16 ) * 16)
out_height = (hmod > 4) ? (out_height + (16 - hmod)) : (out_height - hmod)
new_aspect = (float(out_width) / float(out_height)) / fixed_aspect
autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=34)
Undot()
LanczosResize(out_width,out_height)
----------------------------------------------------------------------
Please notice Line 8:
fixed_aspect = 1.18518518518519
Can you please tell me more about this? I mean, the numerals aren't the movie AR, that's for sure. What are they?
And in line 12:
input_par = input_par > 1.4 ? input_par : (4.0/3.0)
What do the numerals mean?
A recent tough DVD:
(Not the same one whose avs is copied above)
I recently came across a DVD which played vertically stretched (authored with the wrong AR of 4:3 instead of 16:9). The DGIndex window displayed the picture with much more vertical stretching like this:
IIIIIIIIIIIIIIIIII
IIIIIIIIIIIIIIIIII = the black bar above
IIIIIIIIIIIIIIIIII
OOOOOOOOO
OOOOOOOOO
OOOOOOOOO
OOOOOOOOO = THE PICTURE
OOOOOOOOO
OOOOOOOOO
OOOOOOOOO
IIIIIIIIIIIIIIIIII
IIIIIIIIIIIIIIIIII = the black bar below
IIIIIIIIIIIIIIIIII
It looked, literally, 3:4. The Info window showed it to be 4:3.
Editing the AR figure (from 4:3 to 16:9) in the d2v did not help, I still got a vertically stretched picture in the finished AGK file.
So I changed part of the Line 12 in the avs: (4.0/3.0) to (16.0/9.0) and fed the avs into VDubMod, opting for single pass, and ordering a custom bitrate that was from the AGK-encoded file.
The result was perfect.
I am looking for an explanation; will get it eventually, for sure, but could do with some help. Please.
Regards.
Here's a sample from an .avs file generated by AGK.
----------------------------------------------------------------------
LoadPlugin("D:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("D:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("D:\PROGRA~1\AutoGK\filters\undot.dll")
movie = mpeg2source("F:\Wi\AGKWork\gk_tmp\Wi.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=34)
fixed_aspect = 1.18518518518519
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
input_par = input_par > 1.4 ? input_par : (4.0/3.0)
out_width = 608
out_height = round(float(out_width) / input_par)
hmod = out_height - (floor(out_height / 16 ) * 16)
out_height = (hmod > 4) ? (out_height + (16 - hmod)) : (out_height - hmod)
new_aspect = (float(out_width) / float(out_height)) / fixed_aspect
autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=34)
Undot()
LanczosResize(out_width,out_height)
----------------------------------------------------------------------
Please notice Line 8:
fixed_aspect = 1.18518518518519
Can you please tell me more about this? I mean, the numerals aren't the movie AR, that's for sure. What are they?
And in line 12:
input_par = input_par > 1.4 ? input_par : (4.0/3.0)
What do the numerals mean?
A recent tough DVD:
(Not the same one whose avs is copied above)
I recently came across a DVD which played vertically stretched (authored with the wrong AR of 4:3 instead of 16:9). The DGIndex window displayed the picture with much more vertical stretching like this:
IIIIIIIIIIIIIIIIII
IIIIIIIIIIIIIIIIII = the black bar above
IIIIIIIIIIIIIIIIII
OOOOOOOOO
OOOOOOOOO
OOOOOOOOO
OOOOOOOOO = THE PICTURE
OOOOOOOOO
OOOOOOOOO
OOOOOOOOO
IIIIIIIIIIIIIIIIII
IIIIIIIIIIIIIIIIII = the black bar below
IIIIIIIIIIIIIIIIII
It looked, literally, 3:4. The Info window showed it to be 4:3.
Editing the AR figure (from 4:3 to 16:9) in the d2v did not help, I still got a vertically stretched picture in the finished AGK file.
So I changed part of the Line 12 in the avs: (4.0/3.0) to (16.0/9.0) and fed the avs into VDubMod, opting for single pass, and ordering a custom bitrate that was from the AGK-encoded file.
The result was perfect.
I am looking for an explanation; will get it eventually, for sure, but could do with some help. Please.
Regards.