Log in

View Full Version : Incorrect file size for resulting avi


darkwarrior
7th August 2007, 10:51
Hi again. I'm trying to encode three films at the moment, each has a set size limit. The first two have 750MB size limits while the third has a 600 as its less than an hour long.

However, after converting them they turn out considerably less than these. The first two are coming in at 530MB roughly, give or take 8 MB. The third came out at 388MB. I assume that this will have some impact on the total quality of the file so am trying to get it to the set file size but for some reason the output always turns out much smaller than this. I've not changed any settings as I've not used AutoGK in a good while.

This is the code for one of the files.
[07/08/2007 01:26:06] AutoGK 2.40
[07/08/2007 01:26:06] OS: WinXP (5.1.2600).2
[07/08/2007 01:26:06] Job started.
[07/08/2007 01:26:06] Input file: K:\New Movies\Indiana Jones and the Last Crusade\VTS_07_0.IFO
[07/08/2007 01:26:06] Output file: K:\New Movies\Indiana Jones and the Last Crusade.avi
[07/08/2007 01:26:06] Output codec: XviD
[07/08/2007 01:26:06] Audio 1: English AC3 6ch
[07/08/2007 01:26:06] Subtitles: none
[07/08/2007 01:26:06] Format: AVI
[07/08/2007 01:26:06] Target size: 750Mb
[07/08/2007 01:26:06] Custom resolution settings: fixed width of 640 pixels
[07/08/2007 01:26:06] Audio 1 settings: VBR MP3 with average bitrate: 128Kbps
[07/08/2007 01:26:06] Standalone support enabled: MTK/Sigma
[07/08/2007 01:26:06] Started encoding.
[07/08/2007 01:26:06] Demuxing and indexing.
[07/08/2007 01:28:05] Processing file: K:\New Movies\Indiana Jones and the Last Crusade\VTS_07_1.VOB
[07/08/2007 01:28:05] Processing file: K:\New Movies\Indiana Jones and the Last Crusade\VTS_07_2.VOB
[07/08/2007 01:28:05] Processing file: K:\New Movies\Indiana Jones and the Last Crusade\VTS_07_3.VOB
[07/08/2007 01:28:05] Processing file: K:\New Movies\Indiana Jones and the Last Crusade\VTS_07_4.VOB
[07/08/2007 01:28:05] Processing file: K:\New Movies\Indiana Jones and the Last Crusade\VTS_07_5.VOB
[07/08/2007 01:28:05] Processing file: K:\New Movies\Indiana Jones and the Last Crusade\VTS_07_6.VOB
[07/08/2007 01:28:05] Processing file: K:\New Movies\Indiana Jones and the Last Crusade\VTS_07_7.VOB
[07/08/2007 01:28:05] Source resolution: 720x576
[07/08/2007 01:28:05] Found PAL source.
[07/08/2007 01:28:05] Source aspect ratio: 16:9
[07/08/2007 01:28:06] Analyzing source.
[07/08/2007 01:33:19] Source has percentage of interlacing in motion areas: 0.00
[07/08/2007 01:33:19] Source is considered to be progressive.
[07/08/2007 01:33:19] Output will contain 182519 frames
[07/08/2007 01:33:19] Decoding audio.
[07/08/2007 01:36:43] Normalizing audio.
[07/08/2007 01:37:27] Encoding audio.
[07/08/2007 01:51:06] Audio1 size: 107,205,912 bytes (102.24 Mb)
[07/08/2007 01:51:06] Overhead: 7,300,736 bytes (6.96 Mb)
[07/08/2007 01:51:06] Video size: 671,925,352 bytes (640.80 Mb)
[07/08/2007 01:51:06] Running compressibility test.
[07/08/2007 01:51:06] Writing the following script to K:\New Movies\agk_tmp\Indiana Jones and the Last Crusade_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("K:\New Movies\agk_tmp\Indiana Jones and the Last Crusade.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.42222222222222
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 < 1.25) ? 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
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)
===========================================================
[07/08/2007 01:56:12] Duration was: 5 minutes 6 seconds
[07/08/2007 01:56:12] Speed was: 29.82 fps.
[07/08/2007 01:56:12] Compressibility percentage is: 28.08
[07/08/2007 01:56:12] Using softer resizer.
[07/08/2007 01:56:12] Chosen resolution is: 640x272 ( AR: 2.35 )
[07/08/2007 01:56:12] Predicted comptest value is: 29.13%
[07/08/2007 01:56:12] Running first pass.
[07/08/2007 01:56:12] Writing the following script to K:\New Movies\agk_tmp\Indiana Jones and the Last Crusade_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("K:\New Movies\agk_tmp\Indiana Jones and the Last Crusade.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.42222222222222
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 < 1.25) ? 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
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)
BicubicResize(out_width,out_height,0,0.5)
RemoveGrain(mode=2)
===========================================================
[07/08/2007 02:53:33] Duration was: 57 minutes 21 seconds
[07/08/2007 02:53:33] Speed was: 53.04 fps.
[07/08/2007 02:53:34] Expected quality of first pass size: 28.24%
[07/08/2007 02:53:34] Running second pass.
[07/08/2007 04:12:27] Duration was: 1 hour, 18 minutes 53 seconds
[07/08/2007 04:12:27] Speed was: 38.56 fps.
[07/08/2007 04:12:27] Job finished. Total time: 2 hours 46 minutes 20 seconds

