Log in

View Full Version : AutoGK 1.60 and Fast Video


KingArgyle
12th October 2004, 18:12
I'm having a problem with encoding an MPEG 2 file that was recorded with Beyond TV 3.5 to a XVID. I think I've tracked the problem down to AVISynth or at least it's interface with AutoGK. I can see this before I start the complete encoding process just by doing a Preview, and if I understand AutoGK correctly, it just generates an AVS script to feed the stream as an AVI.

Here is the log that is generated:

[10/10/2004 11:19:24 PM] AutoGK 1.60
[10/10/2004 11:19:24 PM] OS: Win2000 (5.0.2195).2
[10/10/2004 11:19:24 PM] Job started.
[10/10/2004 11:19:24 PM] Input file: The West Wing (22)-(Inauguration Over There)-2004-09-20-0.mpg
[10/10/2004 11:19:24 PM] Output file: C:\TV Software\The West Wing (22)-(Inauguration Over There)-2004-09-20-0.avi
[10/10/2004 11:19:24 PM] Audio: Unknown Audio
[10/10/2004 11:19:24 PM] Subtitles: none
[10/10/2004 11:19:24 PM] Codec: DivX
[10/10/2004 11:19:24 PM] Target size: 450Mb
[10/10/2004 11:19:24 PM] Custom resolution settings: fixed width of 720 pixels
[10/10/2004 11:19:24 PM] Custom audio settings: VBR MP3 with average bitrate: 128Kbps
[10/10/2004 11:19:24 PM] Started encoding.
[10/10/2004 11:19:24 PM] Demuxing and indexing.
[10/10/2004 11:20:15 PM] Processing file: C:\TV Software\The West Wing (22)-(Inauguration Over There)-2004-09-20-0.mpg
[10/10/2004 11:20:15 PM] Source aspect ratio: 4:3
[10/10/2004 11:20:15 PM] Source resolution: 704x256
[10/10/2004 11:20:15 PM] Found NTSC source.
[10/10/2004 11:20:15 PM] Analyzing source.
[10/10/2004 11:21:46 PM] Source has percentage of interlacing in motion areas: 4.77
[10/10/2004 11:21:46 PM] Source has percentage of telecined patterns: 0.96
[10/10/2004 11:21:46 PM] Source has percentage of progressive patterns: 96.60
[10/10/2004 11:21:46 PM] Source has percentage of interlaced patterns: 2.43
[10/10/2004 11:21:46 PM] Source is considered to be interlaced.
[10/10/2004 11:21:47 PM] Found 107938 frames
[10/10/2004 11:21:47 PM] Encoding audio.
[10/10/2004 11:31:10 PM] Audio size: 53,615,888 bytes (51.13 Mb)
[10/10/2004 11:31:10 PM] Overhead: 6,964,992 bytes (6.64 Mb)
[10/10/2004 11:31:10 PM] Video size: 411,278,320 bytes (392.23 Mb)
[10/10/2004 11:31:10 PM] Target bitrate is: 914kbps
[10/10/2004 11:31:10 PM] Running compressibility test.
[10/10/2004 11:31:10 PM] Writing the following script to C:\TV Software\agk_tmp\The West Wing (22)-(Inauguration Over There)-2004-09-20-0_comptest.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.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")

movie = mpeg2source("C:\TV Software\agk_tmp\The West Wing (22)-(Inauguration Over There)-2004-09-20-0.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=34,samplestartframe=0)
fixed_aspect = 0.96969696969697
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
KernelDeInt(movie,order=1,sharp=true)
autocrop(mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=34,samplestartframe=0)
Undot()
LanczosResize(out_width,out_height)
SelectRangeEvery(280,14)
===========================================================
[10/10/2004 11:36:17 PM] Duration was: 5 minutes 5 seconds
[10/10/2004 11:36:17 PM] Speed was: 17.65 fps.
[10/10/2004 11:36:17 PM] Compressibility percentage is: 11.81
[10/10/2004 11:36:17 PM] Chosen resolution is: 720x512 ( AR: 1.41 )
[10/10/2004 11:36:17 PM] Predicted comptest value is: 11.81
[10/10/2004 11:36:17 PM] Running first pass.
[10/10/2004 11:36:17 PM] Writing the following script to C:\TV Software\agk_tmp\The West Wing (22)-(Inauguration Over There)-2004-09-20-0_movie.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.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")

movie = mpeg2source("C:\TV Software\agk_tmp\The West Wing (22)-(Inauguration Over There)-2004-09-20-0.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=34,samplestartframe=0)
fixed_aspect = 0.96969696969697
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
KernelDeInt(movie,order=1,sharp=true)
autocrop(mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=34,samplestartframe=0)
Undot()
LanczosResize(out_width,out_height)
===========================================================
[10/11/2004 12:58:34 AM] Duration was: 1 hour, 22 minutes 15 seconds
[10/11/2004 12:58:34 AM] Speed was: 21.87 fps.
[10/11/2004 12:58:34 AM] Running second pass.
[10/11/2004 2:05:23 AM] Duration was: 1 hour, 6 minutes 47 seconds
[10/11/2004 2:05:23 AM] Speed was: 26.93 fps.
[10/11/2004 2:05:23 AM] Job finished.

len0x
13th October 2004, 19:09
You encode will not look any good @ comp test percentage equals 11% :)
You need to select Auto Width or increase size dramatically (by a factor of 5-6 at least).

KingArgyle
14th October 2004, 02:35
Thanks, I'll give auto width another try, but I believe I had the same results the time I tried that. If I get the same results I'll post that log as well.

Thanks.

len0x
14th October 2004, 11:01
Auto width will give you _very_ small resolution at the same size, so it won't really improve that much quality.

p.s. I don't see you mentioning what the actually problme is - quality ?

KingArgyle
15th October 2004, 01:44
The problem is that the audio and video are out of sync, and the audio sounds fine, but the video is playing at about 4 times speed. The MPEG2 plays fine, but after conversion everything is out of sync in the Xvid or Divx AVI. I'm going to try and do another run tonight with the auto width.

len0x
15th October 2004, 10:39
You should have said so in the beginning! Nothing you will be able to do inside AutoGK. Its probably audio demuxing problem. See here: http://forum.doom9.org/showthread.php?s=&threadid=82400
You will have to remux audio manually if you manage to demux audio properly.

KingArgyle
15th October 2004, 23:58
Sorry, my fault, I thought the title would give enough of a description. Anyway I'll try demuxing the audio outside of AutoGK. I'll let you know how it goes.

Thanks again for the info.