Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 16th June 2008, 22:45   #1  |  Link
Graigddu
Registered User
 
Join Date: Nov 2007
Posts: 48
Deblock_QED under SetMTMode causing YV12 error

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
Graigddu is offline   Reply With Quote
Old 16th June 2008, 23:35   #2  |  Link
sidewinder711
near the waterfront
 
sidewinder711's Avatar
 
Join Date: Feb 2008
Posts: 38
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

Last edited by sidewinder711; 17th June 2008 at 10:44.
sidewinder711 is offline   Reply With Quote
Old 17th June 2008, 09:55   #3  |  Link
Graigddu
Registered User
 
Join Date: Nov 2007
Posts: 48
thanks for the help sidewinder much appreciated
will give it a try tonight.

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
Quote:
changing the parameter input for Deblock_QED
i take it that quant1 would be set to 25 the same as
Quote:
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.
Graigddu is offline   Reply With Quote
Old 17th June 2008, 10:57   #4  |  Link
sidewinder711
near the waterfront
 
sidewinder711's Avatar
 
Join Date: Feb 2008
Posts: 38
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 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!
sidewinder711 is offline   Reply With Quote
Old 18th June 2008, 10:49   #5  |  Link
Graigddu
Registered User
 
Join Date: Nov 2007
Posts: 48
Thanks for the help sidewinder,much appreciated

will have a play with the inputs to see what works best with certain video sources
Graigddu is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 00:33.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.