PDA

View Full Version : Gordian Knot very very slow! Why?


EmreBelozoglu
16th June 2003, 18:22
Hi.
I'm an italian user. Excuse for my english.

I use Gordian Knot to backup (with DivX 5.02 codec) my DVD

This is the procedure to create a backup copy of my dvd:

1. Ripping
2. *.d2v file creation with DVD2AVI
3. Set the parameters of output video (resolution; cd number; etc.) in the Bitrate Tab and in the Resolution Tab.
4. I select Save&Encode in the preview window of .d2v file.
5. I set the parameters in this window
6. I click on Save&Encode button

After this step the process becomes very slow.

After about 3 minutes VirtualDubMod started and it processes the video at very low fps: 12.0 or lower.

I installed this files:
GordianKnot.RipPack.0.28..3.Setup.exe
GordianKnot.RipPack.0.28.4.Beta.Update.Setup.exe
GordianKnot.CodecPack.1.2.exe

Why the compression job is very (very very very...) slow?

Using FlaskMPEG the fps are about 25!

This is my hardware:
CPU AMD Athlon 1400+
RAM 512Mb
HD 40Gb
Video Card TNT 32Mb
Audio Card Creative Live 5.1
DVD Reader LG 16x/48x
Yamaha CD Writer 20x/10x/40x
Pinnacle Studio Deluxe
Monitor 19" LG
Scanner Nortek A4
Laser Printer Samsung ML1210

System is: win2k pro

Thanks!

stax76
16th June 2003, 19:10
there must be something different with your settings, more then twice faster is to much

jggimi
16th June 2003, 21:51
If you select noise reduction filters, your encodings will s l o w w a y d o w n .

Can you post your .avs script and your _Gknot.log?

EmreBelozoglu
17th June 2003, 10:29
This is the .avs file:

#
# Created with Gordian Knot
#
# http://gknot.doom9.org
#
# PLUGINS
SetWorkingDir("C:\Programmi\Gordian Knot\")
LoadPlugin("mpeg2dec.dll")
#LoadPlugin("decomb.dll")
#LoadPlugin("Convolution3d.dll")
#LoadPlugin("FluxSmooth.dll")
#LoadPlugin("TomsMoComp.dll")
#LoadPlugin("VSFilter.dll")
#LoadPlugin("SimpleResize.dll")
#
# SOURCE
mpeg2source("D:\DVD1\colpa\colpa.d2v")
#
# TRIM
trim(0,163961)
#
# IVTC
#Telecide(guide=1).Decimate(5)
# or use
#IVTC(44,11,95)
#GreedyHMA(1,0,4,0,0,0,0,0)
#
# DEINTERLACING (1)
#FieldDeinterlace()
#FieldDeinterlace(blend=false)
#TomsMoComp(1,5,1)
#
# CROPPING
crop(0,0,720,576)
#
# DEINTERLACING (2)
#SeparateFields().SelectEven()
# or maybe
#Bob().SelectEven()
# DEINTERLACING (3) - special requests
#GreedyHMA(1,0,0,0,0,0,0,0)
#Telecide()
#SeparateFields()
#
#
# SUBTITLES
#VobSub("FileName")
#
# RESIZING
LanczosResize(512,280)
#
# DENOISING: choose one combination (or none)
# 1) little noise
#Temporalsoften(2,3,3,mode=2,scenechange=6)
#mergechroma(blur(1.3))
#FluxSmooth(5,7)
#
# 2) medium noise
#Temporalsoften(3,5,5,mode=2,scenechange=10)
#Convolution3d("moviehq")
#FluxSmooth(7,7)
#
# 3) heavy noise
#Temporalsoften(4,8,8,mode=2,scenechange=10)
#Convolution3d("movielq")
#FluxSmooth(10,15)
#
# BORDERS
#AddBorders(left,top,right,bottom)
#
# COMPRESSIBILITY CHECK
# !!!!Snip Size now has to be 14 for use in GKnot!
#SelectRangeEvery(280,14)
#
# FOOL CCEnc
#ResampleAudio(44100)


I deleted the .log file, but I will create it to post.

jeremymacmull
17th June 2003, 13:07
There is a simple way that i solved it

go to virtualdub mod and go to the preferences menu there u get options like default process priority etc

dont worry about that the only one u need is make sure it is set to fast recompress rather than full processing

then on the next page enable 16 bit dithering and disable view input output windows as these slows things down

hope this helps

JEREMY

EmreBelozoglu
17th June 2003, 13:14
Originally posted by jeremymacmull
There is a simple way that i solved it

go to virtualdub mod and go to the preferences menu there u get options like default process priority etc

dont worry about that the only one u need is make sure it is set to fast recompress rather than full processing

then on the next page enable 16 bit dithering and disable view input output windows as these slows things down

hope this helps

JEREMY
Thanks!




I tried to encode a 7min 44s video:
1) First attempt.
this is .avs file:

