With the following corrections I don`t have any problems to run Deblock_QED: CODE: SetMTMode(5) # 16:9 encoding LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\dll\mt.dll") LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\dll\deblock.dll") LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\dll\DCTFilter.dll") LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\dll\MaskTools_158.dll") #version 1.58 Import("C:\Program Files\Avisynth 2.5\plugins\functions\DeBlock_qed.avs") DirectShowSource("e:\Test\testAVI.avi", fps=23.976, audio=false, convertfps=true) SetMTMode(2) ConvertToYV12() Deblock_QED(25, uv=3) #1-3 only, NOT true/false FadeIn(50) Lanczos4Resize(720,436,0.0,0.6) AddBorders(0,70,0,70) AssumeFPS(25,1,False) Download and install the missing dlls and the function and put them into your plugin folder (take care for the appropriate path) and it should work after changing the parameter input for Deblock_QED. For the parameters of Deblock_QED open the function with your editor and read the introduction. Regarding the position of SetMTMode, try the code above. If you are facing problems during the encoding process, try changing the position of SetMTMode (usually I use it that way) like that: LoadPlugin("....dll") SetMTMode(2) Import("... DEblock_QED.avs") SetMTMode(5) AviSource/DirectShowSource ConverttoYV12 ...Trim etc SetMTMode(2) Deblock_QED() SetMTMode(5) Resize,AddBorders etc