PDA

View Full Version : 2.08b auto-resolution func. different than 2.07b?


Spreeni
8th May 2005, 13:54
Hi,
I've noticed a different behavior of the auto-resolution function in 2.08 beta. For example, a 55 min. mpeg-PAL-file ist reduced to 592x448 at 700 MB size. With output size is set to 800 MB the resolution is reduced to 560x416. This is strange, because the resolution should be higher at a higher bitrate. This happens in compatibility-mode with both, MTK/Sigma and ESS chipsets.
The 2.07b-version (with ESS-Support) choose the 560x416 resolution for an 700MB file and rises it up the higher the output size is set.

Here are parts of the log-files: AGK @ 700 MB and 800 MB output size


[08.05.2005 11:11:23] AutoGK 2.08b
[08.05.2005 11:11:23] OS: WinXP (5.1.2600).2
[08.05.2005 11:11:23] Job started.
[08.05.2005 11:11:23] Input file: Evolution-Intelligenz.mpg
[08.05.2005 11:11:23] Output file: H:\mpeg-capture\208_custom700.avi
[08.05.2005 11:11:23] Output codec: XviD
[08.05.2005 11:11:23] Audio1: Audio Stream 0 MPEG
[08.05.2005 11:11:23] Subtitles: none
[08.05.2005 11:11:23] Format: .AVI
[08.05.2005 11:11:23] Target size: 700Mb
[08.05.2005 11:11:23] Custom audio settings: CBR MP3 with bitrate: 128Kbps
[08.05.2005 11:11:23] Standalone support enabled: MTK/Sigma
[08.05.2005 11:11:23] Started encoding.
[08.05.2005 11:11:23] Demuxing and indexing.
[08.05.2005 11:13:30] Processing file: H:\mpeg-capture\Evolution-Intelligenz.mpg
[08.05.2005 11:13:30] Source aspect ratio: 4:3
[08.05.2005 11:13:30] Source resolution: 720x576
[08.05.2005 11:13:30] Found PAL source.
[08.05.2005 11:13:30] Analyzing source.
[08.05.2005 11:15:47] Source has percentage of interlacing in motion areas: 37,24
[08.05.2005 11:15:47] Source is considered to be interlaced.
[08.05.2005 11:15:47] Output will contain 82732 frames
[08.05.2005 11:15:47] Encoding audio.
[08.05.2005 11:20:08] Picking up autocrop parameters.
[08.05.2005 11:20:08] Audio1 size: 52,949,760 bytes (50.50 Mb)
[08.05.2005 11:20:08] Overhead: 982,400 bytes (0.94 Mb)
[08.05.2005 11:20:08] Video size: 680,071,040 bytes (648.57 Mb)
[08.05.2005 11:20:08] Running compressibility test.
[08.05.2005 11:20:08] Writing the following script to H:\mpeg-capture\agk_tmp\208_custom700_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\208_custom700.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)
===========================================================
[08.05.2005 11:23:59] Duration was: 3 minutes 50 seconds
[08.05.2005 11:23:59] Speed was: 17,93 fps.
[08.05.2005 11:23:59] Compressibility percentage is: 60,85
[08.05.2005 11:23:59] Chosen resolution is: 592x448 ( AR: 1,32 )
[08.05.2005 11:23:59] Predicted comptest value is: 70,48
[08.05.2005 11:23:59] Running first pass.
[08.05.2005 11:23:59] Writing the following script to H:\mpeg-capture\agk_tmp\208_custom700_movie.avs





