PDA

View Full Version : AutoGK and hybrid source


gatormac
16th April 2004, 23:34
I am trying to encode the Band of Brothers series and have come across this problem:

DVD2AVI in Robot4Rip recognizes this as hybrid material and does not force film. There is some interlaced content in the starting title and the entire credits are interlaced, but the movie itself is telecined. I resolved this by simply IVTC'ing in Gknot. Everything looks good except the credits, which of course look awful. Then I tried it with AutoGK 1.17, it once again recognized it as a hybrid source. The resulting video looks good, but once again the credits remain interlaced (and of course IVTCing any kind of interlace content doesn't look good). I thought AutoGK could restore hybrid sources....or does it just correct the highest percentage of a hybrid source? I would like to have the movie AND the credits play correctly. Here is the log file:

[4/16/2004 12:03:22 AM] Input dir: D:\DVD\Rips\BOB2_VTS_01_PGC2
[4/16/2004 12:03:22 AM] Output file: D:\DVD\Rips\BOB2_VTS_01_PGC2\autobob.avi
[4/16/2004 12:03:22 AM] Audio: English
[4/16/2004 12:03:22 AM] Subtitles: none
[4/16/2004 12:03:22 AM] Codec: XviD
[4/16/2004 12:03:22 AM] Target size: 896Mb
[4/16/2004 12:03:22 AM] Custom resolution settings: fixed width of 704 pixels
[4/16/2004 12:03:22 AM] Started encoding.
[4/16/2004 12:03:22 AM] Demuxing and indexing.
[4/16/2004 12:04:48 AM] Analyzing source.
[4/16/2004 12:04:48 AM] Writing the following script to D:\DVD\Rips\BOB2_VTS_01_PGC2\gk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("D:\\DVD\\Rips\\BOB2_VTS_01_PGC2\\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:\\DVD\\Rips\\BOB2_VTS_01_PGC2\\gk_tmp\\_.avi");
===========================================================
[4/16/2004 12:09:04 AM] Source has percentage of interlacing in motion areas: 36.49
[4/16/2004 12:09:04 AM] Source has percentage of telecined patterns: 91.33
[4/16/2004 12:09:04 AM] Source has percentage of progressive patterns: 8.67
[4/16/2004 12:09:04 AM] Source has percentage of interlaced patterns: 0.00
[4/16/2004 12:09:04 AM] Source is considered to be hybrid (mostly FILM).
[4/16/2004 12:09:04 AM] Writing the following script to D:\DVD\Rips\BOB2_VTS_01_PGC2\gk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("D:\\DVD\\Rips\\BOB2_VTS_01_PGC2\\gk_tmp\\_test.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:\\DVD\\Rips\\BOB2_VTS_01_PGC2\\gk_tmp\\_test.avi");
===========================================================
[4/16/2004 12:09:04 AM] Looking for optimal hybrid thresholds.
[4/16/2004 12:13:10 AM] Found threshold of: 0.24
[4/16/2004 12:13:10 AM] Found 74377 frames
[4/16/2004 12:13:10 AM] Audio size: 74,883,072 bytes (71.41 Mb)
[4/16/2004 12:13:10 AM] Overhead: 516,992 bytes (0.49 Mb)
[4/16/2004 12:13:10 AM] Video size: 864,124,032 bytes (824.09 Mb)
[4/16/2004 12:13:10 AM] Running compressibility test.
[4/16/2004 12:13:10 AM] Writing the following script to D:\DVD\Rips\BOB2_VTS_01_PGC2\gk_tmp\autobob_comptest.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\filters\mpeg2dec3dg.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\decomb.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\undot.dll")

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

