PDA

View Full Version : Speeding up the script/quality?


naz69
30th July 2005, 22:51
import("c:\blinddehalo2.avs")
import("c:\limited.avs")
import("c:\hqdering.avs")
LoadPlugin("C:\PROGRA~1\GORDIA~1\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\MaskTools.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\UnDot.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\Convolution3d.dll")
mpeg2source("K:\Xvid\projekt.d2v")
blinddehalo2()
limitedsharpen()
hqdering()
crop(2,74,714,426)
Convolution3d("moviehq")
LanczosResize(640,272)
Undot()

On this script i get 1-2fps but when I change it that way:
import("c:\blinddehalo2.avs")
import("c:\limited.avs")
import("c:\hqdering.avs")
LoadPlugin("C:\PROGRA~1\GORDIA~1\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\MaskTools.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\UnDot.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\Convolution3d.dll")
mpeg2source("K:\Xvid\projekt.d2v")
crop(2,74,714,426)
Convolution3d("moviehq")
LanczosResize(640,272)
blinddehalo2()
limitedsharpen()
hqdering()
Undot()


I get about 4-5 fps. My question is: Is putting the cropping and resizing before blinddehalo affecting the quality of the encode and if I should choose the first slower way ?

xDrJx
30th July 2005, 22:58
I'm no expert here but as far as I know you should put your filters before resizing, so the entire, not resized picture will be processed with more information within. If you resize first, the frames contain less information, therefor the encoding speed up, but i guess theres less quality to the output.
But I could be wrong ;)

MOmonster
31st July 2005, 18:59
I think cropping before filtering (depends on the filters you use) is ok with your filters, but resizing is better at the end.
Using dgdecode postprocessor, cpu=4 (only deblocking, no deringing) has normally only positive effects. Also the effect of undot at the end goes near 0, or could you see a difference. If you use the postprocessor and another denoiser and the blinddehalo script I think undot has no effect after these functions. There is already a blinddehalo3 script, that is better and faster I think. Do you use only the defaults, do they work for you?
Donīt use hqdering after limitedsharpen. If the internal deringing (cpu=5 or 6) of dgdecode isnīt enough for you use it before limitedsharpen, If you use it because of limitedsharpen, lower the thereshold for this function to avoid the use of hqdering.
Limitedsharpen you can use after or for the resizer (but with different settings), use what works better for you. The denoiser you should use before resizing.
I donīt like convolution3d to much, maybe deen or hqdn3d works also very good for you (and are faster). Donīt use these filters with default setting, lower the theresholds, for example: hqdn3d(ls=1.8,cs=1.6,lt=1.6,ct=1.3) or deen("a3d",2,3,0,7,0). Stmedian with standardsettings works also really nice.
Hope this helps you a little bit ;)