Ancient10
12th June 2008, 15:06
Hi.
Iīm having a bit trouble with AGK. Iīm processing DVD video data with 720x576 source res and the video is in the range of 720x320 ( AR: 2.25 ). The problem is, that the resulting movie file always has a res of 720x304, although the log states, that it would be 720x320.
Compared to the original image it misses a bit at the top and bottom. Changing the cropping threshold doesnīt help. Running in default-mode for cropping doesnīt help. And even manually cropping the video with no auto-detection results in 720x304 and the log states it should be 720x320.
This is no single problem. In about half a dozen other cases, itīs the same.
For those, who are interested in the log entries...
[03/06/2008 11:17:05] AutoGK 2.40
[03/06/2008 11:17:05] Output codec: XviD
[03/06/2008 11:17:05] Format: AVI
[03/06/2008 11:17:05] Target size: 2040Mb
[03/06/2008 11:19:48] Source resolution: 720x576
[03/06/2008 11:19:48] Found PAL source.
[03/06/2008 11:19:48] Source aspect ratio: 16:9
===========================================================
movie = mpeg2source("K:\DVD\agk_tmp\moviename.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=2000,aspect=0,threshold=34,samplestartframe=10000,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1.42222222222222
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 < 1.25) ? input_par : (4.0/3.0)
out_width = 704
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=2000,aspect=new_aspect,threshold=34,samplestartframe=10000,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
ColorMatrix("Rec.709->Rec.601",opt=0,hints=false)
SelectRangeEvery(300,15)
===========================================================
[03/06/2008 12:03:59] Compressibility percentage is: 91.84
[03/06/2008 12:03:59] Chosen resolution is: 720x320 ( AR: 2.25 )
[03/06/2008 12:03:59] Predicted comptest value is: 85.31%
===========================================================
Iīm having a bit trouble with AGK. Iīm processing DVD video data with 720x576 source res and the video is in the range of 720x320 ( AR: 2.25 ). The problem is, that the resulting movie file always has a res of 720x304, although the log states, that it would be 720x320.
Compared to the original image it misses a bit at the top and bottom. Changing the cropping threshold doesnīt help. Running in default-mode for cropping doesnīt help. And even manually cropping the video with no auto-detection results in 720x304 and the log states it should be 720x320.
This is no single problem. In about half a dozen other cases, itīs the same.
For those, who are interested in the log entries...
[03/06/2008 11:17:05] AutoGK 2.40
[03/06/2008 11:17:05] Output codec: XviD
[03/06/2008 11:17:05] Format: AVI
[03/06/2008 11:17:05] Target size: 2040Mb
[03/06/2008 11:19:48] Source resolution: 720x576
[03/06/2008 11:19:48] Found PAL source.
[03/06/2008 11:19:48] Source aspect ratio: 16:9
===========================================================
movie = mpeg2source("K:\DVD\agk_tmp\moviename.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=2000,aspect=0,threshold=34,samplestartframe=10000,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1.42222222222222
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 < 1.25) ? input_par : (4.0/3.0)
out_width = 704
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=2000,aspect=new_aspect,threshold=34,samplestartframe=10000,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
ColorMatrix("Rec.709->Rec.601",opt=0,hints=false)
SelectRangeEvery(300,15)
===========================================================
[03/06/2008 12:03:59] Compressibility percentage is: 91.84
[03/06/2008 12:03:59] Chosen resolution is: 720x320 ( AR: 2.25 )
[03/06/2008 12:03:59] Predicted comptest value is: 85.31%
===========================================================