sheislegend75
7th August 2007, 12:17
Try reinstalling the latest xvid codec build. I find thats the best step if its getting 'buggy'. ;) May I also suggest using full Gordian Knot?

If you must use AGK, heres some hints for you:
IJ and LC may need a larger file size than 750MB. Try 1.45GB instead (1/3rd of a DVD-R, and hey theres 3 films for one disc), just bump up some of AGK's settings a bit and keep the ac3 audio. You can make the 'fixed width' 720 (or 'minimum' 704). Also, in the advanced hidden menu, you may want to force sharper matrix and check accurate color correction.

darkwarrior
7th August 2007, 23:44
I've resinstalled Xvid so I'll try encoding the film again and see how it works.

What do 'IJ' and 'LC' mean out of curiosity? And thanks for your advice, gonna try some of those settings.

sheislegend75
8th August 2007, 00:16
oh sorry Indiana Jones and the Last Crusade is what I meant. Its a long film, with a great audio track so I recommend higher quality settings, because if you want to back up your dvd collection to xvid avi, you might as well get the best out of it ;)

darkwarrior
8th August 2007, 01:16
Exactly. Thats what is bothering me about the lowered file size. It looks kind of ok but there must be something compromised if its 200MB less than an average AVI 1h30m film.

darkwarrior
8th August 2007, 14:28
Hmm.. following your advice I tried making it 1.4Gb instead, though I prefer to keep it about 800MB for storage purposes. It came out 300MB lower again at 1.05GB. It seems to be going to losing about 30% of the appointed file size.

I hate when stuff happens out of nowhere. This hapenned last time with it not properly encoding 6CH audio. Didn't change anything, just started hapenning. Unless installing games is doing it. However, I've tried removin all codecs and installing them again as I did last time. Still coming out lower. Even with the AC3 audio and Matrix sharpness.


