PDA

View Full Version : AGK ignores aspect ratio


exekutor
26th August 2009, 23:45
Hi there

i have a little problem with a series DVD. One (and only one) episode of that series is always encodet in 4:3 and thou some details on the left side (not on both sides) are missing.
However, the whole serie ist ar 16:9 and all other episodes are encodet in that ar.
The DVD is at 16:9 ar. I ripped the episodes via DVDDecrypter. The ripped files are also 16:9.
I encode with fixed witdh, but the hight of that specific episode is too high for the right ar.

Log:

[10.08.2009 05:33:13] AutoGK 2.55
[10.08.2009 05:33:13] OS: Windows Vista (6.0.6001).2
[10.08.2009 05:33:13] Job started.
[10.08.2009 05:33:13] Input file: Z:\Series\Season\Disk\2\VTS_01_0.IFO
[10.08.2009 05:33:13] Output file: Z:\Series\Season\Disk\2.avi
[10.08.2009 05:33:13] Output codec: XviD
[10.08.2009 05:33:13] Audio 1: Deutsch AC3 2ch
[10.08.2009 05:33:13] Audio 2: English AC3 2ch
[10.08.2009 05:33:13] Subtitles: none
[10.08.2009 05:33:13] Format: AVI
[10.08.2009 05:33:13] Target size: 400Mb
[10.08.2009 05:33:13] Custom resolution settings: fixed width of 640 pixels
[10.08.2009 05:33:13] Audio 1 settings: VBR MP3 with average bitrate: 128Kbps
[10.08.2009 05:33:13] Audio 2 settings: VBR MP3 with average bitrate: 128Kbps
[10.08.2009 05:33:13] Started encoding.
[10.08.2009 05:33:13] Demuxing and indexing.
[10.08.2009 05:33:46] Processing file: Z:\Series\Season\Disk\2\VTS_01_1.VOB
[10.08.2009 05:33:46] Processing file: Z:\Series\Season\Disk\2\VTS_01_2.VOB
[10.08.2009 05:33:46] Source resolution: 720x576
[10.08.2009 05:33:46] Found PAL source.
[10.08.2009 05:33:46] Source aspect ratio: 16:9
[10.08.2009 05:33:46] Analyzing source.
[10.08.2009 05:35:24] Source has percentage of interlacing in motion areas: 58,97
[10.08.2009 05:35:24] Source is considered to be interlaced.
[10.08.2009 05:35:24] Output will contain 64000 frames
[10.08.2009 05:35:24] Decoding audio.
[10.08.2009 05:36:03] Normalizing audio.
[10.08.2009 05:36:07] Encoding audio.
[10.08.2009 05:40:30] Decoding audio.
[10.08.2009 05:41:14] Normalizing audio.
[10.08.2009 05:41:40] Encoding audio.
[10.08.2009 05:46:15] Using VAQ in XviD
[10.08.2009 05:46:15] Audio1 size: 36,573,840 bytes (34.88 Mb)
[10.08.2009 05:46:16] Audio2 size: 36,632,136 bytes (34.94 Mb)
[10.08.2009 05:46:16] Overhead: 5,120,000 bytes (4.88 Mb)
[10.08.2009 05:46:16] Video size: 341,104,424 bytes (325.30 Mb)
[10.08.2009 05:46:16] Running compressibility test.
[10.08.2009 05:46:16] Writing the following script to Z:\Series\Season\Disk\agk_tmp\2_comptest.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrainSSE3.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\leakkerneldeint.dll")

movie = mpeg2source("Z:\Series\Season\Disk\agk_tmp\2.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 = 640
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)
RemoveGrain(mode=2)
SelectRangeEvery(300,15)
===========================================================
[10.08.2009 05:48:06] Duration was: 1 minute, 49 seconds
[10.08.2009 05:48:06] Speed was: 29,16 fps.
[10.08.2009 05:48:06] Compressibility percentage is: 133,32
[10.08.2009 05:48:06] Using sharper matrix
[10.08.2009 05:48:06] Switching b-frames off
[10.08.2009 05:48:06] Chosen resolution is: 640x432 ( AR: 1,48 )
[10.08.2009 05:48:06] Predicted comptest value is: 74,89%
[10.08.2009 05:48:06] Running first pass.
[10.08.2009 05:48:06] Writing the following script to Z:\Series\Season\Disk\agk_tmp\2_movie.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrainSSE3.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\leakkerneldeint.dll")

movie = mpeg2source("Z:\Series\Season\Disk\agk_tmp\2.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 = 640
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)
RemoveGrain(mode=2)
===========================================================
[10.08.2009 06:08:58] Duration was: 20 minutes 52 seconds
[10.08.2009 06:08:58] Speed was: 51,10 fps.
[10.08.2009 06:08:58] Expected quality of first pass size: 80,04%
[10.08.2009 06:08:58] Running second pass.
[10.08.2009 06:33:56] Duration was: 24 minutes 56 seconds
[10.08.2009 06:33:56] Speed was: 42,78 fps.
[10.08.2009 06:33:56] Job finished. Total time: 1 hour, 0 minutes 43 seconds


Has anyone of you an idea, how to get that episode in the correct ar of 16:9 ?

BigDid
27th August 2009, 00:32
Hi there and welcome to the forum,

Use AutoGK hidden option (Ctrl+F9) Check "Override input AR" and set the .aspect to 16:9 or original.

Explained in the tutorial/Hidden option/aspect ratio.

Did

exekutor
27th August 2009, 00:46
Thanks 4 the reply. I forgot i did that already, without any effekt :/

manono
27th August 2009, 01:51
That's because AutoGK already sees it as 16:9.
[10.08.2009 05:33:46] Source aspect ratio: 16:9
However, it's not being encoded as 4:3, but 3:2 (1:48:1). Perhaps it's going wrong when scanning for the crop values. Are there places in that particular episode where there's a lot of black on the left (and maybe the right) side? That might explain the parts missing from the left side. You can force a crop of whatever you like in the Hidden Options. If you want nothing cropped, set the Threshold to zero. Read the enclosed tutorial for more options.

And you don't have the "Override Input AR" box checked in the Hidden Options, do you? Since it already sees it as 16:9, checking that box might lead to the results you're getting.

ukb008
10th September 2009, 04:12
We do not know whether the thread originator got his problem solved or not. If Mr manono's reply was of help, then perhaps some thanks are due, but mostly, I suppose, a general benefit will accrue if we knew how the problem was solved in this particular case.

Regards.

BigDid
10th September 2009, 04:40
Yep,

There are stickies related right here at doom9:
http://forum.doom9.org/forumdisplay.php?f=8
http://forum.doom9.org/showthread.php?t=14432

A summary (among many):
http://www.atmaxplorer.com/2008/02/online-etiquette-101-forums/

Did