I though I could increase speed using resize, but ffdshow's raw filter with PP veeery slow. I've made sending avs to registry to make it usable, but it's very slow (and my current laptop slow too).
I can finish, but I wanted to friendly with svp's native functions
Originally it uses resize string for resize settings like
Code:
function interpolate(clip src)
{
input = crop_string=="" ? src : eval("src."+crop_string)
input = resize_string=="" ? input : eval("input."+resize_string)
#MT-MODE-1 #do not remove this line!
super=SVSuper(input, super_params)
vectors=SVAnalyse(super, analyse_params, src=input)
smooth=SVSmoothFps(input, super, vectors, smoothfps_params, mt=threads, src=src)
#MT-MODE-2 #do not remove this line!
return demo_mode==0 ? smooth : demo(input,smooth)
}
So I need to calculate resize sting before, as I get
Code:
NewWidth = 1366
NewHeight = 768
SourceAspect = float(source_width) / float(source_height)
MyAspect = float(NewWidth) / float(NewHeight)
SourceAspect > MyAspect ? eval("""
ResizedWidth=NewWidth
ResizedHeight=round(float(source_height) * float(NewWidth) / float(source_width) / 2.0) * 2
""") : eval("""
ResizedHeight=NewHeight
ResizedWidth=round(float(source_width) * float(NewHeight) / float(source_height) / 2.0 ) * 2
""")
resize_string="BicubicResize("+String(ResizedWidth)+","+ResizedHeight+",b=0,c=0.75)"
How to convert this to function what gives resize_string?
Also I wanted to use RoboCrop for autocroping, but it's not works in my cases
https://forum.doom9.org/showthread.p...85#post1633485 .In best case it should
1 Detect black borders and remove it with auto crop
2 Check that height or width of cropped image bigger than target resolution and call resize
..but as I get I it's still be worse than PP's internal avisynth, the only advantage is autocropping