Log in

View Full Version : GKnot/Divx5 not working.


DigDub
24th June 2002, 15:38
I'm following Doom9's guide on encoding Divx5 with GKnot. I'm using the pro version with adware removed using Doom9's method. I've also done the registry tweaks so that Divx3 videos can be played using the Divx3 filter. But the Divx5 encoding is not working. When encoding, Virtualdub doesn't seem to vary the bitrate. Instead, it encodes at a fairly consistent low bitrate on both passes, resulting in a very blocky video. I'm using Windows XP Professional. When using Divx3 to encode, it turns out fine.

Note the error at:
10:26:06 PM: Error: Could not open C:\Riptest\SPR\SPRDivx5_6.log

This file doesn't exist at all! The log file that is created by GKnot is SPRDivx5_6_GKnot.log in the same directory. Anyway, I tried doing only second pass using the SPRDivx5_6_GKnot.log file and it also turns out blocky cos the first pass is already screwed up. Where have I gone wrong? Thanks.


My log (the short time intervals are because I aborted them after about 600 frames from the beginning to test a short clip):
==============================================================
6/24/2002 10:25:42 PM: Job "Movie 1" started.

o DivX5-First Pass: C:\Riptest\SPR\SPRDivx5.avs
o DivX5-Second Pass: C:\Riptest\SPR\SPRDivx5.avs
x Mux Audio (disabled).
End of Job 1 (Movie 1).
_______________________________________________________________________________________________________________________

Gordian Knot 0.26.0.6
Encoding Job Data:

Type: EncD5_Both
Number: 1
Name: Movie 1
Platform: WinXP (5.1.2600).2

Files:
VirtualDubExe: K:\GKNOTD~1\GORDIA~1\virtualdub\Virtualdub.exe
NandubExe: K:\GKNOTD~1\GORDIA~1\nandub\Nandub.exe
AviFinal: C:\Riptest\SPR\SPRDivx5_6.avi
AviMovie: C:\Riptest\SPR\SPRDivx5_6_Movie.avi
AviCredits: C:\Riptest\SPR\SPRDivx5_6_Credits.avi
MovieFS: C:\Riptest\SPR\SPRDivx5.avs
CreditsFS:
Log : C:\Riptest\SPR\SPRDivx5_6.log
Stats: C:\Riptest\SPR\SPRDivx5_6.stats
Ecf : C:\Riptest\SPR\SPRDivx5_6.ecf

Options:
Quality/DRF: 0
CreditsStart: 233891
UseEcf: 1
CreditsIVTC: 0
CreditsAppend: 1
DeleteInterm.: 0
EnforceBitrate:0
AntiShit: 0

Calculator:
VideoSize: 1220055 kbyte.
Audio1Size: 198425 kbyte.
Audio2Size: 0 kbyte.
Overhead: 15357 kbyte.
AviSize: 1433837 kbyte (1400 mbyte).
FilesSize: 0 kbyte.
TotalSize: 1433837 kbyte (1400 mbyte).
Interleaving: vbrmp3
Bitrate: 983 k(=1000)Bits/s
Frames: 243767
FPS: 23.976
Duration: 2:49:27
Quality: 0.286 bits/(pixel*frame).
CompCheck3: 0.000 bits/(pixel*frame).
CompCheck5: 0.000 bits/(pixel*frame).
DivX5BiDirect: 1
DivX5GMC: 1
DivX5QuartPel: 1
DivX5PsyVis: 1
Resolution: 512 x 280

Audio 1:
none.

Audio 2:
none.

10:25:42 PM: Audio 1, calc: 198425 kb
10:25:42 PM: Audio 1, disabled, no recalc. - you probably want to add this track later.

Adding this script to K:\GKNOTD~1\GORDIA~1\virtualdub\VirtualDub.jobs:

// $job "DivX4 First Pass"
// $input "C:\Riptest\SPR\SPRDivx5.avs"
// $output "C:\Riptest\SPR\SPRDivx5_6.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("C:\\Riptest\\SPR\\SPRDivx5.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(352,"GAEAANj/DgDQBwAACgAAABQAAAAsAQAADAAAAAIAAAAFAAAAAgAAAJABAAAAAAAAAAAAAB4AAABkAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAQAAAAAgAAAyAAAAAQAAAAAQAACamZmZmZnJP5qZmZmZmck/QAAAAAEAAACAAAAAAAAAAAAAAAAAAAAAAAAAAIACAADgAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOA/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAD/////BAAAAEM6XFJpcHRlc3RcU1BSXFNQUkRpdng1XzYubG9nAGM6XHRlc3QuZGl2eABDOlxSaXB0ZXN0XFNQUlxTUFJEaXZ4NV82Lm12AG0=");
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("C:\\Riptest\\SPR\\SPRDivx5_6.avi");
VirtualDub.Close();

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

