Log in

View Full Version : Deblock_QED under SetMTMode causing YV12 error


Graigddu
16th June 2008, 22:45
Really wasn't sure if this should be under Deblock or MT so thought that it would be better under general usage unless otherwise told as the error concerns YV12:)

Iv'e been trying to run as above states Deblock_QED under MT but i'm a real newbie when it comes to avisynth and i get a
Invalid Arguments to function YV12 error in the HC encoder GUI at the encoder start up,i am using a tools GUI called The FilmMachine and editing it's avisynth auto script with this script.

SetMTMode(5)
# 16:9 encoding
loadplugin("C:\Program Files\AviSynth 2.5\plugins\mt.dll")
loadplugin("C:\Program Files\AviSynth 2.5\plugins\DeBlock\deblock.dll")
DirectShowSource("C:\Test Videos\Test.avi", fps=23.976, audio=false, convertfps=true)
SetMTMode(2)
ConvertToYV12()
Deblock_QED(25, uv=false)
FadeIn(50)
Lanczos4Resize(720,436,0.0,0.6)
AddBorders(0,70,0,70)
AssumeFPS(25,1,False)

I have been able to run Deblock under SetMTMode(2) but it this script causing the problem

Does any one know where i'm going wrong and is willing to give me a push in the right direction :thanks:

sidewinder711
16th June 2008, 23:35
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

Graigddu
17th June 2008, 09:55
thanks for the help sidewinder much appreciated
will give it a try tonight. :)

:confused: I had already the plugins DCTFilter and MaskTools
but with all the trying different editing of the scripts must have deleted them somewhere along the way

You mentioned changing the parameter input for Deblock_QED i take it that quant1 would be set to 25 the same as Deblock_QED(25, uv=3) #1-3 only, NOT true/false
in Deblock_QED, what else would i need to edit or would this run under Deblock_QED default parameters.

sidewinder711
17th June 2008, 10:57
You have to play around with the inputs to see which ones are working the best for you (esp. look at quant1 and quant2 ... range till ~40).
If you wanna go deeper into Deblock_qed, look here (http://forum.doom9.org/showthread.php?t=121303&highlight=deblock_qed) or try it with "search".

Alternatives:
Deblock_QED()
Deblock_QED(quant1=20,quant2=40)
Deblock_QED(quant1=18,quant2=24,aOff1=2,bOff1=2,aOff2=4,bOff2=4)

Good luck!

Graigddu
18th June 2008, 10:49
Thanks for the help sidewinder,much appreciated :)

will have a play with the inputs to see what works best with certain video sources