PDA

View Full Version : autogk 2.06 bad output AR


bassgoonist
20th April 2005, 20:47
since i upgraded to 2.06 all my movies are getting cropped to 4:3 if they're 16:9. Why is this? I look at the input vobs in powerdvd, they're 16:9. But the restulting avi is a CROPPED 4:3. Why is it doing that?
edit: btw autogk says its 16:9 when I'm setting up the job...

unskinnyboy
20th April 2005, 21:24
:logfile:

bassgoonist
21st April 2005, 04:01
log
[4/20/2005 2:36:18 PM] AutoGK 2.06b
[4/20/2005 2:36:18 PM] OS: WinXP (5.1.2600).2
[4/20/2005 2:36:18 PM] Job started.
[4/20/2005 2:36:18 PM] Input dir: D:\ANCHORMAN\VIDEO_TS
[4/20/2005 2:36:18 PM] Output file: C:\Xvid movies and tv shows\Anchorman\Anchorman.avi
[4/20/2005 2:36:18 PM] Output codec: XviD
[4/20/2005 2:36:18 PM] Audio1: English AC3 6ch
[4/20/2005 2:36:18 PM] Subtitles1: English / Normal Closed Captions : Wide/Letterbox
[4/20/2005 2:36:18 PM] Display only forced subtitles.
[4/20/2005 2:36:18 PM] Format: .AVI
[4/20/2005 2:36:18 PM] Target size: 2040Mb
[4/20/2005 2:36:18 PM] Custom audio settings: AC3
[4/20/2005 2:36:18 PM] Started encoding.
[4/20/2005 2:36:18 PM] Demuxing and indexing.
[4/20/2005 2:43:26 PM] Processing file: D:\ANCHORMAN\VIDEO_TS\VTS_08_PGC_01_1.VOB
[4/20/2005 2:43:26 PM] Processing file: D:\ANCHORMAN\VIDEO_TS\VTS_08_PGC_01_2.VOB
[4/20/2005 2:43:26 PM] Processing file: D:\ANCHORMAN\VIDEO_TS\VTS_08_PGC_01_3.VOB
[4/20/2005 2:43:26 PM] Processing file: D:\ANCHORMAN\VIDEO_TS\VTS_08_PGC_01_4.VOB
[4/20/2005 2:43:26 PM] Processing file: D:\ANCHORMAN\VIDEO_TS\VTS_08_PGC_01_5.VOB
[4/20/2005 2:43:26 PM] Source aspect ratio: 16:9
[4/20/2005 2:43:26 PM] Source resolution: 720x480
[4/20/2005 2:43:26 PM] Found NTSC source.
[4/20/2005 2:43:26 PM] Source seems to be pure FILM.
[4/20/2005 2:43:26 PM] Color correction enabled.
[4/20/2005 2:43:26 PM] Output will contain 140148 frames
[4/20/2005 2:43:26 PM] Preparing subtitles.
[4/20/2005 2:53:00 PM] Using bitrate spikes control.
[4/20/2005 2:53:00 PM] Audio1 size: 327,310,592 bytes (312.15 Mb)
[4/20/2005 2:53:00 PM] Overhead: 1,664,256 bytes (1.59 Mb)
[4/20/2005 2:53:00 PM] Video size: 1,810,120,192 bytes (1726.27 Mb)
[4/20/2005 2:53:00 PM] Running compressibility test.
[4/20/2005 2:53:00 PM] Writing the following script to C:\Xvid movies and tv shows\Anchorman\agk_tmp\Anchorman_comptest.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\vsfilter.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\ColorMatrix.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrainSSE2.dll")