10:25:42 PM: Started DivX5-First Pass: C:\Riptest\SPR\SPRDivx5.avs
10:26:06 PM: Finished DivX5-First Pass. Duration: 23 seconds.
10:26:06 PM: Trying to open Log-file.
10:26:06 PM: Error: Could not open C:\Riptest\SPR\SPRDivx5_6.log
10:26:06 PM: Error: Could not count encoded Frames.
10:26:06 PM: Speed: 0.000 Frames per Second.
10:26:06 PM: WARNING: Number of counted frames differs from settings!
10:26:06 PM: WARNING: Settings: 243767
10:26:06 PM: WARNING: Counted: 0
10:26:06 PM: WARNING: Difference: 243767
10:26:06 PM: Correcting Bitrate...
10:26:06 PM: Original Bitrate = 983 k(=1000)Bits/s
10:26:06 PM: ERROR: Correction impossible.
10:26:06 PM: Now encoding at 983 k(=1000)Bits/s

Adding this script to K:\GKNOTD~1\GORDIA~1\virtualdub\VirtualDub.jobs:

// $job "DivX4 Second Pass"
// $input "C:\Riptest\SPR\SPRDivx5.avs"
// $output "C:\Riptest\SPR\SPRDivx5_6.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("C:\\Riptest\\SPR\\SPRDivx5.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(352,"GAEAANj/DgDQBwAACgAAABQAAAAsAQAADAAAAAIAAAAFAAAAAwAAAJABAAAAAAAAAAAAAB4AAABkAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAQAAAAAgAAAyAAAAAQAAAAAQAACamZmZmZnJP5qZmZmZmck/QAAAAAEAAACAAAAAAAAAAAAAAAAAAAAAAAAAAIACAADgAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOA/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAD/////BAAAAEM6XFJpcHRlc3RcU1BSXFNQUkRpdng1XzYubG9nAGM6XHRlc3QuZGl2eABDOlxSaXB0ZXN0XFNQUlxTUFJEaXZ4NV82Lm12AG0=");
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("C:\\Riptest\\SPR\\SPRDivx5_6.avi");
VirtualDub.Close();

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

10:26:06 PM: Started DivX5-Second Pass: C:\Riptest\SPR\SPRDivx5.avs
10:26:28 PM: Finished DivX5-Second Pass. Duration: 22 seconds.
10:26:28 PM: Speed: 0.000 Frames per Second.

Adding this script to K:\GKNOTD~1\GORDIA~1\virtualdub\VirtualDub.jobs:

// $job "DivX4 Append"
// $input "C:\Riptest\SPR\SPRDivx5_6_Movie.avi"
// $output "C:\Riptest\SPR\SPRDivx5_6.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("C:\\Riptest\\SPR\\SPRDivx5_6_Movie.avi",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(0);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetRange(0,0);
VirtualDub.video.SetCompression();
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("C:\\Riptest\\SPR\\SPRDivx5_6.avi");
VirtualDub.Close();

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

10:26:28 PM: Started Appending Credits: C:\Riptest\SPR\SPRDivx5_6_Movie.avi
10:26:28 PM: Finished Appending Credits. Duration: 0 seconds.

10:26:28 PM: Done.
10:26:28 PM: Movie = C:\Riptest\SPR\SPRDivx5_6.avi
Total Encoding Time: 46 seconds.
6/24/2002 10:26:28 PM: Job "Movie 1" finished.
_______________________________________________________________________________________________________________________

Acaila
24th June 2002, 18:01
This question belongs in the GKnot section, so I've moved it there.

As for question, GKnot seems to use this log:
"Log : C:\Riptest\SPR\SPRDivx5_6.log"
It says so in the beginning, and later it tries to call it again when it's actually using it.

You could try openening VirtualDub and clearing the logfile entry in there to reset GKnot. Now try to encode again.

If this doesn't help, I'm sure someone in the GKnot forum can help you.

khp
25th June 2002, 01:23
10:25:42 PM: Started DivX5-First Pass: C:\Riptest\SPR\SPRDivx5.avs
10:26:06 PM: Finished DivX5-First Pass. Duration: 23 seconds.


OK the first pass failed completly, thats why the C:\Riptest\SPR\SPRDivx5_6.log, was never created. The file is supposed to contain the log file that codec creates in the first pass. While the file C:\Riptest\SPR\SPRDivx5_6_GKnot.log is the execution log that GKnot creates.

Are you sure you got divx5.02 installed ?

Try loading the C:\Riptest\SPR\SPRDivx5.avs into virtualdub, select video->compression->divx5.02, set it to two pass first pass, and save that.

DigDub
25th June 2002, 01:36
OK. I think Divx5 is not installed after all, because I can't see it in the list of video compressors in Virtualdub. But I have followed the guide. Maybe I'll try to uninstall and install it again.