musicnyman
13th May 2005, 06:52
in the older versions of auto gk, setting the encode to 2 gig max would undersize the output AVI if it couldn't compile the movie at 2gigs. with the newer versions of autogk, it'll still try and keep the movie at 2 gigs, but i want it just to keep the movie at 100% quality if it can be kept smaller instead of re-encoding the movie again. an example is the log posted below. i set it to 2 gb max and it came out 2 gigs, but if i rencode the same movie at 100% quality, it comes out at about 1.5 gigs. so i guess i'm asking if there's a way for autogk to do this automagically instead of me doing two encodes if compressiblity test is over 100%?
[5/7/2005 11:08:17 AM] AutoGK 2.08b
[5/7/2005 11:08:17 AM] OS: WinXP (5.1.2600).2
[5/7/2005 11:08:17 AM] Job started.
[5/7/2005 11:08:17 AM] Input dir: D:\workspace\white noise
[5/7/2005 11:08:17 AM] Output file: D:\workspace\white noise.avi
[5/7/2005 11:08:17 AM] Output codec: XviD
[5/7/2005 11:08:17 AM] Audio1: English AC3 6ch
[5/7/2005 11:08:17 AM] Subtitles: none
[5/7/2005 11:08:17 AM] Format: .AVI
[5/7/2005 11:08:17 AM] Target size: 2040Mb
[5/7/2005 11:08:17 AM] Custom resolution settings: fixed width of 720 pixels
[5/7/2005 11:08:17 AM] Standalone support enabled: MTK/Sigma
[5/7/2005 11:08:17 AM] Started encoding.
[5/7/2005 11:08:17 AM] Demuxing and indexing.
[5/7/2005 11:11:56 AM] Processing file: D:\workspace\white noise\VTS_01_1.VOB
[5/7/2005 11:11:56 AM] Source aspect ratio: 16:9
[5/7/2005 11:11:56 AM] Source resolution: 720x480
[5/7/2005 11:11:56 AM] Found NTSC source.
[5/7/2005 11:11:56 AM] Source seems to be pure FILM.
[5/7/2005 11:11:56 AM] Output will contain 140998 frames
[5/7/2005 11:11:56 AM] Audio1 size: 329,323,008 bytes (314.07 Mb)
[5/7/2005 11:11:56 AM] Overhead: 980,096 bytes (0.93 Mb)
[5/7/2005 11:11:56 AM] Video size: 1,808,791,936 bytes (1725.00 Mb)
[5/7/2005 11:11:56 AM] Running compressibility test.
[5/7/2005 11:11:56 AM] Writing the following script to D:\workspace\agk_tmp\white noise_comptest.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrainSSE3.dll")
movie = mpeg2source("D:\workspace\agk_tmp\white noise.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=34,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1.18518518518519
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
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
autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=34,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
RemoveGrain(mode=2)
SelectRangeEvery(300,15)
===========================================================
[5/7/2005 11:15:20 AM] Duration was: 3 minutes 24 seconds
[5/7/2005 11:15:20 AM] Speed was: 34.55 fps.
[5/7/2005 11:15:20 AM] Compressibility percentage is: 134.27
[5/7/2005 11:15:20 AM] Switching b-frames off
[5/7/2005 11:15:20 AM] Chosen resolution is: 720x304 ( AR: 2.37 )
[5/7/2005 11:15:20 AM] Predicted comptest value is: 100.43
[5/7/2005 11:15:20 AM] Running first pass.
[5/7/2005 11:15:20 AM] Writing the following script to D:\workspace\agk_tmp\white noise_movie.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrainSSE3.dll")
movie = mpeg2source("D:\workspace\agk_tmp\white noise.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=34,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1.18518518518519
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
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
autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=34,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
RemoveGrain(mode=2)
===========================================================
[5/7/2005 11:53:59 AM] Duration was: 38 minutes 39 seconds
[5/7/2005 11:53:59 AM] Speed was: 60.80 fps.
[5/7/2005 11:54:00 AM] Expected quality of first pass size: 106.93
[5/7/2005 11:54:00 AM] Trying to adjust settings.
[5/7/2005 11:54:00 AM] No adjustment is possible
[5/7/2005 11:54:00 AM] Setting min quantizer to 1 to prevent undersize.
[5/7/2005 11:54:00 AM] It is recommended to use smaller size or larger resolution!
[5/7/2005 11:54:00 AM] Running second pass.
[5/7/2005 1:17:37 PM] Duration was: 1 hour, 23 minutes 37 seconds
[5/7/2005 1:17:37 PM] Speed was: 28.10 fps.
[5/7/2005 1:17:37 PM] Job finished. Total time: 2 hours 9 minutes 20 seconds
[5/7/2005 11:08:17 AM] AutoGK 2.08b
[5/7/2005 11:08:17 AM] OS: WinXP (5.1.2600).2
[5/7/2005 11:08:17 AM] Job started.
[5/7/2005 11:08:17 AM] Input dir: D:\workspace\white noise
[5/7/2005 11:08:17 AM] Output file: D:\workspace\white noise.avi
[5/7/2005 11:08:17 AM] Output codec: XviD
[5/7/2005 11:08:17 AM] Audio1: English AC3 6ch
[5/7/2005 11:08:17 AM] Subtitles: none
[5/7/2005 11:08:17 AM] Format: .AVI
[5/7/2005 11:08:17 AM] Target size: 2040Mb
[5/7/2005 11:08:17 AM] Custom resolution settings: fixed width of 720 pixels
[5/7/2005 11:08:17 AM] Standalone support enabled: MTK/Sigma
[5/7/2005 11:08:17 AM] Started encoding.
[5/7/2005 11:08:17 AM] Demuxing and indexing.
[5/7/2005 11:11:56 AM] Processing file: D:\workspace\white noise\VTS_01_1.VOB
[5/7/2005 11:11:56 AM] Source aspect ratio: 16:9
[5/7/2005 11:11:56 AM] Source resolution: 720x480
[5/7/2005 11:11:56 AM] Found NTSC source.
[5/7/2005 11:11:56 AM] Source seems to be pure FILM.
[5/7/2005 11:11:56 AM] Output will contain 140998 frames
[5/7/2005 11:11:56 AM] Audio1 size: 329,323,008 bytes (314.07 Mb)
[5/7/2005 11:11:56 AM] Overhead: 980,096 bytes (0.93 Mb)
[5/7/2005 11:11:56 AM] Video size: 1,808,791,936 bytes (1725.00 Mb)
[5/7/2005 11:11:56 AM] Running compressibility test.
[5/7/2005 11:11:56 AM] Writing the following script to D:\workspace\agk_tmp\white noise_comptest.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrainSSE3.dll")
movie = mpeg2source("D:\workspace\agk_tmp\white noise.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=34,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1.18518518518519
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
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
autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=34,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
RemoveGrain(mode=2)
SelectRangeEvery(300,15)
===========================================================
[5/7/2005 11:15:20 AM] Duration was: 3 minutes 24 seconds
[5/7/2005 11:15:20 AM] Speed was: 34.55 fps.
[5/7/2005 11:15:20 AM] Compressibility percentage is: 134.27
[5/7/2005 11:15:20 AM] Switching b-frames off
[5/7/2005 11:15:20 AM] Chosen resolution is: 720x304 ( AR: 2.37 )
[5/7/2005 11:15:20 AM] Predicted comptest value is: 100.43
[5/7/2005 11:15:20 AM] Running first pass.
[5/7/2005 11:15:20 AM] Writing the following script to D:\workspace\agk_tmp\white noise_movie.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrainSSE3.dll")
movie = mpeg2source("D:\workspace\agk_tmp\white noise.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=34,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1.18518518518519
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
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
autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=34,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
RemoveGrain(mode=2)
===========================================================
[5/7/2005 11:53:59 AM] Duration was: 38 minutes 39 seconds
[5/7/2005 11:53:59 AM] Speed was: 60.80 fps.
[5/7/2005 11:54:00 AM] Expected quality of first pass size: 106.93
[5/7/2005 11:54:00 AM] Trying to adjust settings.
[5/7/2005 11:54:00 AM] No adjustment is possible
[5/7/2005 11:54:00 AM] Setting min quantizer to 1 to prevent undersize.
[5/7/2005 11:54:00 AM] It is recommended to use smaller size or larger resolution!
[5/7/2005 11:54:00 AM] Running second pass.
[5/7/2005 1:17:37 PM] Duration was: 1 hour, 23 minutes 37 seconds
[5/7/2005 1:17:37 PM] Speed was: 28.10 fps.
[5/7/2005 1:17:37 PM] Job finished. Total time: 2 hours 9 minutes 20 seconds