PDA

View Full Version : AGK 2.15: AVI is very much undersized


Spreeni
16th August 2005, 09:34
Hi,

I used AGK 2.07 so far and now tried the actual 2.15. I encoded a movie, wich should have a final size about 1400 MB. But the size is always around 1000-1100 MB. This happens only with XVID-encoded files (1.1 beta2), not with DivX.
In the log there is a warning "No adjustment is possible" and "Warning: final AVI will likely be undersized". Again, Version 2.07 of AutoGK encodes the file with the same settings and the final size is o.k. Has anyone an idea, why this undersizing happens?

:thanks:, Frank


Here's the log:

[15.08.2005 18:56:17] AutoGK 2.15b
[15.08.2005 18:56:17] OS: WinXP (5.1.2600).2
[15.08.2005 18:56:17] Job started.
[15.08.2005 18:56:17] Input file: H:\DVD_VIDEO\VIDEO_TS\VTS_01_0.IFO
[15.08.2005 18:56:17] Output file: H:\final.avi
[15.08.2005 18:56:17] Output codec: XviD
[15.08.2005 18:56:17] Audio 1: Deutsch AC3 6ch
[15.08.2005 18:56:17] Subtitles: none
[15.08.2005 18:56:17] Format: .AVI
[15.08.2005 18:56:17] Target size: 1401Mb
[15.08.2005 18:56:17] Custom resolution settings: fixed width of 640 pixels
[15.08.2005 18:56:17] Custom audio settings: CBR MP3 with bitrate: 128Kbps
[15.08.2005 18:56:17] Started encoding.
[15.08.2005 18:56:17] Demuxing and indexing.
[15.08.2005 18:57:56] Processing file: H:\DVD_VIDEO\VIDEO_TS\VTS_01_PGC_01_1.VOB
[15.08.2005 18:57:56] Processing file: H:\DVD_VIDEO\VIDEO_TS\VTS_01_PGC_01_2.VOB
[15.08.2005 18:57:56] Processing file: H:\DVD_VIDEO\VIDEO_TS\VTS_01_PGC_01_3.VOB
[15.08.2005 18:57:56] Processing file: H:\DVD_VIDEO\VIDEO_TS\VTS_01_PGC_01_4.VOB
[15.08.2005 18:57:56] Source resolution: 720x576
[15.08.2005 18:57:56] Found PAL source.
[15.08.2005 18:57:56] Source aspect ratio: 16:9
[15.08.2005 18:57:56] Analyzing source.
[15.08.2005 19:01:43] Source has percentage of interlacing in motion areas: 0,00
[15.08.2005 19:01:43] Source is considered to be progressive.
[15.08.2005 19:01:43] Output will contain 153250 frames
[15.08.2005 19:01:43] Decoding audio.
[15.08.2005 19:04:19] Normalizing audio.
[15.08.2005 19:05:36] Encoding audio.
[15.08.2005 19:12:53] Audio1 size: 98,080,896 bytes (93.54 Mb)
[15.08.2005 19:12:53] Overhead: 1,819,904 bytes (1.74 Mb)
[15.08.2005 19:12:53] Video size: 1,369,154,176 bytes (1305.73 Mb)
[15.08.2005 19:12:53] Running compressibility test.
[15.08.2005 19:12:53] Writing the following script to H:\agk_tmp\final_comptest.avs
===========================================================
LoadPlugin("C:\PROGRA~1\_Video\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\_Video\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\_Video\AutoGK\filters\RemoveGrainSSE2.dll")

