PDA

View Full Version : Cant get MVDegrain to work :(


Arshad07
9th May 2009, 18:15
I cant get mvdegrain to work:

Script used:

Loadplugin("C:\Program Files\AviSynth 2.5\plugins\mvtools2.dll")
Load_Stdcall_Plugin("C:\Program Files (x86)\megui\tools\yadif\yadif.dll")
DGDecode_mpeg2source("C:\Users\Arshad\Desktop\8x10 DVD9 Sample.d2v", info=3)
ColorMatrix(hints=true, interlaced=true, threads=0)
Yadif(Mode=1,Order=1)
srestore(frate=25)
backward_vec3 = last.MVAnalyse(isb = true, delta = 3, pel = 2, overlap=4, sharp=2, idx = 1)
backward_vec2 = last.MVAnalyse(isb = true, delta = 2, pel = 2, overlap=4, sharp=2, idx = 1)
backward_vec1 = last.MVAnalyse(isb = true, delta = 1, pel = 2, overlap=4, sharp=2, idx = 1)
forward_vec1 = last.MVAnalyse(isb = false, delta = 1, pel = 2, overlap=4, sharp=2, idx = 1)
forward_vec2 = last.MVAnalyse(isb = false, delta = 2, pel = 2, overlap=4, sharp=2, idx = 1)
forward_vec3 = last.MVAnalyse(isb = false, delta = 3, pel = 2, overlap=4, sharp=2, idx = 1)
last.MVDegrain2(backward_vec1,forward_vec1,backward_vec2,forward_vec2,backward_vec3,forward_vec3,thSAD=400,idx=1)
crop( 4, 54, -2, -54)

LanczosResize(640,272) # Lanczos (Sharp)



Error getting

http://i41.tinypic.com/vgpv1j.jpg



Latest avisyth 2.58
megui updated to latest version
x64bit Vista

Thanks in advance

buzzqw
9th May 2009, 18:16
what's the error ?

BHH

Arshad07
9th May 2009, 18:22
OP edited.

@ buzzqw, its posted in OP

buzzqw
9th May 2009, 19:59
afaik mvdegrain2 is this

backward_vec2 = last.MVAnalyse(isb = true, delta = 2, pel = 2, overlap=4, sharp=1, idx = 1)
backward_vec1 = last.MVAnalyse(isb = true, delta = 1, pel = 2, overlap=4, sharp=1, idx = 1)
forward_vec1 = last.MVAnalyse(isb = false, delta = 1, pel = 2, overlap=4, sharp=1, idx = 1)
forward_vec2 = last.MVAnalyse(isb = false, delta = 2, pel = 2, overlap=4, sharp=1, idx = 1)
last.MVDegrain2(backward_vec1,forward_vec1,backward_vec2,forward_vec2,thSAD=400,idx=1)
BHH

poisondeathray
9th May 2009, 20:03
For some reason your error message says MDegrain2, not MVDegrain2. Check for typos

buzzqw
9th May 2009, 20:17
well spotted poisondeathray!

BHH

Arshad07
9th May 2009, 21:01
OP Edited, sorry

http://i41.tinypic.com/vgpv1j.jpg

buzzqw
9th May 2009, 21:06
have you used the mvdegrain2 i posted ?

BHH

Arshad07
9th May 2009, 21:14
have you used the mvdegrain2 i posted ?

BHH

works like a charm. Cheers mate!

When i tried this

backward_vec2 = source.MVAnalyse(isb = true, delta = 2, pel = 2, overlap=4, sharp=1, idx = 1)
backward_vec1 = source.MVAnalyse(isb = true, delta = 1, pel = 2, overlap=4, sharp=1, idx = 1)
forward_vec1 = source.MVAnalyse(isb = false, delta = 1, pel = 2, overlap=4, sharp=1, idx = 1)
forward_vec2 = source.MVAnalyse(isb = false, delta = 2, pel = 2, overlap=4, sharp=1, idx = 1)
source.MVDegrain2(backward_vec1,forward_vec1,backward_vec2,forward_vec2,thSAD=400,idx=1)

i get an error, saying that he doesnt know what source means....why is that?

Arshad07
9th May 2009, 21:23
And btw why is it sooo slow. Its currently running at 2.6 fps :(

Gavino
10th May 2009, 01:10
i get an error, saying that he doesnt know what source means....why is that?
Because you didn't set the value of 'source' - you were missing the line
source = last
before the bit you posted.

BTW Your original script would have worked with MVDegrain3 (but that would have been even slower...)