[08.05.2005 12:10:09] AutoGK 2.08b
[08.05.2005 12:10:09] OS: WinXP (5.1.2600).2
[08.05.2005 12:10:09] Job started.
[08.05.2005 12:10:09] Input file: Evolution-Intelligenz.mpg
[08.05.2005 12:10:09] Output file: H:\mpeg-capture\208_custom800.avi
[08.05.2005 12:10:09] Output codec: XviD
[08.05.2005 12:10:09] Audio1: Audio Stream 0 MPEG
[08.05.2005 12:10:09] Subtitles: none
[08.05.2005 12:10:09] Format: .AVI
[08.05.2005 12:10:09] Target size: 800Mb
[08.05.2005 12:10:09] Custom audio settings: CBR MP3 with bitrate: 128Kbps
[08.05.2005 12:10:09] Standalone support enabled: MTK/Sigma
[08.05.2005 12:10:09] Started encoding.
[08.05.2005 12:10:09] Demuxing and indexing.
[08.05.2005 12:11:22] Processing file: H:\mpeg-capture\Evolution-Intelligenz.mpg
[08.05.2005 12:11:22] Source aspect ratio: 4:3
[08.05.2005 12:11:22] Source resolution: 720x576
[08.05.2005 12:11:22] Found PAL source.
[08.05.2005 12:11:22] Analyzing source.
[08.05.2005 12:13:40] Source has percentage of interlacing in motion areas: 37,24
[08.05.2005 12:13:40] Source is considered to be interlaced.
[08.05.2005 12:13:40] Output will contain 82732 frames
[08.05.2005 12:13:40] Encoding audio.
[08.05.2005 12:18:05] Picking up autocrop parameters.
[08.05.2005 12:18:05] Audio1 size: 52,949,760 bytes (50.50 Mb)
[08.05.2005 12:18:05] Overhead: 982,400 bytes (0.94 Mb)
[08.05.2005 12:18:05] Video size: 784,928,640 bytes (748.57 Mb)
[08.05.2005 12:18:05] Running compressibility test.
[08.05.2005 12:18:05] Writing the following script to H:\mpeg-capture\agk_tmp\208_custom800_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\208_custom800.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 = 704
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)
===========================================================
[08.05.2005 12:22:49] Duration was: 4 minutes 43 seconds
[08.05.2005 12:22:49] Speed was: 14,57 fps.
[08.05.2005 12:22:49] Compressibility percentage is: 44,26
[08.05.2005 12:22:49] Chosen resolution is: 560x416 ( AR: 1,35 )
[08.05.2005 12:22:49] Predicted comptest value is: 70,63
[08.05.2005 12:22:49] Running first pass.
[08.05.2005 12:22:49] Writing the following script to H:\mpeg-capture\agk_tmp\208_custom800_movie.avs

Spreeni
8th May 2005, 17:23
After a few more tests I only noticed this behavior by using the xvid-codec (the modified one coming with the 2.08b update). Although it made no difference using or not using the new compatibility option. I think the reason for the strange resolution-behavior could be the modified xvid-codec of the 2.08b package. What do you think?

woah!
9th May 2005, 03:24
i have gone back to 2.07b because it gave me perfect DXN avi's that played great on my rjtech800. but with the MTK option on in the 2.08b version, it gives me blocky playback on the standalone? it seems to be using a custom matrix, which i dont think is right either, but i cant fiqure it out so i have gone back to 2.07 and no issues with the same encode.

heres the info on both encodes:

ESS option ON

Packed bitstream: No
QPel: No
GMC: No
Interlaced: No
Aspect ratio: Square pixels
Quant type: MPEG Custom

Custom intra matrix:
8 9 10 11 12 14 16 18
9 11 12 13 15 16 18 20
10 12 14 16 17 19 21 22
11 13 16 18 20 22 24 26
12 15 17 20 23 25 28 30
14 16 19 22 25 29 34 38
16 18 21 24 28 34 46 52
18 20 22 26 30 38 52 72

Custom inter matrix:
16 16 17 17 18 19 21 23
16 17 17 18 19 20 22 24
17 17 19 20 21 23 24 27
17 18 20 22 24 25 28 32
18 19 21 24 26 29 36 40
19 20 23 25 29 40 48 52
21 22 24 28 36 48 60 64
23 24 27 32 40 52 64 106

I-VOPs: 28 (1.87%)
P-VOPs: 754 (50.27%)
B-VOPs: 718 (47.87%)
S-VOPs: 0 (0.00%)
N-VOPs: 0 (0.00%)

Max consecutive B-VOPs: 1


blocky playback.

===============================================

MTK option ON

Packed bitstream: No
QPel: No
GMC: No
Interlaced: No
Aspect ratio: Square pixels
Quant type: H.263

I-VOPs: 28 (1.87%)
P-VOPs: 1472 (98.13%)
B-VOPs: 0 (0.00%)
S-VOPs: 0 (0.00%)
N-VOPs: 0 (0.00%)

blocky playback.

===============================================


2.07b with the DXN xvid codec version


Packed bitstream: Yes
QPel: No
GMC: No
Interlaced: No
Aspect ratio: Square pixels
Quant type: H.263

I-VOPs: 28 (1.87%)
P-VOPs: 756 (50.37%)
B-VOPs: 717 (47.77%)
S-VOPs: 0 (0.00%)
N-VOPs: 0 (0.00%)

Max consecutive B-VOPs: 1


this one works perfect on my standalone.

===============================================

the xvid codec i use is the one that gives a tick option for "Strict conformance to DXN profile standard" and gives a XviD0038 code in Mpeg4 modifier.

http://server3.uploadit.org/files/bubbaray-dxn.jpg

i am gonna stick with the above setup i think as i have had no issues with any encodes since using it.

Spreeni
9th May 2005, 12:27
Oh, I didn't know that I can configure the codec myself, I thought autogk uses its own xvid-options and overwrites custom configs. This will be a playground for more tests, thank you for that information. By the way, wich xvid-version do you use? I can't find this "strict conformance to..." option in my 1.1 beta 2.

BigDid
9th May 2005, 19:35
Originally posted by Spreeni
Oh, I didn't know that I can configure the codec myself, I thought autogk uses its own xvid-options and overwrites custom configs. This will be a playground for more tests, thank you for that information. By the way, wich xvid-version do you use? I can't find this "strict conformance to..." option in my 1.1 beta 2.
Hello Spreeni,
I suppose you still can't configure the codec
Since including the xvid 1.1, AGK uses the "unrestricted" profile unless you activate one of the two SAP options:
either ess --> DXN HT profile
or mtk --> MTK profile
If AGK has changed it's behaviour pls let us know :)

Concerning the "strict conformance to" it seems not to be the standard GUI for the encoder ...

DId

woah!
10th May 2005, 00:47
Originally posted by BigDid
Hello Spreeni,
I suppose you still can't configure the codec
Since including the xvid 1.1, AGK uses the "unrestricted" profile unless you activate one of the two SAP options:
either ess --> DXN HT profile
or mtk --> MTK profile
If AGK has changed it's behaviour pls let us know :)

Concerning the "strict conformance to" it seems not to be the standard GUI for the encoder ...

DId


i got this xvid pack from a thread here a while back,and i cant remember which. it was to do with the DXN compatability and someone posted a link to this modified version and i have had great success with it since then on my rjtech800 which uses a MTK1389 chipset.

i can upload the xvid.inf/xvidcore.dll/xvidvfw.dll files so you can have a look at them and maybe figure out who made it as i cant now.


this pack doesnt work with 2.08b as the settings are over-riden but not with 2.07b

files are below:

http://rapidshare.de/files/1669623/xvidDXN.rar.html

bourtzovlakas
10th May 2005, 00:53
Read the changelog of 2.08 beta....
new XviD VFW dll packaged for MTK/Sigma chipset support (use only bundled version of XviD to be able to use that option)

woah!
10th May 2005, 02:04
Originally posted by bourtzovlakas
Read the changelog of 2.08 beta....

i did and the results above are from using that version.

i had to go back to the version above along with 2.07b to get back to having working standalone avi's.

with the packed version codec and 2.08b i get blocky playback (very small squares) and with 2.07b and my xvid version above with the same encode no blocks.

its probably a problem my end, but if it works with 2.07 i will just stick with it and be happy :)

BigDid
11th May 2005, 08:19
Hi,

Just a few lines concerning auto-resolution, I tested same source with clean AGK 2.08 install: size 560*304, predicted 58.99; no MTK or ESS.
Changed AGK 2.08 to 2.07 (just the prog, not the install) same results: 560*304, predicted 59.00, first pass 62.19
The resolution problem could probably be narrowed to the ESS or MTK options ...

Did