movie = mpeg2source("C:\Xvid movies and tv shows\Anchorman\agk_tmp\Anchorman.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)
input_par = (input_par < 1.4) ? 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=10,aspect=new_aspect,threshold=34,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
RemoveGrain(mode=2)
ColorMatrix("Rec.709->Rec.601",mmx=false,hints=false)
VobSub("C:\Xvid movies and tv shows\Anchorman\agk_tmp\Anchorman.idx")
SelectRangeEvery(300,15)
===========================================================
[4/20/2005 3:08:17 PM] Duration was: 15 minutes 16 seconds
[4/20/2005 3:08:17 PM] Speed was: 7.65 fps.
[4/20/2005 3:08:17 PM] Compressibility percentage is: 85.98
[4/20/2005 3:08:17 PM] Chosen resolution is: 720x544 ( AR: 1.32 )
[4/20/2005 3:08:17 PM] Predicted comptest value is: 81.60
[4/20/2005 3:08:17 PM] Running first pass.
[4/20/2005 3:08:17 PM] Writing the following script to C:\Xvid movies and tv shows\Anchorman\agk_tmp\Anchorman_movie.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\vsfilter.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\ColorMatrix.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrainSSE2.dll")

movie = mpeg2source("C:\Xvid movies and tv shows\Anchorman\agk_tmp\Anchorman.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)
input_par = (input_par < 1.4) ? 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
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)
ColorMatrix("Rec.709->Rec.601",mmx=false,hints=false)
VobSub("C:\Xvid movies and tv shows\Anchorman\agk_tmp\Anchorman.idx")
===========================================================
[4/20/2005 4:46:43 PM] Duration was: 1 hour, 38 minutes 25 seconds
[4/20/2005 4:46:43 PM] Speed was: 23.73 fps.
[4/20/2005 4:46:43 PM] Expected quality of first pass size: 88.50
[4/20/2005 4:46:43 PM] Running second pass.
[4/20/2005 7:36:12 PM] Duration was: 2 hours 49 minutes 28 seconds
[4/20/2005 7:36:12 PM] Speed was: 13.78 fps.
[4/20/2005 7:36:12 PM] Job finished. Total time: 4 hours 59 minutes 53 seconds

unskinnyboy
21st April 2005, 05:15
Weird indeed. Initially I was thinking maybe you had accidently set the override for the input AR to 4:3 in the hidden options, but you haven't.

Everything looks normal in the log. But, the following line in the .avs looks suspicious:

input_par = (input_par < 1.4) ? input_par : (4.0/3.0)

I haven't upgraded to 2.06b nor is in a position to, right now. Tomorrow I will upgrade and test. But maybe len0x would have an answer by then anyhow.

bassgoonist
21st April 2005, 06:47
I do have the option on to detect if the AR is close to 4:3 and force 4:3...cause sometimes backing up tv eps I'd get 1.27 and weird stuff...but that should effect this...but is it?

unskinnyboy
21st April 2005, 07:06
Ah ok..So that's why the code in .avs. Coz I wondered why 4:3 even came into the picture. Can you turn that off and try? I don't see how that option could affect this encode, but still...

bassgoonist
21st April 2005, 18:18
diabling that seems to have worked, is it the new version that screwed up? or the dvd was fluxored?

unskinnyboy
21st April 2005, 19:05
You did say that this was happening to -every- 16:9 movie of yours, right? So probably the 2.06b build has a bug when that particular hidden option is used, otherwise I don't see why the tool should detect the source AR of 16:9 as 4:3 and force it to that.

But again, lets wait for what len0x has to say. Maybe there is something here we are overlooking.

len0x
21st April 2005, 22:37
hidden option only enables that AVS line. and that line was always there in version 1.95 without any problems. I didn't touch resizing algorithm after 1.95.

unskinnyboy
21st April 2005, 23:52
Then how did a 16:9 DVD end up as 4:3 avi? :confused:

len0x
22nd April 2005, 21:37
Having a closer look at avs line in question - its clearly wrong :)
less sign should be replaced by more... (I was messing around with that line and its not even what is supposed to be there)

unskinnyboy
22nd April 2005, 21:40
bassgoonist's place in the next AutoGK beta testing team is ensured. :D

cyberVera
9th May 2005, 03:31
I also have a similar problem.
More and more often while loading a movie with 16:9 ratio, AutoGK considers it as 4:3.
DVD Decrypter file clearly says it is 16:9. AutoGK video info panel states the same, but analysing the source it decides all of a sudden "4:3" and ... the output is stretched. I would understand such free behavior in File mode, but in DVD mode, with Stream Information file ... ??? Now I force AR before encoding for every job according to Video info tab, to be on the safe side :-)