TCmullet
As you not answer me I went another way. I take 720p version of this youtube video.
This video has constant pattern 'N-N-J-D'. There one Jump (J) and one drop (D) in every 4 frames. So, for such video you can use another script. It will give you more quality.
If use numbers then pattern is 1-2-4-4 and we need to restore frame #3. We will get 1-2-3-4 when 3 is interpolated frame between frames #2 and #4.
Script FixDropInPattern1244
SetMemoryMax(1024)
global threads=13
global svp_scheduler=true
LoadPlugin("C:\Program Files (x86)\SVP 4 PRO\plugins\svpflow1.dll")
LoadPlugin("C:\Program Files (x86)\SVP 4 PRO\plugins\svpflow2.dll")
SetMTMode(3,threads)
DirectShowSource("NEWFRO~1.MP4")
SetMTMode(2)
super_params = "{gpu:1}"
analyse_params="{main:{search:{coarse:{distance:4,bad:{sad:2000}},type:2,distance:4},penalty:{lambda:1,pglobal:10000}},refine:[{thsad:65000}]}"
smoothfps_params="{rate:{num:2,den:1},algo:13,scene:{blend:true}}"
super=SVSuper(super_params)
vectors=SVAnalyse(super, analyse_params)
fix = SVSmoothFps(super, vectors, smoothfps_params, mt=threads).Subtitle("-fix50")
fix50n = fix.selectEvery(2,1)
fix50n = fix50n.trim(1,1)+fix50n
interleave( \
SelectEvery(fix50n,4,0), \
SelectEvery(4,1), \
SelectEvery(4,2), \
SelectEvery(4,3))
distributor()
If you need to hide subtitle then remove .Subtitle("-fix50") function from the script.
This script has no memory leaks.