Log in

View Full Version : Error trying to use MotionProtectedFPS.avsi script


Zaxooz
22nd August 2013, 11:05
Hi all,

I've discovered the mentioned script today and decided to test it straight away. Unfortunately, that being an old script perhaps, it gives me the following error when fed through MeGui:

http://i.picpar.com/XTt.png

The avisynth script is this:

SetMemoryMax(2900)
SetMTMode(5, 3)
<input>
SetMTMode(2)
QTGMC( Preset="Very Slow" )
MotionProtectedFPS(24)
Gradfun3()


The MotionProtectedFPS.avsi is:

function MotionProtectedFPS(
\ clip input, float FPS,
\ int "mode", int "protection",
\ int "iterate", int "reset", int "initialise")
{
mode = default(mode, warpfast)
protection = default(protection, 80)
iterate = default(iterate, 2)
reset = default(reset, 50)
initialise = default(initialise, 6)

originalFPS = input.framerate()
input

mp = FindMotion(iterate = iterate, reset = reset,
\ initialise = initialise)
p = MotionFPS(FPS,mode,Motion = mp)
maskp = mp.SumStretchFPSMask(FPS, protection)

mn = FindMotion(iterate = iterate, reset = reset,
\ initialise = initialise, from = next)
n = MotionFPS(FPS,mode,Motion = mn, source = next)
maskn = mn.SumStretchFPSMask(FPS, protection, source = next)

maskp
assumeFPS(originalFPS)
CombineFPS(FPS, maskp, maskn.Invert())
bilinearresize(width*8, height*8)
crop(0, 0, input.width(), input.height())
fity2uv()

maskedmerge(p, n, last, u=3, v=3)
}

All the plugins come from the QTGMC package (don't recall the exact iteration of those as there were few).

Thanks

Groucho2004
22nd August 2013, 11:33
See here (http://forum.doom9.org/showthread.php?p=1469219#post1469219).

Zaxooz
22nd August 2013, 11:57
So it means this script is unusable now? Or that function can be replaced by some part of the code from you link (didee's code)? Thanks.

Groucho2004
22nd August 2013, 13:35
So it means this script is unusable now? Or that function can be replaced by some part of the code from you link (didee's code)? Thanks.
The latter, I think.

Zaxooz
22nd August 2013, 14:22
Could someone then please enumerate the current viable quality methods of going from 60 to 24p? I've tried the following:

interleave(last,last)
temporalsoften(2,255,255,20,2)
ChangeFPS(24.0)

and didn't really like the results, there was occasional blockiness and somewhat doubled outlines on moving parts of the frame. Thanks.