movie = mpeg2source("H:\agk_tmp\final.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 = 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)
===========================================================
[15.08.2005 19:17:16] Duration was: 4 minutes 22 seconds
[15.08.2005 19:17:16] Speed was: 29,19 fps.
[15.08.2005 19:17:16] Compressibility percentage is: 167,50
[15.08.2005 19:17:16] Switching b-frames off
[15.08.2005 19:17:16] Chosen resolution is: 640x272 ( AR: 2,35 )
[15.08.2005 19:17:16] Predicted comptest value is: 125,29
[15.08.2005 19:17:16] Running first pass.
[15.08.2005 19:17:16] Writing the following script to H:\agk_tmp\final_movie.avs
===========================================================
LoadPlugin("C:\PROGRA~1\_Video\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\_Video\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\_Video\AutoGK\filters\RemoveGrainSSE2.dll")

movie = mpeg2source("H:\agk_tmp\final.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 = 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)
===========================================================
[15.08.2005 20:03:05] Duration was: 45 minutes 48 seconds
[15.08.2005 20:03:05] Speed was: 55,75 fps.
[15.08.2005 20:03:06] Expected quality of first pass size: 116,50
[15.08.2005 20:03:06] Trying to adjust settings.
[15.08.2005 20:03:06] No adjustment is possible
[15.08.2005 20:03:06] Warning: final AVI will likely be undersized.
[15.08.2005 20:03:06] Running second pass.
[15.08.2005 21:17:16] Duration was: 1 hour, 14 minutes 10 seconds
[15.08.2005 21:17:17] Speed was: 34,44 fps.
[15.08.2005 21:17:17] Job finished. Total time: 2 hours 20 minutes 59 seconds

bourtzovlakas
16th August 2005, 12:41
...from the changelog of version 2.12 beta...
removed setting min quantizer of 1 in XviD to allow undersized files again (in case of maxed out movies)

This movie is maxed out...
Compressibility percentage is: 167,50
Switching b-frames off
Chosen resolution is: 640x272 ( AR: 2,35 )
Predicted comptest value is: 125,29

Try to use larger resolution...

Spreeni
17th August 2005, 10:08
Thanks bourtzovlakas,
I tried a bigger resolution, but the movie is still 250 MB under the expected size. Does "movie is maxed out" mean, that no better quality is possible and AGK 2.15 bewares of "wasting" diskspace?

Another example:
An mpeg2-file of a 45-minutes TV-documentation in full PAL-resolution should be converted to a 700 MB XVID. AGK 2.15 chooses a lower resolution but produces only a 460 MB file. In the log of this run there was nothing to read of "Warning... and movie undersized..." So what's up with this one, was it maxed out, too?

Here's the log of the TV-documentation:
[16.08.2005 17:27:53] AutoGK 2.15b
[16.08.2005 17:27:53] OS: WinXP (5.1.2600).2
[16.08.2005 17:27:53] Job started.
[16.08.2005 17:27:53] Input file: H:\mpeg-capture\Generation.Pop_4_Disco.und.Dauerlutscher.mpg
[16.08.2005 17:27:53] Output file: H:\mpeg-capture\Generation.Pop_4_Disco.und.Dauerlutscher.avi
[16.08.2005 17:27:53] Output codec: XviD
[16.08.2005 17:27:53] Audio 1: Audio Stream 0 MPEG
[16.08.2005 17:27:53] Subtitles: none
[16.08.2005 17:27:53] Format: .AVI
[16.08.2005 17:27:53] Target size: 700Mb
[16.08.2005 17:27:53] Custom resolution settings: minimum width of 640 pixels
[16.08.2005 17:27:53] Custom audio settings: CBR MP3 with bitrate: 128Kbps
[16.08.2005 17:27:53] Standalone support enabled: MTK/Sigma
[16.08.2005 17:27:53] Started encoding.
[16.08.2005 17:27:53] Demuxing and indexing.
[16.08.2005 17:28:52] Processing file: H:\mpeg-capture\Generation.Pop_4_Disco.und.Dauerlutscher.mpg
[16.08.2005 17:28:53] Source resolution: 720x576
[16.08.2005 17:28:53] Found PAL source.
[16.08.2005 17:28:53] Source aspect ratio: 4:3
[16.08.2005 17:28:53] Analyzing source.
[16.08.2005 17:30:57] Source has percentage of interlacing in motion areas: 64,95
[16.08.2005 17:30:57] Source is considered to be interlaced.
[16.08.2005 17:30:57] Output will contain 65517 frames
[16.08.2005 17:30:57] Encoding audio.
[16.08.2005 17:34:42] Picking up autocrop parameters.
[16.08.2005 17:34:42] Audio1 size: 41,932,032 bytes (39.99 Mb)
[16.08.2005 17:34:42] Overhead: 777,984 bytes (0.74 Mb)
[16.08.2005 17:34:42] Video size: 691,293,184 bytes (659.27 Mb)
[16.08.2005 17:34:42] Running compressibility test.
[16.08.2005 17:34:42] Writing the following script to H:\mpeg-capture\agk_tmp\Generation.Pop_4_Disco.und.Dauerlutscher_comptest.avs
===========================================================
LoadPlugin("C:\PROGRA~1\_Video\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\_Video\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\_Video\AutoGK\filters\RemoveGrainSSE2.dll")
LoadPlugin("C:\PROGRA~1\_Video\AutoGK\filters\kerneldeint.dll")

movie = mpeg2source("H:\mpeg-capture\agk_tmp\Generation.Pop_4_Disco.und.Dauerlutscher.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1.06666666666667
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
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
KernelDeInt(movie,order=1,sharp=true)
autocrop(mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
RemoveGrain(mode=2)
SelectRangeEvery(300,15)
===========================================================
[16.08.2005 17:37:43] Duration was: 3 minutes 0 seconds
[16.08.2005 17:37:43] Speed was: 18,13 fps.
[16.08.2005 17:37:43] Compressibility percentage is: 35,44
[16.08.2005 17:37:43] Using softer resizer.
[16.08.2005 17:37:43] Chosen resolution is: 640x480 ( AR: 1,33 )
[16.08.2005 17:37:43] Predicted comptest value is: 36,76
[16.08.2005 17:37:43] Running first pass.
[16.08.2005 17:37:43] Writing the following script to H:\mpeg-capture\agk_tmp\Generation.Pop_4_Disco.und.Dauerlutscher_movie.avs
===========================================================
LoadPlugin("C:\PROGRA~1\_Video\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\_Video\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\_Video\AutoGK\filters\RemoveGrainSSE2.dll")
LoadPlugin("C:\PROGRA~1\_Video\AutoGK\filters\kerneldeint.dll")

movie = mpeg2source("H:\mpeg-capture\agk_tmp\Generation.Pop_4_Disco.und.Dauerlutscher.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1.06666666666667
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
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
KernelDeInt(movie,order=1,sharp=true)
autocrop(mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
BicubicResize(out_width,out_height,0,0.5)
RemoveGrain(mode=2)
===========================================================
[16.08.2005 18:05:54] Duration was: 28 minutes 10 seconds
[16.08.2005 18:05:54] Speed was: 38,75 fps.
[16.08.2005 18:05:54] Expected quality of first pass size: 35,88
[16.08.2005 18:05:54] Running second pass.
[16.08.2005 18:51:23] Duration was: 45 minutes 28 seconds
[16.08.2005 18:51:23] Speed was: 24,01 fps.
[16.08.2005 18:51:23] Job finished. Total time: 1 hour, 23 minutes 30 seconds

bourtzovlakas
17th August 2005, 10:47
No...
The second movie is not maxed out...
Read the AutoGK FAQ: Q 6.3

Spreeni
18th August 2005, 10:51
Thanks again bourtzovlakas,
in deed reinstalling the codec was the solution. But one question is still left open for me: What does it exactly mean when a movie is "maxed out"? Is at that point the max. possible quality reached? Can someone explain that to me, please?

:thanks:

Axed
18th August 2005, 14:14
When you encode something using Mpeg-4, it has a certain limit on the bitrate it can throw into a file which is represented by the Quantisers. They work on a sliding scale, "1" being the highest quality, but highest file size to "31" being the lowest quality and smallest file size.

If your encoding an easily compressable movie or using a low bitrate matrix with a high filesize target, and its using Quantiser 1 the entire time, then the file cant get any bigger. Its putting all the bitrate it can into the movie, but the file size you gave it to aim for is to big its going to hit a "bitrate ceiling" for lack of a better term and therefore its "maxed out".

The ways around this "bitrate ceiling" are usually things like, not re-encoding the audio, making it 1 cd instead of 2, using a higher bitrate matrix such as 6of9-HVS.

I dont pretend to be an expert, so if you want more indepth knoweledge, ask one of the resident geniuses.

Spreeni
18th August 2005, 14:51
o.k., now it is more clearly to me, thank you Axed.

Axed
18th August 2005, 14:57
Search the XviD forum for a FAQ, i think it has a point about this matter in it. I cant remember the exact name of the FAQ, but it should answer any more question you have in proper (and understandable) terms.