PDA

View Full Version : Script not using 100% CPU - can it run faster than 50 fps?


Bh4i
2nd October 2006, 08:11
Im using this simple MeGUI script:

DGDecode_mpeg2source("D:\VTS_01_1.d2v",info=3)
ColorMatrix(hints=true)
tfm().tdecimate()
crop( 0, 42, -2, -50)

LanczosResize(640,272) # Lanczos (Sharp)
Undot() # Minimal Noise


When converting this to Xvid with MeGUI (30% HQ preset + matrix) it uses 100% CPU on 1 core, but only 10% on the other. I have selected to run it on 2 threads. But my speed of first pass is 50 fps, while total CPU usage is only 55% and i havent added some heavy filters..

Can it run faster or is 50 fps the maximum or something?

foxyshadis
2nd October 2006, 09:31
If you want to know the maximum the script can run at, load it in vdub (not mod) and hit run analysis pass. Then it'll show 55 fps or whatever, x264 won't exceed that. (Since in the second pass, x264 will be much slower than the avisynth, it won't matter so much.) That entire script should be parellelizable without trouble with tsp's mt build, using setmtmode, however, which might speed it up quite a bit.

Bh4i
8th October 2006, 10:44
I noticed this only happens with the 1st pass.. the 2nd pass uses 100% CPU. Would that MT pluging still help?