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.
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.