Log in

View Full Version : How is vertical height determined at static horizontal?


Hironimo
10th June 2005, 15:34
Hi.

I got a 16/9 anamorphic (i think, as theres no black borders on the original) ntsc source.
I wanted to encode to the highest resolution so I forced the horizontal size to 720.
The source contains a number of series, each ~20 mins in length. I've decrypted each in a seperate folder and let agk process them all.

The strange thing is that sometimes 416 and sometimes 400 is chosen as vertical resolution. Can you explain why and how/if i can fix that to be one of the two (probably the second)?

Thanx in Advance, Hironimo

Here's my logs:
----------- log 1 -------------------
[10.06.2005 14:38:16] AutoGK 2.09b
[10.06.2005 14:38:16] OS: WinXP (5.1.2600).2
[10.06.2005 14:38:16] Job started.
[10.06.2005 14:38:16] Input dir: K:\FATHER_OF_THE_PRIDE\VIDEO_TS4
[10.06.2005 14:38:16] Output file: K:\FATHER_OF_THE_PRIDE\Father of the Pride - 4.avi
[10.06.2005 14:38:16] Output codec: XviD
[10.06.2005 14:38:16] Audio1: English AC3 6ch
[10.06.2005 14:38:16] Subtitles: none
[10.06.2005 14:38:16] Format: .AVI
[10.06.2005 14:38:16] Target size: 280Mb
[10.06.2005 14:38:16] Custom resolution settings: fixed width of 720 pixels
[10.06.2005 14:38:16] Custom audio settings: AC3
[10.06.2005 14:38:16] Started encoding.
[10.06.2005 14:38:16] Demuxing and indexing.
[10.06.2005 14:38:41] Processing file: K:\FATHER_OF_THE_PRIDE\VIDEO_TS4\VTS_09_1.VOB
[10.06.2005 14:38:41] Source aspect ratio: 16:9
[10.06.2005 14:38:41] Source resolution: 720x480
[10.06.2005 14:38:41] Found NTSC source.
[10.06.2005 14:38:41] Source seems to be pure FILM.
[10.06.2005 14:38:41] Output will contain 29407 frames
[10.06.2005 14:38:42] Audio1 size: 68,656,896 bytes (65.48 Mb)
[10.06.2005 14:38:42] Overhead: 204,416 bytes (0.19 Mb)
[10.06.2005 14:38:42] Video size: 224,739,968 bytes (214.33 Mb)
[10.06.2005 14:38:42] Running compressibility test.
[10.06.2005 14:38:42] Writing the following script to K:\FATHER_OF_THE_PRIDE\agk_tmp\Father of the Pride - 4_comptest.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrainSSE2.dll")