#
# Created with Gordian Knot
#
# http://gknot.doom9.org
#
# PLUGINS
SetWorkingDir("C:\Programmi\Gordian Knot\")
LoadPlugin("mpeg2dec3.dll")
# SOURCE
mpeg2source("D:\DVD1\test\test.d2v")
# CROPPING
crop(2,0,716,576)
# RESIZING
BilinearResize(512,282)



and this is Gordian Knot log


17/06/2003 11.23.06: Job "1" started.

o DivX5-First Pass: D:\DVD1\test\test.avs
o DivX5 - Pass 2: D:\DVD1\test\test.avs
x Mux Audio (disabled).
End of Job 1 (1).
_______________________________________________________________________________________________________________________

Gordian Knot -
Encoding Job Data:

Type: EncD5_All
Number: 1
Name: 1
Platform: Win2000 (5.0.2195).2

Files (
VirtualDubModExe: C:\PROGRA~1\GORDIA~1\VirtualDubMod\VirtualDubMod.exe
NandubExe: C:\PROGRA~1\GORDIA~1\nandub\Nandub.exe
AviFinal: D:\DVD1\test\test.avi
AviMovie: D:\DVD1\test\test_Movie.avi
AviCredits: D:\DVD1\test\test_Credits.avi
MovieFS: D:\DVD1\test\test.avs
CreditsFS:
Log : D:\DVD1\test\test.log
Stats: D:\DVD1\test\test.stats
Ecf : D:\DVD1\test\test.ecf

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

Calculator:
VideoSize: 97280 kbyte.
Audio1Size: 0 kbyte.
Audio2Size: 0 kbyte.
Overhead: 0 kbyte.
AviSize: 97280 kbyte (95 mbyte).
FilesSize: 0 kbyte.
TotalSize: 97280 kbyte (95 mbyte).
Interleaving:
Bitrate 1714 k(=1000)Bits/s
Frames: 11624
FPS: 25.000
Duration: 07:45
Quality: 0.475 bits/(pixel*frame).
CompCheck3 0.000 bits/(pixel*frame).
CompCheck5 0.000 bits/(pixel*frame).
Resolution: 512 x 282

Audio 1:
none.

Audio 2:
none.


Adding this script to C:\PROGRA~1\GORDIA~1\VirtualDubMod\LastJob.vcf :

// $job "DivX5-First Pass"
// $input "D:\DVD1\test\test.avs"
// $output "D:\DVD1\test\test.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("D:\\DVD1\\test\\test.avs",0,0);
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.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("D:\\DVD1\\test\\test.avi");
VirtualDub.Close();

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

11.23.06: Started DivX5-First Pass: D:\DVD1\test\test.avs
11.44.39: Finished DivX5-First Pass: Duration: 21 minutes, 33 seconds.
11.44.39: Trying to open Log-file.
11.44.39: Success: Log-file open.
11.44.39: Encoded: 11624 Frames.
11.44.39: Speed: 8.988 Frames per Second.

Adding this script to C:\PROGRA~1\GORDIA~1\VirtualDubMod\LastJob.vcf :

// $job "DivX5-Second Pass"
// $input "D:\DVD1\test\test.avs"
// $output "D:\DVD1\test\test.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("D:\\DVD1\\test\\test.avs",0,0);
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.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("D:\\DVD1\\test\\test.avi");
VirtualDub.Close();

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

11.44.39: Started DivX5 - Pass: 2: D:\DVD1\test\test.avs
12.03.30: Finished DivX5 - Pass: 2: Duration: 18 minutes, 50 seconds.
12.03.30: Speed: 10.282 Frames per Second.

12.03.30: Done.
12.03.30: Movie = D:\DVD1\test\test.avi
Total Encoding Time: 40 minutes, 24 seconds.
17/06/2003 12.03.30: Job "1" finished.
_______________________________________________________________________________________________________________________





2)Second attempt

this is .avs file:


#
# Created with Gordian Knot
#
# http://gknot.doom9.org
#
# PLUGINS
SetWorkingDir("C:\Programmi\Gordian Knot\")
LoadPlugin("mpeg2dec3.dll")
# SOURCE
mpeg2source("D:\DVD1\test2\test.d2v")
# CROPPING
crop(2,0,716,576)
# RESIZING
LanczosResize(512,282)


and this is Gordian log



17/06/2003 12.27.42: Job "1" started.

o DivX5-First Pass: D:\DVD1\test2\test2.avs
o DivX5 - Pass 2: D:\DVD1\test2\test2.avs
x Mux Audio (disabled).
End of Job 1 (1).
_______________________________________________________________________________________________________________________

Gordian Knot -
Encoding Job Data:

Type: EncD5_All
Number: 1
Name: 1
Platform: Win2000 (5.0.2195).2

Files (
VirtualDubModExe: C:\PROGRA~1\GORDIA~1\VirtualDubMod\VirtualDubMod.exe
NandubExe: C:\PROGRA~1\GORDIA~1\nandub\Nandub.exe
AviFinal: D:\DVD1\test2\test2.avi
AviMovie: D:\DVD1\test2\test2_Movie.avi
AviCredits: D:\DVD1\test2\test2_Credits.avi
MovieFS: D:\DVD1\test2\test2.avs
CreditsFS:
Log : D:\DVD1\test2\test2.log
Stats: D:\DVD1\test2\test2.stats
Ecf : D:\DVD1\test2\test2.ecf

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

Calculator:
VideoSize: 102400 kbyte.
Audio1Size: 0 kbyte.
Audio2Size: 0 kbyte.
Overhead: 0 kbyte.
AviSize: 102400 kbyte (100 mbyte).
FilesSize: 0 kbyte.
TotalSize: 102400 kbyte (100 mbyte).
Interleaving: disabled
Bitrate 1804 k(=1000)Bits/s
Frames: 11624
FPS: 25.000
Duration: 07:45
Quality: 0.500 bits/(pixel*frame).
CompCheck3 0.000 bits/(pixel*frame).
CompCheck5 0.000 bits/(pixel*frame).
Resolution: 512 x 282

Audio 1:
none.

Audio 2:
none.


Adding this script to C:\PROGRA~1\GORDIA~1\VirtualDubMod\LastJob.vcf :

// $job "DivX5-First Pass"
// $input "D:\DVD1\test2\test2.avs"
// $output "D:\DVD1\test2\test2.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("D:\\DVD1\\test2\\test2.avs",0,0);
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.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("D:\\DVD1\\test2\\test2.avi");
VirtualDub.Close();

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

12.27.42: Started DivX5-First Pass: D:\DVD1\test2\test2.avs
12.48.38: Finished DivX5-First Pass: Duration: 20 minutes, 55 seconds.
12.48.38: Trying to open Log-file.
12.48.38: Success: Log-file open.
12.48.38: Encoded: 11624 Frames.
12.48.38: Speed: 9.256 Frames per Second.

Adding this script to C:\PROGRA~1\GORDIA~1\VirtualDubMod\LastJob.vcf :

// $job "DivX5-Second Pass"
// $input "D:\DVD1\test2\test2.avs"
// $output "D:\DVD1\test2\test2.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("D:\\DVD1\\test2\\test2.avs",0,0);
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.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("D:\\DVD1\\test2\\test2.avi");
VirtualDub.Close();

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

12.48.38: Started DivX5 - Pass: 2: D:\DVD1\test2\test2.avs
13.09.13: Finished DivX5 - Pass: 2: Duration: 20 minutes, 35 seconds.
13.09.13: Speed: 9.407 Frames per Second.

13.09.13: Done.
13.09.13: Movie = D:\DVD1\test2\test2.avi
Total Encoding Time: 41 minutes, 31 seconds.
17/06/2003 13.09.13: Job "1" finished.
_______________________________________________________________________________________________________________________



You can see that encoding time is about 40 minutes.
Gordian is very slow.

I will try with jeremymacmull settings.

Thanks!

EmreBelozoglu
17th June 2003, 14:11
I have tested the settings that jeremy suggests,
but the encoding time is not improved.

This is the .avs

#
# Created with Gordian Knot
#
# http://gknot.doom9.org
#
# PLUGINS
SetWorkingDir("C:\Programmi\Gordian Knot\")
LoadPlugin("mpeg2dec3.dll")
# SOURCE
mpeg2source("D:\DVD1\test3\test.d2v")
# CROPPING
crop(2,0,716,576)
# RESIZING
LanczosResize(512,282)


and this is the Gordian Log


17/06/2003 13.32.26: Job "1" started.

o DivX5-First Pass: D:\DVD1\test3\test.avs
o DivX5 - Pass 2: D:\DVD1\test3\test.avs
x Mux Audio (disabled).
End of Job 1 (1).
_______________________________________________________________________________________________________________________

Gordian Knot -
Encoding Job Data:

Type: EncD5_All
Number: 1
Name: 1
Platform: Win2000 (5.0.2195).2

Files (
VirtualDubModExe: C:\PROGRA~1\GORDIA~1\VirtualDubMod\VirtualDubMod.exe
NandubExe: C:\PROGRA~1\GORDIA~1\nandub\Nandub.exe
AviFinal: D:\DVD1\test3\test.avi
AviMovie: D:\DVD1\test3\test_Movie.avi
AviCredits: D:\DVD1\test3\test_Credits.avi
MovieFS: D:\DVD1\test3\test.avs
CreditsFS:
Log : D:\DVD1\test3\test.log
Stats: D:\DVD1\test3\test.stats
Ecf : D:\DVD1\test3\test.ecf

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

Calculator:
VideoSize: 102119 kbyte.
Audio1Size: 0 kbyte.
Audio2Size: 0 kbyte.
Overhead: 281 kbyte.
AviSize: 102400 kbyte (100 mbyte).
FilesSize: 0 kbyte.
TotalSize: 102400 kbyte (100 mbyte).
Interleaving:
Bitrate 1799 k(=1000)Bits/s
Frames: 11624
FPS: 25.000
Duration: 07:45
Quality: 0.498 bits/(pixel*frame).
CompCheck3 0.000 bits/(pixel*frame).
CompCheck5 0.000 bits/(pixel*frame).
Resolution: 512 x 282

Audio 1:
none.

Audio 2:
none.


Adding this script to C:\PROGRA~1\GORDIA~1\VirtualDubMod\LastJob.vcf :

// $job "DivX5-First Pass"
// $input "D:\DVD1\test3\test.avs"
// $output "D:\DVD1\test3\test.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("D:\\DVD1\\test3\\test.avs",0,0);
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.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("D:\\DVD1\\test3\\test.avi");
VirtualDub.Close();

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

13.32.26: Started DivX5-First Pass: D:\DVD1\test3\test.avs
13.52.28: Finished DivX5-First Pass: Duration: 20 minutes, 1 second.
13.52.28: Trying to open Log-file.
13.52.28: Success: Log-file open.
13.52.28: Encoded: 11624 Frames.
13.52.28: Speed: 9.672 Frames per Second.

Adding this script to C:\PROGRA~1\GORDIA~1\VirtualDubMod\LastJob.vcf :

// $job "DivX5-Second Pass"
// $input "D:\DVD1\test3\test.avs"
// $output "D:\DVD1\test3\test.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("D:\\DVD1\\test3\\test.avs",0,0);
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.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("D:\\DVD1\\test3\\test.avi");
VirtualDub.Close();

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

13.52.28: Started DivX5 - Pass: 2: D:\DVD1\test3\test.avs
14.12.53: Finished DivX5 - Pass: 2: Duration: 20 minutes, 24 seconds.
14.12.53: Speed: 9.491 Frames per Second.

14.12.53: Done.
14.12.53: Movie = D:\DVD1\test3\test.avi
Total Encoding Time: 40 minutes, 26 seconds.
17/06/2003 14.12.53: Job "1" finished.
_______________________________________________________________________________________________________________________




Help me!!

Acaila
17th June 2003, 15:14
Could you please edit your avs script in your previous posts and delete all lines that start with a # those are comments and as such don't provide any information and only make this thread difficult to read.
For instance, if you had done that right away we could have easily seen that all you changed between your first and second attempt earlier was using Lanczos instead of Bilinear resizing, adding a comment like "the speed didn't increase when I changed my resizing filter" would have been enough. Don't post logs/scripts unless they add information to the discussion.

I noticed in your last script that you used the following:
LanczosResize(512,282)
Although DivX claims that it supports modulo 2 resolutions, it is a very bad idea to actually use them. Artifacts have been known to appear when people did this. It's best to stick to mod 16 resolutions instead (which btw is the default in GKnot, as you understand it's there for a reason).

This might even be a reason why your encodes are so slow because certain resolutions allow both the codec and avisynth to use specific MMX/SSE/SSE2 algorithms that can speed up enoding significantly.

bira
17th June 2003, 16:13
I am getting around 19fps. (first pass)

- avisynth 2.5
- mpegdec3.dll
- 720xsomething 2:35 or 16:9 ratio.
- lanczos resize
- no other filters

I am using a 2GHz P4. Is that ok?

In time, DIVX 5.05 is definetly slower then its predecessor since it does not use .mv files anymore, right?

EmreBelozoglu
17th June 2003, 18:08
Originally posted by Acaila
Could you please edit your avs script in your previous posts and delete all lines that start with a # those are comments and as such don't provide any information and only make this thread difficult to read.


OK! Excuse me.


I noticed in your last script that you used the following:
LanczosResize(512,282)
Although DivX claims that it supports modulo 2 resolutions, it is a very bad idea to actually use them. Artifacts have been known to appear when people did this. It's best to stick to mod 16 resolutions instead (which btw is the default in GKnot, as you understand it's there for a reason).

This might even be a reason why your encodes are so slow because certain resolutions allow both the codec and avisynth to use specific MMX/SSE/SSE2 algorithms that can speed up enoding significantly.

I use modulo 16 resolutions, but the results not change.

This is .avs


#
# Created with Gordian Knot
#
# http://gknot.doom9.org
#
# PLUGINS
SetWorkingDir("C:\Programmi\Gordian Knot\")
LoadPlugin("mpeg2dec3.dll")
# SOURCE
mpeg2source("D:\DVD1\test3\test.d2v")
# CROPPING
crop(0,0,720,576)
# RESIZING
LanczosResize(512,288)


and this is Gordian log


17/06/2003 16.49.19: Job "1" started.

o DivX5-First Pass: D:\DVD1\test3\test.avs
o DivX5 - Pass 2: D:\DVD1\test3\test.avs
x Mux Audio (disabled).
End of Job 1 (1).
_______________________________________________________________________________________________________________________

Gordian Knot -
Encoding Job Data:

Type: EncD5_All
Number: 1
Name: 1
Platform: Win2000 (5.0.2195).2

Files (
VirtualDubModExe: C:\PROGRA~1\GORDIA~1\VirtualDubMod\VirtualDubMod.exe
NandubExe: C:\PROGRA~1\GORDIA~1\nandub\Nandub.exe
AviFinal: D:\DVD1\test3\test_1.avi
AviMovie: D:\DVD1\test3\test_1_Movie.avi
AviCredits: D:\DVD1\test3\test_1_Credits.avi
MovieFS: D:\DVD1\test3\test.avs
CreditsFS:
Log : D:\DVD1\test3\test_1.log
Stats: D:\DVD1\test3\test_1.stats
Ecf : D:\DVD1\test3\test_1.ecf

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

Calculator:
VideoSize: 102119 kbyte.
Audio1Size: 0 kbyte.
Audio2Size: 0 kbyte.
Overhead: 281 kbyte.
AviSize: 102400 kbyte (100 mbyte).
FilesSize: 0 kbyte.
TotalSize: 102400 kbyte (100 mbyte).
Interleaving:
Bitrate 1799 k(=1000)Bits/s
Frames: 11625
FPS: 25.000
Duration: 07:45
Quality: 0.488 bits/(pixel*frame).
CompCheck3 0.000 bits/(pixel*frame).
CompCheck5 0.000 bits/(pixel*frame).
Resolution: 512 x 288

Audio 1:
none.

Audio 2:
none.


Adding this script to C:\PROGRA~1\GORDIA~1\VirtualDubMod\LastJob.vcf :

// $job "DivX5-First Pass"
// $input "D:\DVD1\test3\test.avs"
// $output "D:\DVD1\test3\test_1.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("D:\\DVD1\\test3\\test.avs",0,0);
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.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("D:\\DVD1\\test3\\test_1.avi");
VirtualDub.Close();

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

16.49.19: Started DivX5-First Pass: D:\DVD1\test3\test.avs
17.11.10: Finished DivX5-First Pass: Duration: 21 minutes, 50 seconds.
17.11.10: Trying to open Log-file.
17.11.10: Success: Log-file open.
17.11.10: Encoded: 11624 Frames.
17.11.10: Speed: 8.868 Frames per Second.

Adding this script to C:\PROGRA~1\GORDIA~1\VirtualDubMod\LastJob.vcf :

// $job "DivX5-Second Pass"
// $input "D:\DVD1\test3\test.avs"
// $output "D:\DVD1\test3\test_1.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("D:\\DVD1\\test3\\test.avs",0,0);
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.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("D:\\DVD1\\test3\\test_1.avi");
VirtualDub.Close();

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

17.11.10: Started DivX5 - Pass: 2: D:\DVD1\test3\test.avs
17.30.58: Finished DivX5 - Pass: 2: Duration: 19 minutes, 47 seconds.
17.30.58: Speed: 9.787 Frames per Second.

17.30.58: Done.
17.30.58: Movie = D:\DVD1\test3\test_1.avi
Total Encoding Time: 41 minutes, 38 seconds.
17/06/2003 17.30.58: Job "1" finished.
_______________________________________________________________________________________________________________________

bond
17th June 2003, 18:46
gordianknot is just a gui for creating a avisycript (ok a little bit more), but encoding is still done by the codec ;)

so if you have half the encoding speed you cant blame gknot, i am sure that it is caused by different (better) codec settings than in flask which cause the speed drop

ps: i have a p3 866 and i encode at ~5 fps with all xvid settings necessary to reach the imho best results (i dont care about time)
pps: use divx505, it is much better than divx502!

jeremymacmull
17th June 2003, 19:39
@EmreBelozoglu

ive got a p3 850 and i get between 10-12 fps depending on settings etc and b frames

If you use lanczos filters and the denoising and deinterlacing and bframes gmc etc it becomes a lot slower

try unistalling everything ESPECIALLY avisynth and reinstalling .28.3 beta then .28.4 beta and try again plus ive got a pentium pc so i know vdub is optimised for pentiums i dont know what kinda of speeds AMDs get!! anyone!????

For that respect this gordian knot is way quicker than its former version (due to avisynth 2.5x)


LAST but not least FLASK uses i think Divx 3.11 Which is a LOT faster than the 5.02 or 5.05 codecs are u sure you are encoding in flask with 5.02 ??
Divx 5.05 IS a lot slower than 5.02 especially second pass but in my opinion the quality is worth it

Just a thought

JEREMY

stax76
17th June 2003, 19:55
gordianknot is just a gui for creating a avisycript (ok a little bit more), but encoding is still done by the codec


don't forget about frameserving, decoding etc.


LAST but not least FLASK uses i think Divx 3.11 Which is a LOT faster than the 5.02 or 5.05 codecs are u sure you are encoding in flask with 5.02 ??


who told you this :confused:

bond
17th June 2003, 20:47
Originally posted by Dolemite
don't forget about frameserving, decoding etc.i knew why i wrote "ok a little bit more" in brackets ;)
although i would say that frameserving is done by avisynth and decoding is done by mpeg2dec3...

stax76
17th June 2003, 21:20
i knew why i wrote "ok a little bit more" in brackets


I said don't forget about the frameserving not because you said Gordian Knot is a little bit more than a AviSynth GUI, I said this because you said the encoding is done by the codec but didn't mention there a other things like frameserving that take CPU time which make VDMod slower than Flask.

mtc
18th June 2003, 02:31
I've only ever gotten ~10-12fps with gknot encoding to divx5 versions with interlacing, bframes etc on my AMD Athlon 1GHz 640MB RAM machine so I do't believe you are going particularly slowly at all.

I do remember that when I used flask a few years ago that the speed was faster than this, however the quality just didn't come close to what I'm getting now.

just be patient :D

jcase
23rd June 2003, 03:44
Originally posted by Acaila
I noticed in your last script that you used the following:
LanczosResize(512,282)
Although DivX claims that it supports modulo 2 resolutions, it is a very bad idea to actually use them. Artifacts have been known to appear when people did this. It's best to stick to mod 16 resolutions instead (which btw is the default in GKnot, as you understand it's there for a reason).

This might even be a reason why your encodes are so slow because certain resolutions allow both the codec and avisynth to use specific MMX/SSE/SSE2 algorithms that can speed up enoding significantly.

Acaila, Can you eloborate on what resize filter to use? Please recommend one from the choices in GK.

Thanks,

manono
23rd June 2003, 14:28
Hi-

He's not talking about the resize filter itself. LanczosResize is fine. He's talking about the resolution. Your 512x282 is at fault. The 282 is only mod 2 (only divisible by 2). It should be either 512x272 or 512x288. Reset the H-Modul in GKnot to 16. For more information, please read this Sticky (http://forum.doom9.org/showthread.php?s=&threadid=42708).