movie = mpeg2source("D:\DVD\Rips\BOB2_VTS_01_PGC2\gk_tmp\autobob.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 = input_par > 1.4 ? 1.21518987341772 : 1.18518518518519
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
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
Telecide(movie,order=getOrder(movie),guide=1,post=2).Decimate(mode=3,threshold=0.24)
autocrop(mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=35)
Undot()
LanczosResize(out_width,out_height)
SelectRangeEvery(300,15)
===========================================================
[4/16/2004 12:13:10 AM] Writing the following script to D:\DVD\Rips\BOB2_VTS_01_PGC2\gk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("D:\\DVD\\Rips\\BOB2_VTS_01_PGC2\\gk_tmp\\autobob_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.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("D:\\DVD\\Rips\\BOB2_VTS_01_PGC2\\gk_tmp\\autobob_comptest.avi");
===========================================================
[4/16/2004 12:20:55 AM] Duration was: 7 minutes 44 seconds
[4/16/2004 12:20:55 AM] Speed was: 8.00 fps.
[4/16/2004 12:20:55 AM] Compressibility percentage is: 54.83
[4/16/2004 12:20:55 AM] Using softer matrix.
[4/16/2004 12:20:55 AM] Using softer resizer.
[4/16/2004 12:20:55 AM] Chosen resolution is: 704x400 ( AR: 1.76 )
[4/16/2004 12:20:55 AM] Predicted comptest value is: 64.38
[4/16/2004 12:20:55 AM] Running first pass.
[4/16/2004 12:20:55 AM] Writing the following script to D:\DVD\Rips\BOB2_VTS_01_PGC2\gk_tmp\autobob_movie.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\filters\mpeg2dec3dg.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\decomb.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\undot.dll")

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

movie = mpeg2source("D:\DVD\Rips\BOB2_VTS_01_PGC2\gk_tmp\autobob.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 = input_par > 1.4 ? 1.21518987341772 : 1.18518518518519
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
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
Telecide(movie,order=getOrder(movie),guide=1,post=2).Decimate(mode=3,threshold=0.24)
autocrop(mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=35)
Undot()
BicubicResize(out_width,out_height,0,0.5)
===========================================================
[4/16/2004 12:20:55 AM] Writing the following script to D:\DVD\Rips\BOB2_VTS_01_PGC2\gk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("D:\\DVD\\Rips\\BOB2_VTS_01_PGC2\\gk_tmp\\autobob_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.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("D:\\DVD\\Rips\\BOB2_VTS_01_PGC2\\autobob.avi");
===========================================================
[4/16/2004 1:25:08 AM] Duration was: 1 hour, 4 minutes 12 seconds
[4/16/2004 1:25:08 AM] Speed was: 19.31 fps.
[4/16/2004 1:25:08 AM] Expected quality of first pass size: 58.83
[4/16/2004 1:25:08 AM] Running second pass.
[4/16/2004 1:25:08 AM] Writing the following script to D:\DVD\Rips\BOB2_VTS_01_PGC2\gk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("D:\\DVD\\Rips\\BOB2_VTS_01_PGC2\\gk_tmp\\autobob_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.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.RemoveInputStreams();
VirtualDub.stream[0].SetSource("D:\\DVD\\Rips\\BOB2_VTS_01_PGC2\\gk_tmp\\AUTOBOB AC3 T03 2_0ch 192Kbps DELAY 0ms.ac3",0x00000203,0);
VirtualDub.stream[0].SetMode(0);
VirtualDub.stream[0].SetInterleave(1,96,96,1,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:\\DVD\\Rips\\BOB2_VTS_01_PGC2\\autobob.avi");
===========================================================
[4/16/2004 2:53:39 AM] Duration was: 1 hour, 28 minutes 31 seconds
[4/16/2004 2:53:39 AM] Speed was: 14.00 fps.
[4/16/2004 2:53:39 AM] Job finished.

Thanks for any help.

len0x
19th April 2004, 12:37
Originally posted by gatormac
I I thought AutoGK could restore hybrid sources....or does it just correct the highest percentage of a hybrid source? I would like to have the movie AND the credits play correctly. Here is the log file:


AutoGK did its best in this case. You can manually try adjusting threshold for decimate() but that's it. I'm sure that credits in AutoGK rip looked better that if you just IVTC, but its not perfect indeed as there is no way 30fps material will look the same in 24fps...
And btw, credits looks just progressive, not interlaced.


P.S. get PAL version of it and you won't have any problems :)

gatormac
19th April 2004, 18:05
So you're saying that its a progressive source thats been IVTC'd? I guess that makes sense since the playback is so choppy.....I suppose I could simply encode that section seperate and then append.

Thanks for your help!

len0x
19th April 2004, 18:13
Originally posted by gatormac
I suppose I could simply encode that section seperate and then append.


You can't actually - since framerate will be different, so you'll be unable to join those junks into one AVI.

gatormac
19th April 2004, 18:24
Hmmmm.....I guess for now I will just encode the movie. Thanks again for preventing me from wasting my time :D

len0x
19th April 2004, 18:34
now you see what this Hybrid problem is all about :)