Log in

View Full Version : AutoGK picked wrong AR


Ogig
8th February 2004, 23:21
I got a wrong AR with AutoGK. The stream info file from DVD Decrypter shows strange values for resolution:

0x80 - Audio - AC3 / 2ch / 48kHz / DRC / Deutsch / LBA: 73 / PTS: 00:00:00.287 / Delay: 0ms
0x81 - Audio - AC3 / 2ch / 48kHz / DRC / English / LBA: 74 / PTS: 00:00:00.287 / Delay: 0ms
0x82 - Audio - AC3 / 2ch / 48kHz / DRC / English / LBA: 75 / PTS: 00:00:00.287 / Delay: 0ms
0xE0 - Video - MPEG-2 / 352x480 (NTSC) / 4:3 / LBA: 1 / PTS: 00:00:00.287 / Delay: 0ms

AutoGK produces a resolution of 448 x 416. See the logs:

[08.02.2004 14:21:00] Input dir: E:\HERCULES_IN_NY\VIDEO_TS
[08.02.2004 14:21:00] Output file: D:\herkules.avi
[08.02.2004 14:21:00] Audio: English
[08.02.2004 14:21:00] Subtitles: none
[08.02.2004 14:21:00] Codec: XviD
[08.02.2004 14:21:00] Target size: 700Mb
[08.02.2004 14:21:00] Started encoding.
[08.02.2004 14:21:00] Demuxing and indexing.
[08.02.2004 14:26:24] Analyzing source.
[08.02.2004 14:26:24] Writing the following script to D:\gk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("D:\\gk_tmp\\_.avs",0,0);
VirtualDub.RemoveInputStreams();
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(0);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetCompression();
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("D:\\gk_tmp\\_.avi");
===========================================================
[08.02.2004 14:35:14] Source has percentage of interlacing in motion areas: 0,01
[08.02.2004 14:35:14] Source has percentage of telecined patterns: 0,00
[08.02.2004 14:35:14] Source has percentage of progressive patterns: 100,00
[08.02.2004 14:35:14] Source has percentage of interlaced patterns: 0,00
[08.02.2004 14:35:14] Source is considered to be progressive.
[08.02.2004 14:35:14] Found 132475 frames
[08.02.2004 14:35:14] Encoding audio.
[08.02.2004 14:54:02] Audio size: 79,319,000 bytes (75.64 Mb)
[08.02.2004 14:54:02] Overhead: 5,298,944 bytes (5.05 Mb)
[08.02.2004 14:54:02] Video size: 649,385,256 bytes (619.30 Mb)
[08.02.2004 14:54:02] Running compressibility test.
[08.02.2004 14:54:02] Writing the following script to D:\gk_tmp\herkules_comptest.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\filters\mpeg2dec3dg.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\undot.dll")

function getOrder(clip c) {
order = GetParity(c) ? 1 : 0
return order }

movie = mpeg2source("D:\gk_tmp\herkules.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=35)
c_width = width(cropclip)
c_height = round(height(cropclip) / 0.911392405063291)
input_par = float(c_width)/float(c_height)
fixed_aspect = input_par > 1.4 ? 0.911392405063291 : 0.888888888888889
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
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
autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=35)
Undot()
LanczosResize(out_width,out_height)
SelectRangeEvery(300,15)
===========================================================
[08.02.2004 14:54:02] Writing the following script to D:\gk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("D:\\gk_tmp\\herkules_comptest.avs",0,0);
VirtualDub.video.SetMode(1);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetRange(0,0);
VirtualDub.video.SetCompression(0x64697678,0,10000,0);
VirtualDub.video.SetCompData(1208,"AQAAAKC7DQA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAXHZpZGVvZ2suc3RhdHMAAC4AcwB0AGEAdABzAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAABAnAAAQJwAAAAAAAAEAAAAAAAAAAAAAAAAAAADPAAAAAAAAAAAAAAA=");
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("D:\\gk_tmp\\herkules_comptest.avi");
===========================================================
[08.02.2004 15:10:12] Duration was: 16 minutes 9 seconds
[08.02.2004 15:10:12] Speed was: 6,83 fps.
[08.02.2004 15:10:13] Compressibility percentage is: 30,97
[08.02.2004 15:10:13] Using softer resizer.
[08.02.2004 15:10:13] Chosen resolution is: 448x416 ( AR: 1,08 )
[08.02.2004 15:10:13] Predicted comptest value is: 62,95
[08.02.2004 15:10:13] Running first pass.
[08.02.2004 15:10:13] Writing the following script to D:\gk_tmp\herkules_movie.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\filters\mpeg2dec3dg.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\undot.dll")

function getOrder(clip c) {
order = GetParity(c) ? 1 : 0
return order }

