Im currently using this script pasted into ffdshow
# This script was generated by SmoothVideo Project (SVP) Manager.
# Check http://www.svp-team.com for more details.
SetMemoryMax(1024)
global svp_scheduler=true
global threads=5
global svp_cache_fwd=threads+2
LoadPlugin("C:\Program Files\SVP\plugins\svpflow1.dll")
LoadPlugin("C:\Program Files\SVP\plugins\svpflow2.dll")
SetMTMode(3,threads)
ffdShow_source()
SetMTMode(2)
global crop_params=""
global resize_string=""
global super_params="{scale:{up:2},gpu:0,rc:true}"
global analyse_params="{block:{w:8,h:8,overlap:0},main:{search:{coarse:{type:2,distance:-6,satd:false,bad:{sad:2000}},type:2,distance:0}},refine:[{thsad:65000}]}"
global smoothfps_params="{rate:{num:12,den:5},algo:11,block:true,scene:{blend:true,mode:0}}"
global demo_mode=0
stereo_type=0
########## BEGIN OF MSMoothFps.avs ##########
# This file is a part of SmoothVideo Project (SVP) 3.1.3
# This is NOT the full AVS script, all used variables are defined via
# JavaScript code that generates the full script text.
function interpolate(clip src)
{
input = crop_params=="" ? src : eval("src.crop("+crop_params+")")
input = resize_string=="" ? input : eval("input."+resize_string)
super=SVSuper(input, super_params)
vectors=SVAnalyse(super, analyse_params, src=input)
smooth=SVSmoothFps(input, super, vectors, smoothfps_params, mt=threads, url="www.svp-team.com")
return demo_mode==0 ? smooth : demo(input,smooth)
}
input=last
stereo_type==0 ? eval(""" interpolate(input)
""") : stereo_type==1 || stereo_type==3 ? eval("""
lf = interpolate(input.crop(0,0,input.width/2,0))
rf = interpolate(input.crop(input.width/2,0,0,0))
StackHorizontal(lf, rf)
""") : stereo_type==2 || stereo_type==4 ? Eval("""
lf = interpolate(input.crop(0,0,0,input.height/2))
rf = interpolate(input.crop(0,input.height/2,0,0))
StackVertical(lf, rf)""") : input
########### END OF MSMoothFps.avs ###########
distributor()
but I need to add some lines to check the fps of the source and change it..
Somethig like:
num2=1
den2=1
Framerate<=30 && Framerate>=29 ? Eval("""
num2=2
den2=1
""") : Framerate<=24 && Framerate>=23 ? Eval("""
num2=5
den2=2
""") : Framerate<=25 && Framerate> 24 ? Eval("""
num2=12
den2=5
""") : NOP
and then add these new values to num and den
num=FramerateNumerator(last)*num2, den=FramerateDenominator(last)*den2
How can I do that?
If I write these lines into the first script... something like
global smoothfps_params="{rate:{num:FramerateNumerator(last)*num2,den:FramerateDenominator(last)*den2},algo:11,block:true,scene:{blend:true,mode:0}}"
then SVP gives an error.
There is any other way to add these lines to check original FPS and change num and den values?
Thanks for the help