View Full Version : AutoGK selected 720 for width?
PlazzTT
27th December 2006, 00:37
Hi,
I'm doing an encode of a DVD which is 1hr 46 long.
The source resolution is 720x576 (of course).
When I leave video and audio settings to auto, it picks 720x320 as the final resolution to encode to.
It seems to pick this without taking into account the possibility that Autocrop in the AVS will trim a few pixels from the left and/or right.
So the final AVS will be cropping down and then resizing back up to 720. (I think?)
BigDid
27th December 2006, 01:46
... When I leave video and audio settings to auto, it picks 720x320 as the final resolution to encode to.
Hi,
Nothing weird, enough file size to get a 720 width
It seems to pick this without taking into account the possibility that Autocrop in the AVS will trim a few pixels from the left and/or right.
Uhhhh it is not supposed to work that way; in AGK it will crop in mod 16 unless manually overidden
More here:
http://forum.doom9.org/showthread.php?s=&threadid=37204
http://forum.doom9.org/showthread.php?s=&threadid=87602
So the final AVS will be cropping down and then resizing back up to 720. (I think?)
If by final avs you mean the movie.avs instead of the comptest.avs, the answer, in your case, seems to be no:
1/ comptest to 720*320
2/ movie also to 720*320
To be sure, post your logfile.
Did
manono
27th December 2006, 07:27
Hi-
I believe it'll crop for Mod2, but resize to Mod16. If there's black to the right and left, it's very possible for some pixels to be cropped from the right and left, and for the width to be increased back to 720. It depends on the other settings, and as BigDid says, if your intended filesize is large enough that the results of the compress test allow for a width of 720.
Yeah, a logfile might help.
BigDid
27th December 2006, 19:03
Hi-
I believe it'll crop for Mod2, but resize to Mod16.
Hi Manono,
I have read that in the Lenox version but it seems (at least in this encode) that it is cropping mod4
If there's black to the right and left, it's very possible for some pixels to be cropped from the right and left, and for the width to be increased back to 720.
I would agree for resizing to 704 width or below but not for 720, at least for this encode
It depends on the other settings, and as BigDid says, if your intended filesize is large enough that the results of the compress test allow for a width of 720...
Yep, here is the movie.avs part for my last (and rare) 720 width encode/lilo and Stitch:
movie = mpeg2source("M:\DVD attente\STITCH_THE_MOVIE\agk_tmp\STITCH_THE_MOVIE.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=34,samplestartframe=0,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 = 720
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
LeakKernelDeInt(movie,order=1,sharp=true)
autocrop(mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=34,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
Ia O Ra Na I Te Matahiti Api (HNY)
Did
manono
28th December 2006, 01:51
Hey BigDid-
What are you doing with an interlaced Lilo And Stitch? Did PAL mess it up that much? I'm not really sure what it's doing. The Autocrop is mentioned twice, once before the deinterlace, and then maybe the actual cropping is taking place after the deinterlace, by which time it's OK to crop Mod2. But it looks to me (not really understanding the script) that it's noting the source is interlaced, and deciding to crop by Mod4 because of that, and then doing the actual cropping after the deinterlace, when Mod4 cropping is no longer necessary. I could easily be wrong though.
LeakKernelDeInt(movie,order=1,sharp=true)
BigDid
28th December 2006, 04:26
Good point,
It's not even the real Lilo&Stitch, it's a sequel :(
Yes the source is interlaced, here is part of the log:
[18/12/2006 18:53:37] AutoGK 2.37b
[18/12/2006 18:53:37] OS: WinXP (5.1.2600).2
[18/12/2006 18:53:37] Job started.
[18/12/2006 18:53:37] Input file: M:\DVD attente\STITCH_THE_MOVIE\VTS_01_0.IFO
[18/12/2006 18:53:37] Output file: M:\DVD attente\STITCH_THE_MOVIE\STITCH_THE_MOVIE.avi
[18/12/2006 18:53:37] Output codec: XviD
[18/12/2006 18:53:37] Audio 1: Francais AC3 6ch
[18/12/2006 18:53:37] Subtitles: none
[18/12/2006 18:53:37] Format: AVI
[18/12/2006 18:53:37] Target size: 700Mb
[18/12/2006 18:53:37] Audio 1 settings: Original
[18/12/2006 18:53:37] Standalone support enabled: ESS
[18/12/2006 18:53:37] Started encoding.
[18/12/2006 18:53:37] Demuxing and indexing.
[18/12/2006 18:55:37] Processing file: M:\DVD attente\STITCH_THE_MOVIE\VTS_01_1.VOB
[18/12/2006 18:55:37] Processing file: M:\DVD attente\STITCH_THE_MOVIE\VTS_01_2.VOB
[18/12/2006 18:55:37] Processing file: M:\DVD attente\STITCH_THE_MOVIE\VTS_01_3.VOB
[18/12/2006 18:55:37] Source resolution: 720x576
[18/12/2006 18:55:37] Found PAL source.
[18/12/2006 18:55:37] Source aspect ratio: 16:9
[18/12/2006 18:55:37] Color correction enabled.
[18/12/2006 18:55:37] Analyzing source.
[18/12/2006 18:58:20] Source has percentage of interlacing in motion areas: 4,20
[18/12/2006 18:58:20] Source is considered to be interlaced.
[18/12/2006 18:58:20] Output will contain 86878 frames
[18/12/2006 18:58:20] Using cartoon mode.
[18/12/2006 18:58:20] Picking up credits information.
[18/12/2006 18:58:20] Credits start frame: 83000
[18/12/2006 18:58:20] Credits quality percentage: 35
[18/12/2006 18:58:20] Audio1 size: 166,803,456 bytes (159.08 Mb)
[18/12/2006 18:58:20] Overhead: 1,031,680 bytes (0.98 Mb)
[18/12/2006 18:58:20] Video size: 566,168,064 bytes (539.94 Mb)
[18/12/2006 18:58:20] Running compressibility test.
The continuation of the log is the same as the avs for the crop and resize part.
Did
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.