Log in

View Full Version : output movie resolution mismatch


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%
===========================================================

CWR03
13th June 2008, 10:01
Regardless of what the log says, it's doing exactly what it's supposed to, which is outputting as close to the proper AR that it can. 720 x 304 = 2.368:1, 720 x 320 = 2.25:1. 2.35:1 is a very common AR for films, and 2.368 is very close to that.

Ancient10
15th June 2008, 17:38
Hi.
The hidden and checked option ".detect43" only refers to 4:3 AR for forcing an 4:3 AR, doesnīt it? Could you tell me why and where this "force (other than 4:3) AR" options comes from, when in hidden options thereīs just ".detect43" ? Is there a solution for getting, in my example, 720x320, other than a fully manual crop? Thx.

CWR03
16th June 2008, 09:51
Not with AutoGK, and again, 720 x 320 may not even be ther "correct" resolution. Check what IMDB reports for the film.

I'm not sure why you're even bringing 4:3 up at this point, since it would be much farther away from your desired AR.

Ancient10
16th June 2008, 11:58
Check what IMDB reports for the film.

I'm not sure why you're even bringing 4:3 up at this point, since it would be much farther away from your desired AR.

After checking with IMDb, the correct AR is 2.35 : 1, so 720x304 _is_ close to that and AGK does this part correctly (although cropping the imagery a bit).


I just mentioned 4:3, because I found an hidden option for this topic. Didnīt want to encode it as 4:3.

CWR03
16th June 2008, 21:34
Your options are pretty limited with AutoGK. It will autocrop in 16-pixel increments, which is why it loses some video.