Log in

View Full Version : YV12/YUY2 Error + Image flipped


Arshad07
19th May 2009, 13:56
I re-intalled my k-lite mega codec pack, and when i load my avs script in AVsP, i get an error saying: ## Colormatrix: input to filter must be YV12 or YUY2! ##

Script:
LoadPlugin("E:\k-lite\HDConvertToX_1.5.283.2416\filters\mt_masktools-26.dll")
LoadPlugin("E:\k-lite\HDConvertToX_1.5.283.2416\filters\mvtools.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\RemoveGrainSSE3.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\RemoveGrainSSE2.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\RemoveGrain.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\SSE2Tools.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\MT.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\mvtools2.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\mt_masktools2.dll")
setmtmode(5)
DirectShowSource("x.mkv", fps=23.976, audio=false)
setmtmode(2)
ColorMatrix(mode="Rec.709->Rec.601")
Interleaved2Planar() # convert clip to planar
super = MSuper(planar=true)
backward_vec3 = last.MVAnalyse(isb = true, delta = 3, pel = 2, overlap=2, sharp=1, idx = 1)
backward_vec2 = last.MVAnalyse(isb = true, delta = 2, pel = 2, overlap=2, sharp=1, idx = 1)
backward_vec1 = last.MVAnalyse(isb = true, delta = 1, pel = 2, overlap=2, sharp=1, idx = 1)
forward_vec1 = last.MVAnalyse(isb = false, delta = 1, pel = 2, overlap=2, sharp=1, idx = 1)
forward_vec2 = last.MVAnalyse(isb = false, delta = 2, pel = 2, overlap=2, sharp=1, idx = 1)
forward_vec3 = last.MVAnalyse(isb = false, delta = 3, pel = 2, overlap=2, sharp=1, idx = 1)
last.MVDegrain3(backward_vec1,forward_vec1,backward_vec2,forward_vec2,backward_vec3,forward_vec3,thSAD=300,idx=1)
Planar2Interleaved() # convert back to normal interleave YUY2
MT("LimitedSharpenFaster(ss_x=1.5, ss_y=1.5, dest_x=last.width, dest_y=last.height, Smode=3, strength=20, radius=2)",4)
MT("spline36resize(1280, last.height)",4)
MT("spline36resize(last.width, 544)",4, splitvertical=true)


And when remove the command ''ColorMatrix(mode="Rec.709->Rec.601") '' and replaced it by ''ConvertToYV12(matrix="Rec601", interlaced=false)'' , the image is flipped horizontally...

http://i43.tinypic.com/34t4z07.png


Any help appreciated!

Arshad07
19th May 2009, 14:09
Even with a simple script, like

directshowsource("k:\bdmv\stream\00011.m2ts",audio=false)
LanczosResize(1280,528,0,140,-0,-140)

http://i42.tinypic.com/nvv489.png

kemuri-_9
19th May 2009, 15:43
I re-intalled my k-lite mega codec pack

and you wonder why it's upside down?

for the easy fix use FlipVertical()
this is the reason that particular function exists.

Arshad07
19th May 2009, 15:52
and you wonder why it's upside down?

for the easy fix use FlipVertical()
this is the reason that particular function exists.

I did but it didnt work. But i figured it out. It was an error in my ffdshow, i ticked '' FLIP '' by mistake :p

Arshad07
20th May 2009, 02:11
Flipped again :(...dont know whats going on with my system

Inspector.Gadget
20th May 2009, 02:22
Don't use codec packs. It's guaranteed to be a filter error, and if you didn't have the problem before, it's the fault of the codec pack.