movie = mpeg2source("D:\gk_tmp\herkules.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=35)
c_width = width(cropclip)
c_height = round(height(cropclip) / 0.911392405063291)
input_par = float(c_width)/float(c_height)
fixed_aspect = input_par > 1.4 ? 0.911392405063291 : 0.888888888888889
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
out_width = 448
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=35)
Undot()
BicubicResize(out_width,out_height,0,0.5)
===========================================================
[08.02.2004 15:10:13] Writing the following script to D:\gk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("D:\\gk_tmp\\herkules_movie.avs",0,0);
VirtualDub.video.SetMode(1);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetRange(0,0);
VirtualDub.video.SetCompression(0x64697678,0,10000,0);
VirtualDub.video.SetCompData(1208,"AwAAAKC7DQA1rQkARDpcZ2tfdG1wXGhlcmt1bGVzX2NvZGVjLmxvZwAAbABlAHMAXwBjAG8AZABlAGMALgBsAG8AZwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABkAAAABQAAABAAAABkAAAAZAAAAAYAAAACAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAABAnAAAQJwAAAAAAAAEAAAAAAAAAAAAAAAAAAADPAAAAAAAAAAAAAAA=");
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("D:\\herkules.avi");
===========================================================
[08.02.2004 17:38:30] Duration was: 2 hours 28 minutes 16 seconds
[08.02.2004 17:38:30] Speed was: 14,89 fps.
[08.02.2004 17:38:30] Expected quality of first pass size: 63,82
[08.02.2004 17:38:30] Running second pass.
[08.02.2004 17:38:31] Writing the following script to D:\gk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("D:\\gk_tmp\\herkules_movie.avs",0,0);
VirtualDub.video.SetMode(1);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetRange(0,0);
VirtualDub.video.SetCompression(0x64697678,0,10000,0);
VirtualDub.video.SetCompData(1208,"BQAAAKC7DQA1rQkARDpcZ2tfdG1wXGhlcmt1bGVzX2NvZGVjLmxvZwAAbABlAHMAXwBjAG8AZABlAGMALgBsAG8AZwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABkAAAABQAAABAAAABkAAAAZAAAAAYAAAACAAAAAAAAAAEAAAAsAQAAAQAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAACWAAAAZAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAABAnAAAQJwAAAAAAAAEAAAAAAAAAAAAAAAAAAADPAAAAAAAAAAAAAAA=");
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.RemoveInputStreams();
VirtualDub.stream[0].SetSource("D:\\gk_tmp\\HERKULES AC3 T02 2_0ch 224Kbps DELAY 0ms.mp3",0x00000202,1);
VirtualDub.stream[0].SetMode(0);
VirtualDub.stream[0].SetInterleave(1,500,1,0,0);
VirtualDub.stream[0].SetClipMode(1,1);
VirtualDub.stream[0].SetConversion(0,0,0,0,0);
VirtualDub.stream[0].SetVolume();
VirtualDub.stream[0].SetCompression();
VirtualDub.SaveAVI("D:\\herkules.avi");
===========================================================
[08.02.2004 20:03:29] Duration was: 2 hours 24 minutes 57 seconds
[08.02.2004 20:03:29] Speed was: 15,23 fps.
[08.02.2004 20:03:29] Job finished.

So is it the fault of AutoGK or just badly mastered DVD ? :confused:

Wolfman
13th February 2004, 00:11
0xE0 - Video - MPEG-2 / 352x480 (NTSC) / 4:3 / LBA: 1
thats an unusual DVD mastered in half/D1 res. most dvd are 720x576

Ogig
13th February 2004, 08:49
Well, the info generated by DVD Decrypter must be wrong -- the movie is definitely 4:3. I doubt the values of the resolution as well, cause it shows normal size in a player. Guess it is a bug of DVD Decrypter and will report it over there...

jggimi
13th February 2004, 13:57
It's not necessarily a bug. DVDs are stored anamorphically, regardless of DAR 4:3 or DAR 16:9. And Full D1 is only one of many resolution options for the DVD standard. (I don't burn DVDs, so I'm not up to speed on the other possible resolutions, but your resolution as reported may be unusual but perfectly legit according to the standard.)

Ogig
13th February 2004, 14:51
Ok, I learned this now, also from the thread (http://forum.doom9.org/showthread.php?s=&threadid=70754) I created in the Decryptring forum. So indeed, AutoGK must take care and check which is width/height because at the moment I think it just takes it for granted that the first is width. :confused:

Wolfman
13th February 2004, 14:54
352x480 is a valid Dvd res .. just unusual to see..I've never seen one authored like that b4..the listing states its 4:3.. autogk is doing something I would consider wrong.. its upscaling the 352 to 448.. but thats probably coz its confused by having a non-std source.. you sure this is a completely legit Dvd? Not a home-brew?;)

Ogig
13th February 2004, 17:42
Originally posted by Wolfman
you sure this is a completely legit Dvd? Not a home-brew?;)

Yes, the movie is unintentionally hilarious :D but nevertheless a retail DVD, no bootleg.

len0x
17th February 2004, 19:31
Actually AutoGK doesn't look at resolution AR at all. It just deals with PAL/NTSC built-in AR for full screen DVDs plus anamorphic info. So that information from stream info is completely ignored...
I wanna see the screenshot from DVD2AVI to understand what's the source look like there.

Ogig
18th February 2004, 22:14
Here you go: picture (http://www.informatik.uni-rostock.de/~ig009/hercules-dvd2avi.jpg)

Wolfman
18th February 2004, 23:11
?? I see 704x576

len0x
19th February 2004, 11:37
me too, moreover it's PAL with FF turned on :)

Ogig
19th February 2004, 16:11
Yes, I see that. But what can be done to get AutoGK to produce the same AR :confused: The change from 1.22:1 to 1.07:1 (Xvid file) is too big for rounding error and the proportions don't look right, though I've seen worse.

len0x
19th February 2004, 16:39
change NTSC to PAL for a start in stream info file...

Ogig
19th February 2004, 19:01
That helped, now I get an output resolution of 480 x 368 which is 1.30. It is not 1.22, but closer. :p

len0x
19th February 2004, 19:12
it's as good as it can get. 1.22 will never be achieved unless there are some blacks bars left and right. Does it look distorted to you in 1.3 AR ?

P.S. and of course it's badly mastered if it says NTSC on DVD when in fact its PAL :)

Ogig
20th February 2004, 20:28
It is perfectly ok now. Thanks for your help and damn those badly mastered DVDs! :devil: