Log in

View Full Version : Compressibility check problems


curna
10th January 2003, 16:33
Hi.

I'm trying to do a compressibility check using Virtualdubmod, Avisynth 2.5 alpha and GKnot 0.27.

I've already renamed Virtualdubmod to Virtualdub, but I still have problems.

When I try to run the compressibility check, Virtualdubmod crashes. Here is my log:


10/01/2003 16:26:25: Job "Gata sobre tejado" started.


Gordian Knot 0.27.0.13
Encoding Job Data:

Type: EncD5_First
Number: 2010404991
Name: Gata sobre tejado
Platform: WinXP (5.1.2600).2

Files:
VirtualDubExe: C:\PROGRA~1\GORDIA~1\virtualdub\Virtualdub.exe
NandubExe: C:\PROGRA~1\GORDIA~1\nandub\Nandub.exe
AviFinal: C:\PROGRA~1\GORDIA~1\_.avi
AviMovie: C:\PROGRA~1\GORDIA~1\__Movie.avi
AviCredits: C:\PROGRA~1\GORDIA~1\__Credits.avi
MovieFS: C:\PROGRA~1\GORDIA~1\LastCompCheck.avs
CreditsFS:
Log : _5_perc_D5_Bilinear_480x352.log
Stats: C:\Program Files\GordianKnot\LastCompCheck.stats
Ecf : C:\Program Files\GordianKnot\LastCompCheck.ecf
This is a Compressibility Check:
DivX5BiDirect: 0
DivX5GMC: 0
DivX5QuartPel: 0
DivX5PsyVis: 0
Resolution: 480 x 352

16:26:25: Audio 1, calc: 42574 kb
16:26:25: Audio 1, disabled, no recalc. - you probably want to add this track later.
16:26:25: Audio 2, calc: 42574 kb
16:26:25: Audio 2, disabled, no recalc. - you probably want to add this track later.

Adding this script to C:\PROGRA~1\GORDIA~1\virtualdub\VirtualDub.jobs:

// $job "DivX4 First Pass"
// $input "C:\PROGRA~1\GORDIA~1\LastCompCheck.avs"
// $output "C:\PROGRA~1\GORDIA~1\_.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("C:\\PROGRA~1\\GORDIA~1\\LastCompCheck.avs",0,0);
VirtualDub.audio.SetSource(0);
VirtualDub.audio.SetMode(0);
VirtualDub.audio.SetInterleave(1,0,0,0,0);
VirtualDub.audio.SetClipMode(1,1);
VirtualDub.audio.SetConversion(0,0,0,0,0);
VirtualDub.audio.SetVolume();
VirtualDub.audio.SetCompression();
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(1);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetRange(0,0);
VirtualDub.video.SetCompression(0x78766964,0,10000,0);
VirtualDub.video.SetCompData(356,"GAEAAACgjADQBwAACgAAABQAAAAsAQAAAgAAAAIAAAAFAAAAAgAAAJABAAAAAAAAAAAAAB4AAABkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAyAAAAAAAAAAAQAACamZmZmZnJP5qZmZmZmck/QAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAIACAADgAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOA/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAD/////BAAAAF81X3BlcmNfRDVfQmlsaW5lYXJfNDgweDM1Mi5sb2cAYzpcdGVzdC5kaXZ4AF81X3BlcmNfRDVfQmlsaW5lYXJfNDgweDM1Mi5tdgBt");
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("C:\\PROGRA~1\\GORDIA~1\\_.avi");
VirtualDub.Close();

// $endjob
//
//--------------------------------------------------
// $done

16:26:25: Started DivX5-First Pass: C:\PROGRA~1\GORDIA~1\LastCompCheck.avs
16:26:31: Finished DivX5-First Pass. Duration: 6 seconds.
16:26:31: Trying to open Log-file.
16:26:31: Error: Could not open _5_perc_D5_Bilinear_480x352.log
16:26:31: Error: Could not count encoded Frames.
16:26:31: Speed: 0.000 Frames per Second.

16:26:31: Done.
16:26:31: Log File = _5_perc_D5_Bilinear_480x352.log
Total Encoding Time: 6 seconds.
10/01/2003 16:26:31: Job "Gata sobre tejado" finished.
______________________________________________________________________




So, I tried to do it manually. I opened Vitualdubmod and I loaded "LastCompCheck.avs". I've configured the compression options to do a first pass with divx pro 5.02 and keep the log file.

In that case Virtualdubmod does the encoding. However, when I try to load the "log" file to GKnot 0.27, I get the following message:

"number of pixels per frame is not stored in a divx4 log file. The only save way to do a compressibility check is to use the "now" button in the "save avs" dialog."

My log file has this look:


##version 4
quality 5
bidirect 1
bidir_mult 2.000000
Frame 0: intra 1, quant 4, texture 14530, motion 0, total 14880, complexity 181625
Frame 0: intra 0, quant 4, texture 0, motion 0, total 8, complexity 0
Frame 1: intra 0, quant 4, texture 0, motion 0, total 728, complexity 0
Frame 2: intra 2, quant 4, texture 0, motion 0, total 67, complexity 0
Frame 3: intra 0, quant 4, texture 0, motion 0, total 728, complexity 0
Frame 4: intra 2, quant 4, texture 0, motion 0, total 67, complexity 0




What am I doing wrong ?? Any hint to be able to make a compressibility test ???

Thanks for any help

manono
10th January 2003, 18:21
Hi-

According to this Thread (http://forum.doom9.org/showthread.php?s=&threadid=42150), you can't use VDubMod for encoding from within GKnot yet. Maybe soon?

curna
11th January 2003, 00:01
Well, finally I think I managed to do it.

What I've seen is that the problem is with the name of the log. If the file has the name "divx.log" I cannot load it into GKnot, but if I put a name like "_4_perc_D5_Bilinear_480x352.log"(The nameGKnot will use by default), then I can load it.

jonny
11th January 2003, 14:08
The only requirement is that you put "_480x352.log" at the end of the file (i've made my tests long time ago :))
You can also try DivX5Enc, no problems with VDubMod

curna
11th January 2003, 15:40
You can also try DivX5Enc, no problems with VDubMod

Thanks, I will try it.


The only requirement is that you put "_480x352.log" at the end of the file (i've made my tests long time ago )

Well, and thanks again :D .

Just to short questions:

1- Then putting in the name "bilinear", "bicubic"... doesn't change in anyway the results.

2- When doing the compressibility test, do I have to change the quantizers ??? Will they affect the result of the compressibility check ?? When I encode I use a minimum quantizer of 2 and a maximum of 9, but I think that GKnot uses quantizers of 2(min) and 2(max) for the test. I think that's to know what's the maximum quality compression, bt I'm not sure.

jonny
11th January 2003, 15:49
1- Then putting in the name "bilinear", "bicubic"... doesn't change in anyway the results.

Yes

2- When doing the compressibility test, do I have to change the quantizers ??? Will they affect the result of the compressibility check ?? When I encode I use a minimum quantizer of 2 and a maximum of 9, but I think that GKnot uses quantizers of 2(min) and 2(max) for the test. I think that's to know what's the maximum quality compression, bt I'm not sure.

GKnot use bitrate=10000 & minquant=maxquant=2 (i think), anyway the idea is to maximize the size in comptest, so, if you run the first pass manually for comptest, the safest way is to set 10000, 2, 2.

curna
12th January 2003, 01:42
Thank you very much for the answer. You were very helpful.

dTb
14th January 2003, 05:41
You can still load a logfile named eg divx.log, you just select yes from that warning message. The thing is if you adjust the resolution and load it again it will load the same value as before. I just realised from what jonny said about adding the resolution to the name of the log that this will make gknot adjust this value taking into account the resolution used in the compt test and the current resolution in gknot.