Log in

View Full Version : AutoGK is cropping the top portion of the video.


mob
8th June 2004, 15:20
Hello friends!

A buddy of mine taught a special 3-day psychology course at a college in New York. He recorded this course on to a 6 dvd set and gave me a copy.

I am attempting to convert these dvds to XVID for storage on my hard drive. Since I have little experience in the "encoding industry", and don't have the patience to learn, I decided to use AutoGK; which I've found is easy to use and gives me brilliant results!

I was able to encode 3 of the 6 dvds in the set to XVID with no problems using AutoGK. The other 3 dvds, however, have a serious resolution problem. It is as if AutoGK decided to crop about 2 inches off the top of the video. The outcome of this is that now there are moments in the video where peoples' heads are cut off since you can only see about 2/3 of the bottom portion of the video.

AutoGK is for some reason choosing the resolution of 640X400 instead of 640X480. I have tried using the Auto Width feature, the Fixed Width feature and the Minimum Width feature. Each one gives me the same result with the top 1/3 of the film cut off.

The strange thing is that if all 6 dvds were recorded in the same exact way, why is AutoGK having difficulties with only 3 of the dvds while the other 3 are perfect?

I have tried AutoGK version 1.25, 1.30, and 1.35. They all give me the same problem. I was, however, able to use DVDx to encode the dvd and it miraculously worked! Although the quality difference between DVDx and AutoGK are quite remarkable. To make the long story short, the quality I see in AutoGKs' output is simply stunningly beautiful, unlike DVDx. I also found that AutoGks' simplicity is pure genious. It's a shame that I can't get AutoGK to encode the whole dvd set properly.

Below I have included two AutoGK Logs. The first is from one of the discs that AutoGK is having the problem with, and the second is from one of the discs that AutoGK encoded correctly. Maybe somebody can see a difference or knows why this is happening and can help me out. Keep in mind that these are 2 dvds from the same 6-Disc set, which renders me clueless as to why this is happening when one encodes properly and the other doesn't.

Any help would be greatly appreciated.

mob
8th June 2004, 15:21
================================================================
----------------------------------------------------------------

Here is the log from one of the dvds in the set that has the problem:
----------------------------------------------------------------
================================================================

