BxWrapper
23rd May 2004, 05:13
Well, with the same setting, the old trusted GK gave me target bitrate for video 1434 kbps which output final size (including audio) of 1,400.39 MB for 2 CD setting. Offset by only 0.02% :).
BxWrapper
24th May 2004, 09:57
The oversize still happened for AutoGK ver. 1.25. I still got 3 CDs for 2 CDs setting:
CD1: 697 MB
CD2: 698 MB
CD3: 256 MB
I got this kind problem for all AutoGK version, I just raised it now. It seem related to how AutoGK decided to set the target video rate which was 1696 kbps for 187751 frames. Seems too high.
I confirmed this problem never happened for DVD ripped. Regards.
The log file:
[5/24/2004 2:36:07 AM] AutoGK 1.25
[5/24/2004 2:36:07 AM] OS: WinXP (5.1.2600).2
[5/24/2004 2:36:07 AM] Job started.
[5/24/2004 2:36:07 AM] Input dir: C:\Temp\2
[5/24/2004 2:36:07 AM] Output file: E:\Temp\2\movie.avi
[5/24/2004 2:36:07 AM] Audio: English
[5/24/2004 2:36:07 AM] Subtitles: none
[5/24/2004 2:36:07 AM] Codec: DivX
[5/24/2004 2:36:07 AM] Target size: 1400Mb
[5/24/2004 2:36:07 AM] Custom resolution settings: minimum width of 576 pixels
[5/24/2004 2:36:07 AM] Custom audio settings: VBR MP3 with average bitrate: 128Kbps
[5/24/2004 2:36:07 AM] Started encoding.
[5/24/2004 2:36:07 AM] Demuxing and indexing.
[5/24/2004 2:38:16 AM] Analyzing source.
[5/24/2004 2:38:16 AM] Writing the following script to E:\Temp\2\gk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("E:\\Temp\\2\\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("E:\\Temp\\2\\gk_tmp\\_.avi");
===========================================================
[5/24/2004 2:46:26 AM] Source has percentage of interlacing in motion areas: 89.51
[5/24/2004 2:46:26 AM] Source has percentage of telecined patterns: 0.44
[5/24/2004 2:46:26 AM] Source has percentage of progressive patterns: 2.28
[5/24/2004 2:46:26 AM] Source has percentage of interlaced patterns: 97.28
[5/24/2004 2:46:26 AM] Source is considered to be interlaced.
[5/24/2004 2:46:27 AM] Found 187751 frames
[5/24/2004 2:46:27 AM] Encoding audio.
[5/24/2004 3:08:13 AM] Audio size: 128,026,280 bytes (122.10 Mb)
[5/24/2004 3:08:13 AM] Overhead: 12,112,896 bytes (11.55 Mb)
[5/24/2004 3:08:13 AM] Video size: 1,327,867,224 bytes (1266.35 Mb)
[5/24/2004 3:08:13 AM] Target bitrate is: 1696kbps
[5/24/2004 3:08:13 AM] Running compressibility test.
[5/24/2004 3:08:13 AM] Writing the following script to E:\Temp\2\gk_tmp\movie_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")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\kerneldeint.dll")
function getOrder(clip c) {
order = GetParity(c) ? 1 : 0
return order }
movie = mpeg2source("E:\Temp\2\gk_tmp\movie.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) / 1.21518987341772)
input_par = float(c_width)/float(c_height)
fixed_aspect = 1.21518987341772
flag_halfdvd = input_par > 1.0 ? 0 : 1
input_par = input_par > 1.0 ? input_par : input_par * 2
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
new_aspect = flag_halfdvd > 0 ? new_aspect/2.0 : new_aspect
KernelDeInt(movie,order=getOrder(movie),sharp=true)
autocrop(mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=35)
Undot()
LanczosResize(out_width,out_height)
SelectRangeEvery(280,14)
===========================================================
[5/24/2004 3:08:14 AM] Writing the following script to E:\Temp\2\gk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("E:\\Temp\\2\\gk_tmp\\movie_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(0x78766964,0,10000,0);
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("E:\\Temp\\2\\gk_tmp\\movie_comptest.avi");
===========================================================
[5/24/2004 3:24:57 AM] Duration was: 16 minutes 42 seconds
[5/24/2004 3:24:57 AM] Speed was: 9.37 fps.
[5/24/2004 3:24:57 AM] Compressibility percentage is: 45.06
[5/24/2004 3:24:57 AM] Chosen resolution is: 608x400 ( AR: 1.52 )
[5/24/2004 3:24:57 AM] Predicted comptest value is: 60.52
[5/24/2004 3:24:57 AM] Running first pass.
[5/24/2004 3:24:57 AM] Writing the following script to E:\Temp\2\gk_tmp\movie_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")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\kerneldeint.dll")
function getOrder(clip c) {
order = GetParity(c) ? 1 : 0
return order }
movie = mpeg2source("E:\Temp\2\gk_tmp\movie.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) / 1.21518987341772)
input_par = float(c_width)/float(c_height)
fixed_aspect = 1.21518987341772
flag_halfdvd = input_par > 1.0 ? 0 : 1
input_par = input_par > 1.0 ? input_par : input_par * 2
input_par = input_par > 1.4 ? input_par : (4.0/3.0)
out_width = 608
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
new_aspect = flag_halfdvd > 0 ? new_aspect/2.0 : new_aspect
KernelDeInt(movie,order=getOrder(movie),sharp=true)
autocrop(mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=35)
Undot()
LanczosResize(out_width,out_height)
===========================================================
[5/24/2004 3:24:58 AM] Writing the following script to E:\Temp\2\gk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("E:\\Temp\\2\\gk_tmp\\movie_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(0x78766964,0,10000,0);
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("E:\\Temp\\2\\movie.avi");
===========================================================
[5/24/2004 7:21:35 AM] Duration was: 3 hours 56 minutes 37 seconds
[5/24/2004 7:21:35 AM] Speed was: 13.22 fps.
[5/24/2004 7:21:35 AM] Running second pass.
[5/24/2004 7:21:36 AM] Writing the following script to E:\Temp\2\gk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("E:\\Temp\\2\\gk_tmp\\movie_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(0x78766964,0,10000,0);
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.RemoveInputStreams();
VirtualDub.stream[0].SetSource("E:\\Temp\\2\\gk_tmp\\movie MPA T01 DELAY -654ms.mp3",0x00000202,1);
VirtualDub.stream[0].SetMode(0);
VirtualDub.stream[0].SetInterleave(1,500,1,0,-654);
VirtualDub.stream[0].SetClipMode(1,1);
VirtualDub.stream[0].SetConversion(0,0,0,0,0);
VirtualDub.stream[0].SetVolume();
VirtualDub.stream[0].SetCompression();
VirtualDub.video.AddComment(0x00000000,"IAS1","English");
VirtualDub.SaveAVI("E:\\Temp\\2\\movie.avi");
===========================================================
[5/24/2004 10:44:10 AM] Duration was: 3 hours 22 minutes 33 seconds
[5/24/2004 10:44:10 AM] Speed was: 15.45 fps.
[5/24/2004 10:44:11 AM] Writing the following script to E:\Temp\2\gk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("E:\\Temp\\2\\movie.avi",0,0);
VirtualDub.RemoveInputStreams();
VirtualDub.stream[0].SetSource(0x73647561,0,1);
VirtualDub.stream[0].SetMode(0);
VirtualDub.stream[0].SetInterleave(1,500,1,0,0);
VirtualDub.video.AddComment(0x00000000,"IAS1","English");
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.Clear();
VirtualDub.subset.AddRange(0,83698);
VirtualDub.SaveAVI("E:\\Temp\\2\\movie.cd1.avi");
===========================================================
[5/24/2004 10:44:11 AM] Splitting video into: E:\Temp\2\movie.cd1.avi
[5/24/2004 10:45:56 AM] Writing the following script to E:\Temp\2\gk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("E:\\Temp\\2\\movie.avi",0,0);
VirtualDub.RemoveInputStreams();
VirtualDub.stream[0].SetSource(0x73647561,0,1);
VirtualDub.stream[0].SetMode(0);
VirtualDub.stream[0].SetInterleave(1,500,1,0,0);
VirtualDub.video.AddComment(0x00000000,"IAS1","English");
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.Clear();
VirtualDub.subset.AddRange(83698,76706);
VirtualDub.SaveAVI("E:\\Temp\\2\\movie.cd2.avi");
===========================================================
[5/24/2004 10:45:56 AM] Splitting video into: E:\Temp\2\movie.cd2.avi
[5/24/2004 10:47:36 AM] Writing the following script to E:\Temp\2\gk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("E:\\Temp\\2\\movie.avi",0,0);
VirtualDub.RemoveInputStreams();
VirtualDub.stream[0].SetSource(0x73647561,0,1);
VirtualDub.stream[0].SetMode(0);
VirtualDub.stream[0].SetInterleave(1,500,1,0,0);
VirtualDub.video.AddComment(0x00000000,"IAS1","English");
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.Clear();
VirtualDub.subset.AddRange(160404,27346);
VirtualDub.SaveAVI("E:\\Temp\\2\\movie.cd3.avi");
===========================================================
[5/24/2004 10:47:36 AM] Splitting video into: E:\Temp\2\movie.cd3.avi
[5/24/2004 10:48:14 AM] Job finished.
BxWrapper
24th May 2004, 15:24
GKnot detected 187735 frames (as opposed to 187751 detected by AutoGK) and 25 FPS. And I confirmed the source was PAL (with very high interlace content, but that's another story). I am using GK ver. 0.28.7.2.
When I included audio 128 kbps, GK gave me predicted target bitrate of 1423 kbps. Actual was 1434 kbps since audio is mp3 vbr.
Regards.
len0x
24th May 2004, 15:30
If the source is PAL then how come you made this:
0xC0 - Audio - MP2 / 2ch / 48kHz / DRC / English / Delay: 0ms
0xE0 - Video - MPEG-2 / 720x480 (NTSC) / 16:9
Last line should be:
0xE0 - Video - MPEG-2 / 720x576 (PAL) / 16:9
Also watch out for 16:9 ratio - it means that source is anamorphic!
BxWrapper
24th May 2004, 15:59
I guess that was my mistake. I should apologise for that. So, this explains all the previous problems since I was using the same template !
I will never know if AutoGK parses all this information to make a decission. I thought stream ID is solely the primary important since DVD2AVIdg makes available other information.
Good help and thank you for time.
Regards,
len0x
24th May 2004, 16:01
Originally posted by BxWrapper
I will never know if AutoGK parses all this information to make a decission. I thought stream ID is solely the primary important since DVD2AVIdg makes available other information.
With new DVD2AVIdg available I'm planning to change that, but atm its how it is.
BxWrapper
25th May 2004, 06:09
@lenox,
I made another test with the corrected info and indeed it was the problem. For 2 CD, I now got a perfect size.
CD1: 698 MB
CD2: 697 MB
I thank you again for this nice piece of software (you must have heard this a lots) but but nonetheless it is going to save my time to transcode captures since they dont' quite deserve a manual treatment.
Regards,
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.