[B][08/08/2007 11:22:00] AutoGK 2.40
[08/08/2007 11:22:00] OS: WinXP (5.1.2600).2
[08/08/2007 11:22:00] Job started.
[08/08/2007 11:22:00] Input file: K:\New Movies\Indiana Jones and the Last Crusade\VTS_07_0.IFO
[08/08/2007 11:22:00] Output file: K:\New Movies\Indiana Jones and the Last Crusade\Indiana Jones and the Last Crusade.avi
[08/08/2007 11:22:00] Output codec: XviD
[08/08/2007 11:22:00] Audio 1: English AC3 6ch
[08/08/2007 11:22:00] Subtitles: none
[08/08/2007 11:22:00] Format: AVI
[08/08/2007 11:22:00] Target size: 1400Mb
[08/08/2007 11:22:00] Custom resolution settings: fixed width of 720 pixels
[08/08/2007 11:22:00] Audio 1 settings: Original
[08/08/2007 11:22:00] Standalone support enabled: MTK/Sigma
[08/08/2007 11:22:00] Started encoding.
[08/08/2007 11:22:00] Demuxing and indexing.
[08/08/2007 11:24:42] Processing file: K:\New Movies\Indiana Jones and the Last Crusade\VTS_07_1.VOB
[08/08/2007 11:24:42] Processing file: K:\New Movies\Indiana Jones and the Last Crusade\VTS_07_2.VOB
[08/08/2007 11:24:42] Processing file: K:\New Movies\Indiana Jones and the Last Crusade\VTS_07_3.VOB
[08/08/2007 11:24:42] Processing file: K:\New Movies\Indiana Jones and the Last Crusade\VTS_07_4.VOB
[08/08/2007 11:24:42] Processing file: K:\New Movies\Indiana Jones and the Last Crusade\VTS_07_5.VOB
[08/08/2007 11:24:42] Processing file: K:\New Movies\Indiana Jones and the Last Crusade\VTS_07_6.VOB
[08/08/2007 11:24:42] Processing file: K:\New Movies\Indiana Jones and the Last Crusade\VTS_07_7.VOB
[08/08/2007 11:24:42] Source resolution: 720x576
[08/08/2007 11:24:42] Found PAL source.
[08/08/2007 11:24:42] Source aspect ratio: 16:9
[08/08/2007 11:24:42] Analyzing source.
[08/08/2007 11:29:58] Source has percentage of interlacing in motion areas: 0.00
[08/08/2007 11:29:58] Source is considered to be progressive.
[08/08/2007 11:29:58] Output will contain 182519 frames
[08/08/2007 11:29:58] Forcing encoding with sharp matrix.
[08/08/2007 11:29:58] Audio1 size: 408,844,800 bytes (389.90 Mb)
[08/08/2007 11:29:58] Overhead: 1,216,768 bytes (1.16 Mb)
[08/08/2007 11:29:58] Video size: 1,057,944,832 bytes (1008.93 Mb)
[08/08/2007 11:29:58] Running compressibility test.
[08/08/2007 11:29:58] Writing the following script to K:\New Movies\Indiana Jones and the Last Crusade\agk_tmp\Indiana Jones and the Last Crusade_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("K:\New Movies\Indiana Jones and the Last Crusade\agk_tmp\Indiana Jones and the Last Crusade.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.42222222222222
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)
===========================================================
[08/08/2007 11:36:54] Duration was: 6 minutes 55 seconds
[08/08/2007 11:36:54] Speed was: 21.94 fps.
[08/08/2007 11:36:54] Compressibility percentage is: 36.79
[08/08/2007 11:36:54] Using softer resizer.
[08/08/2007 11:36:54] Chosen resolution is: 720x320 ( AR: 2.25 )
[08/08/2007 11:36:54] Predicted comptest value is: 38.16%
[08/08/2007 11:36:54] Running first pass.
[08/08/2007 11:36:54] Writing the following script to K:\New Movies\Indiana Jones and the Last Crusade\agk_tmp\Indiana Jones and the Last Crusade_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("K:\New Movies\Indiana Jones and the Last Crusade\agk_tmp\Indiana Jones and the Last Crusade.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.42222222222222
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)
BicubicResize(out_width,out_height,0,0.5)
RemoveGrain(mode=2)
===========================================================
[08/08/2007 12:48:28] Duration was: 1 hour, 11 minutes 34 seconds
[08/08/2007 12:48:29] Speed was: 42.51 fps.
[08/08/2007 12:48:29] Expected quality of first pass size: 36.93%
[08/08/2007 12:48:29] Running second pass.
[08/08/2007 14:17:23] Duration was: 1 hour, 28 minutes 53 seconds
[08/08/2007 14:17:23] Speed was: 34.22 fps.
[08/08/2007 14:17:23] Splitting video into: K:\New Movies\Indiana Jones and the Last Crusade\Indiana Jones and the Last Crusade.cd1.avi
[08/08/2007 14:18:58] Splitting video into: K:\New Movies\Indiana Jones and the Last Crusade\Indiana Jones and the Last Crusade.cd2.avi
[08/08/2007 14:20:01] Job finished. Total time: 2 hours 58 minutes 0 seconds

CWR03
8th August 2007, 21:16
Uninstall Xvid, find and delete the xvid.ax and xvid.dll files, then reinstall Xvid.

sheislegend75
8th August 2007, 22:44
yep, what CWR03 said, but I suggest that with AGK, you install the xvid build that its packed with. just run the AGK installer and cancel everything but the xvid install (after deleting all other traces of xvid in your system). AGK gets fussy with alternative builds of xvid. The one you want is CVS 08/12/06.

Good luck! Let me know when you got it working ;) :D

darkwarrior
9th August 2007, 17:39
The Xvid removal and reinstall seems to have worked. Thanks guys.