[6/4/2004 4:43:17 AM] AutoGK 1.25
[6/4/2004 4:43:17 AM] OS: WinXP (5.1.2600).2
[6/4/2004 4:43:17 AM] Job started.
[6/4/2004 4:43:17 AM] Input dir: F:\VIDEO_TS
[6/4/2004 4:43:17 AM] Output file: X:\Temp\nowgk.avi
[6/4/2004 4:43:17 AM] Audio: ???
[6/4/2004 4:43:17 AM] Subtitles: none
[6/4/2004 4:43:17 AM] Codec: XviD
[6/4/2004 4:43:17 AM] Target size: 700Mb
[6/4/2004 4:43:17 AM] Custom resolution settings: fixed width of 640 pixels
[6/4/2004 4:43:17 AM] Custom audio settings: VBR MP3 with average bitrate: 128Kbps
[6/4/2004 4:43:17 AM] Started encoding.
[6/4/2004 4:43:17 AM] Demuxing and indexing.
[6/4/2004 4:48:17 AM] Analyzing source.
[6/4/2004 4:48:17 AM] Writing the following script to X:\Temp\gk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("X:\\Temp\\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("X:\\Temp\\gk_tmp\\_.avi");
===========================================================
[6/4/2004 4:51:47 AM] Source has percentage of interlacing in motion areas: 0.98
[6/4/2004 4:51:47 AM] Source has percentage of telecined patterns: 0.21
[6/4/2004 4:51:47 AM] Source has percentage of progressive patterns: 98.82
[6/4/2004 4:51:47 AM] Source has percentage of interlaced patterns: 0.97
[6/4/2004 4:51:47 AM] Source is considered to be progressive.
[6/4/2004 4:51:47 AM] Found 230128 frames
[6/4/2004 4:51:47 AM] Encoding audio.
[6/4/2004 5:02:48 AM] Audio size: 106,447,712 bytes (101.52 Mb)
[6/4/2004 5:02:48 AM] Overhead: 9,205,120 bytes (8.78 Mb)
[6/4/2004 5:02:48 AM] Video size: 618,350,368 bytes (589.70 Mb)
[6/4/2004 5:02:48 AM] Running compressibility test.
[6/4/2004 5:02:48 AM] Writing the following script to X:\Temp\gk_tmp\nowgk_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("X:\Temp\gk_tmp\nowgk.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 = 0.911392405063291
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 = 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
new_aspect = flag_halfdvd > 0 ? new_aspect/2.0 : new_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)
===========================================================
[6/4/2004 5:02:48 AM] Writing the following script to X:\Temp\gk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("X:\\Temp\\gk_tmp\\nowgk_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("X:\\Temp\\gk_tmp\\nowgk_comptest.avi");
===========================================================
[6/4/2004 5:09:32 AM] Duration was: 6 minutes 43 seconds
[6/4/2004 5:09:32 AM] Speed was: 28.52 fps.
[6/4/2004 5:09:32 AM] Compressibility percentage is: 47.74
[6/4/2004 5:09:32 AM] Chosen resolution is: 640x400 ( AR: 1.60 )
[6/4/2004 5:09:32 AM] Predicted comptest value is: 47.74
[6/4/2004 5:09:32 AM] Running first pass.
[6/4/2004 5:09:32 AM] Writing the following script to X:\Temp\gk_tmp\nowgk_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("X:\Temp\gk_tmp\nowgk.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 = 0.911392405063291
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 = 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
new_aspect = flag_halfdvd > 0 ? new_aspect/2.0 : new_aspect
autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=35)
Undot()
LanczosResize(out_width,out_height)
===========================================================
[6/4/2004 5:09:32 AM] Writing the following script to X:\Temp\gk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("X:\\Temp\\gk_tmp\\nowgk_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("X:\\Temp\\nowgk.avi");
===========================================================
[6/4/2004 6:18:37 AM] Duration was: 1 hour, 9 minutes 5 seconds
[6/4/2004 6:18:37 AM] Speed was: 55.51 fps.
[6/4/2004 6:18:38 AM] Expected quality of first pass size: 48.30
[6/4/2004 6:18:38 AM] Running second pass.
[6/4/2004 6:18:38 AM] Writing the following script to X:\Temp\gk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("X:\\Temp\\gk_tmp\\nowgk_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("X:\\Temp\\gk_tmp\\nowgk LPCM T01 48KHz.mp3",0x00000202,1);
VirtualDub.stream[0].SetMode(0);
VirtualDub.stream[0].SetInterleave(1,500,1,0,48);
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","???");
VirtualDub.SaveAVI("X:\\Temp\\nowgk.avi");
===========================================================
[6/4/2004 8:15:00 AM] Duration was: 1 hour, 56 minutes 21 seconds
[6/4/2004 8:15:00 AM] Speed was: 32.96 fps.
[6/4/2004 8:15:00 AM] Job finished.

mob
8th June 2004, 15:22
================================================================
----------------------------------------------------------------

Here is the log from one of the dvds in the set that encoded correctly:
----------------------------------------------------------------
================================================================

[6/7/2004 8:23:54 AM] AutoGK 1.25
[6/7/2004 8:23:54 AM] OS: WinXP (5.1.2600).2
[6/7/2004 8:23:54 AM] Job started.
[6/7/2004 8:23:54 AM] Input dir: F:\VIDEO_TS
[6/7/2004 8:23:54 AM] Output file: X:\Temp\three.avi
[6/7/2004 8:23:54 AM] Audio: ???
[6/7/2004 8:23:54 AM] Subtitles: none
[6/7/2004 8:23:54 AM] Codec: XviD
[6/7/2004 8:23:54 AM] Target size: 700Mb
[6/7/2004 8:23:54 AM] Custom resolution settings: fixed width of 640 pixels
[6/7/2004 8:23:54 AM] Custom audio settings: VBR MP3 with average bitrate: 112Kbps
[6/7/2004 8:23:54 AM] Started encoding.
[6/7/2004 8:23:54 AM] Demuxing and indexing.
[6/7/2004 8:28:57 AM] Analyzing source.
[6/7/2004 8:28:57 AM] Writing the following script to X:\Temp\gk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("X:\\Temp\\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("X:\\Temp\\gk_tmp\\_.avi");
===========================================================
[6/7/2004 8:32:28 AM] Source has percentage of interlacing in motion areas: 1.73
[6/7/2004 8:32:28 AM] Source has percentage of telecined patterns: 0.84
[6/7/2004 8:32:28 AM] Source has percentage of progressive patterns: 97.68
[6/7/2004 8:32:28 AM] Source has percentage of interlaced patterns: 1.48
[6/7/2004 8:32:28 AM] Source is considered to be progressive.
[6/7/2004 8:32:29 AM] Found 230671 frames
[6/7/2004 8:32:29 AM] Encoding audio.
[6/7/2004 8:46:25 AM] Audio size: 92,376,839 bytes (88.10 Mb)
[6/7/2004 8:46:25 AM] Overhead: 9,226,880 bytes (8.80 Mb)
[6/7/2004 8:46:25 AM] Video size: 632,399,481 bytes (603.10 Mb)
[6/7/2004 8:46:25 AM] Running compressibility test.
[6/7/2004 8:46:25 AM] Writing the following script to X:\Temp\gk_tmp\three_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("X:\Temp\gk_tmp\three.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 = 0.911392405063291
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 = 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
new_aspect = flag_halfdvd > 0 ? new_aspect/2.0 : new_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)
===========================================================
[6/7/2004 8:46:25 AM] Writing the following script to X:\Temp\gk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("X:\\Temp\\gk_tmp\\three_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("X:\\Temp\\gk_tmp\\three_comptest.avi");
===========================================================
[6/7/2004 8:53:58 AM] Duration was: 7 minutes 32 seconds
[6/7/2004 8:53:58 AM] Speed was: 25.48 fps.
[6/7/2004 8:53:58 AM] Compressibility percentage is: 47.17
[6/7/2004 8:53:58 AM] Chosen resolution is: 640x480 ( AR: 1.33 )
[6/7/2004 8:53:58 AM] Predicted comptest value is: 47.17
[6/7/2004 8:53:58 AM] Running first pass.
[6/7/2004 8:53:58 AM] Writing the following script to X:\Temp\gk_tmp\three_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("X:\Temp\gk_tmp\three.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 = 0.911392405063291
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 = 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
new_aspect = flag_halfdvd > 0 ? new_aspect/2.0 : new_aspect
autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=35)
Undot()
LanczosResize(out_width,out_height)
===========================================================
[6/7/2004 8:53:58 AM] Writing the following script to X:\Temp\gk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("X:\\Temp\\gk_tmp\\three_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("X:\\Temp\\three.avi");
===========================================================
[6/7/2004 10:06:22 AM] Duration was: 1 hour, 12 minutes 23 seconds
[6/7/2004 10:06:22 AM] Speed was: 53.11 fps.
[6/7/2004 10:06:22 AM] Expected quality of first pass size: 48.92
[6/7/2004 10:06:22 AM] Running second pass.
[6/7/2004 10:06:22 AM] Writing the following script to X:\Temp\gk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("X:\\Temp\\gk_tmp\\three_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("X:\\Temp\\gk_tmp\\three LPCM T01 48KHz.mp3",0x00000202,1);
VirtualDub.stream[0].SetMode(0);
VirtualDub.stream[0].SetInterleave(1,500,1,0,48);
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","???");
VirtualDub.SaveAVI("X:\\Temp\\three.avi");
===========================================================
[6/7/2004 12:17:06 PM] Duration was: 2 hours 10 minutes 43 seconds
[6/7/2004 12:17:06 PM] Speed was: 29.41 fps.
[6/7/2004 12:17:06 PM] Job finished.

len0x
8th June 2004, 17:23
Its autocrop problem. Usual thersholds for commercial DVDs are pretty different from home made DVDs and captures. So I'm working on hidden option which allows you to override defaults. Should be available in the next version.

P.S. Hint: always use preview on such sources first to make sure you're not gonna waste time encoding wrong resolution.

mob
8th June 2004, 17:45
Originally posted by len0x
Its autocrop problem. Usual thersholds for commercial DVDs are pretty different from home made DVDs and captures. So I'm working on hidden option which allows you to override defaults. Should be available in the next version.
Glad to hear the good news! :D

len0x, your AutoGK software is truly amazing and it keeps getting better with each new release! Keep up the fabulous work!

Originally posted by len0x
P.S. Hint: always use preview on such sources first to make sure you're not gonna waste time encoding wrong resolution. Yes, I've learned that the hard way... :rolleyes:

Peepo_UK
18th June 2004, 19:39
I have a similar sort of issue, I ripped titanic and the 20th Century fox animation and the THX thing had the top and bottom of the video cut off, but the main film was fine.

Will this be addressed in future builds?

Also, I ripped an episode of a documentary series "The Planets" which encoded as 4:3 but looks like it needs borders added top and bottom to stop it stretching. Will this be addressed in a future version of AutoGK?

Thanks in advance and keep up the tremendous work!

JediYodaNT
23rd September 2004, 23:47
Has Anyone Figured Out How To Fix This Issue? I Was Trying To Compress My "Angel Season 4" Discs. So Far I've Been Able To Get Discs 1 + 2 To Compress Just Fine, But For Some Reason Disc 3 Continues To Get Cropped On The Bottom. I Have Looked Into Using The Hidden Options Addon To AutoGK, However I Keep Getting The Same Results...Also, I Have Never Been Able To Get The Preview Function To Work Correctly. Ech Time I Press Preview It Launches The DVD2AVI For Indexing And Then It Launches What Appears To Be A Really Old Version Of The M$ Media Center, Even Though I've Got Version 10. Any Help Would Be Wonderful.