WolframRhodium / muvsfunc

Muonium's VapourSynth functions
75 stars 19 forks source link

getnative error #26

Closed theChaosCoder closed 4 years ago

theChaosCoder commented 4 years ago
muvsfunc.py", line 5733, in getnative
assert isinstance(clip, vs.VideoNode) and clip.format.id == vs.GRAYS and clip.num_frames == 1
AssertionError

I used your example

result1 = muf.getnative(clip, kernel="bicubic")
result2 = muf.getnative(clip, kernel="lanczos")
result3 = muf.getnative(clip, kernel="spline36")
last = core.std.Splice([result1, result2, result3])
last.set_output()

But even with

clip = mvf.GetPlane(clip, 0)
clip = clip[2000]
## Frames: 1 | Time: 0:00:00.042 | Size: 1920x1080 | FPS: 24000/1001 = 23.976 | Format: Gray8

the error is still shown.

WolframRhodium commented 4 years ago

The input should be a GRAYS clip:

clip = clip.resize.Point(format=vs.GRAYS)
theChaosCoder commented 4 years ago

Argh yes sorry the S in GRAYS is important ^_^"