movie = mpeg2source("K:\FATHER_OF_THE_PRIDE\agk_tmp\Father of the Pride - 4.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.18518518518519
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
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
autocrop(movie,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)
RemoveGrain(mode=2)
SelectRangeEvery(214,15)
===========================================================
[10.06.2005 14:40:29] Duration was: 1 minute, 47 seconds
[10.06.2005 14:40:29] Speed was: 19,10 fps.
[10.06.2005 14:40:29] Compressibility percentage is: 106,05
[10.06.2005 14:40:29] Using sharper matrix
[10.06.2005 14:40:29] Chosen resolution is: 720x416 ( AR: 1,73 )
[10.06.2005 14:40:29] Predicted comptest value is: 79,65
[10.06.2005 14:40:29] Running first pass.
[10.06.2005 14:40:29] Writing the following script to K:\FATHER_OF_THE_PRIDE\agk_tmp\Father of the Pride - 4_movie.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrainSSE2.dll")

movie = mpeg2source("K:\FATHER_OF_THE_PRIDE\agk_tmp\Father of the Pride - 4.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.18518518518519
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
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
autocrop(movie,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)
RemoveGrain(mode=2)
===========================================================
[10.06.2005 14:54:23] Duration was: 13 minutes 53 seconds
[10.06.2005 14:54:23] Speed was: 35,29 fps.
[10.06.2005 14:54:23] Expected quality of first pass size: 83,48
[10.06.2005 14:54:23] Running second pass.
[10.06.2005 15:16:02] Duration was: 21 minutes 39 seconds
[10.06.2005 15:16:02] Speed was: 22,64 fps.
[10.06.2005 15:16:02] Job finished. Total time: 37 minutes 46 seconds
----------- log 2 -------------------
[10.06.2005 15:16:03] AutoGK 2.09b
[10.06.2005 15:16:03] OS: WinXP (5.1.2600).2
[10.06.2005 15:16:03] Job started.
[10.06.2005 15:16:03] Input dir: K:\FATHER_OF_THE_PRIDE\VIDEO_TS5
[10.06.2005 15:16:03] Output file: K:\FATHER_OF_THE_PRIDE\Father of the Pride - 5.avi
[10.06.2005 15:16:03] Output codec: XviD
[10.06.2005 15:16:03] Audio1: English AC3 6ch
[10.06.2005 15:16:03] Subtitles: none
[10.06.2005 15:16:03] Format: .AVI
[10.06.2005 15:16:03] Target size: 280Mb
[10.06.2005 15:16:03] Custom resolution settings: fixed width of 720 pixels
[10.06.2005 15:16:03] Custom audio settings: AC3
[10.06.2005 15:16:03] Started encoding.
[10.06.2005 15:16:03] Demuxing and indexing.
[10.06.2005 15:16:34] Processing file: K:\FATHER_OF_THE_PRIDE\VIDEO_TS5\VTS_09_1.VOB
[10.06.2005 15:16:34] Source aspect ratio: 16:9
[10.06.2005 15:16:34] Source resolution: 720x480
[10.06.2005 15:16:34] Found NTSC source.
[10.06.2005 15:16:34] Analyzing source.
[10.06.2005 15:17:40] Source has percentage of interlacing in motion areas: 51,62
[10.06.2005 15:17:40] Source has percentage of telecined patterns: 99,35
[10.06.2005 15:17:40] Source has percentage of progressive patterns: 0,00
[10.06.2005 15:17:40] Source has percentage of interlaced patterns: 0,65
[10.06.2005 15:17:40] Source is considered to be FILM.
[10.06.2005 15:17:40] Output will contain 30820 frames
[10.06.2005 15:17:40] Audio1 size: 71,955,968 bytes (68.62 Mb)
[10.06.2005 15:17:40] Overhead: 214,272 bytes (0.20 Mb)
[10.06.2005 15:17:40] Video size: 221,431,040 bytes (211.17 Mb)
[10.06.2005 15:17:40] Running compressibility test.
[10.06.2005 15:17:40] Writing the following script to K:\FATHER_OF_THE_PRIDE\agk_tmp\Father of the Pride - 5_comptest.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\decomb.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrainSSE2.dll")

movie = mpeg2source("K:\FATHER_OF_THE_PRIDE\agk_tmp\Father of the Pride - 5.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.18518518518519
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
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
Telecide(movie,order=1,guide=1,post=2).Decimate(mode=0)
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)
RemoveGrain(mode=2)
SelectRangeEvery(214,15)
===========================================================
[10.06.2005 15:19:55] Duration was: 2 minutes 15 seconds
[10.06.2005 15:19:55] Speed was: 15,98 fps.
[10.06.2005 15:19:55] Compressibility percentage is: 94,49
[10.06.2005 15:19:55] Using sharper matrix
[10.06.2005 15:19:55] Chosen resolution is: 720x400 ( AR: 1,80 )
[10.06.2005 15:19:55] Predicted comptest value is: 70,96
[10.06.2005 15:19:55] Running first pass.
[10.06.2005 15:19:55] Writing the following script to K:\FATHER_OF_THE_PRIDE\agk_tmp\Father of the Pride - 5_movie.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\decomb.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrainSSE2.dll")

movie = mpeg2source("K:\FATHER_OF_THE_PRIDE\agk_tmp\Father of the Pride - 5.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.18518518518519
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
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
Telecide(movie,order=1,guide=1,post=2).Decimate(mode=0)
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)
RemoveGrain(mode=2)
===========================================================
[10.06.2005 15:38:04] Duration was: 18 minutes 9 seconds
[10.06.2005 15:38:04] Speed was: 28,30 fps.
[10.06.2005 15:38:04] Expected quality of first pass size: 70,46
[10.06.2005 15:38:04] Running second pass.
[10.06.2005 16:02:58] Duration was: 24 minutes 54 seconds
[10.06.2005 16:02:58] Speed was: 20,63 fps.
[10.06.2005 16:02:58] Job finished. Total time: 46 minutes 55 seconds

len0x
11th June 2005, 14:37
crosspost. answer will be here: http://forum.doom9.org/showthread.php?t=95664