Topic: [vapoursynth] new batch video encoding method
Hello, guys! Today we will learn how to convert multiple files to 60 fps. We will use StaxRip.
Why staxrip ?
amazing GUI
support VS
great profile system
First we need to add svp to VS chain (make sure to fix paths):
core = vs.get_core(threads=19)
core.std.LoadPlugin("C:\\Program Files (x86)\\SVP 4 Dev\\plugins64\\svpflow1_vs.dll")
core.std.LoadPlugin("C:\\Program Files (x86)\\SVP 4 Dev\\plugins64\\svpflow2_vs.dll")
clip = clip.resize.Bicubic(format=vs.YUV420P8)
crop_string = ""
resize_string = "core.resize.Bicubic(input,1280,720,filter_param_a=0,filter_param_b=0.75)"
super_params = "{pel:1,scale:{up:0},gpu:1,full:false,rc:true}"
analyse_params = "{main:{search:{coarse:{distance:-8},distance:0}}}"
smoothfps_params = "{gpuid:11,rate:{num:2,den:1},algo:13,mask:{area:50},scene:{blend:true}}"
def interpolate(clip):
input = clip
if crop_string!='':
input = eval(crop_string)
if resize_string!='':
input = eval(resize_string)
super = core.svp1.Super(input,super_params)
vectors = core.svp1.Analyse(super["clip"],super["data"],input,analyse_params)
smooth = core.svp2.SmoothFps(input,super["clip"],super["data"],vectors["clip"],vectors["data"],smoothfps_params,src=clip)
smooth = core.std.AssumeFPS(smooth,fpsnum=smooth.fps_num,fpsden=smooth.fps_den)
return smooth
smooth = interpolate(clip)
smooth.set_output()
Second, setup x264 encode setting and save template.
Add file list and press start.
I have 1.5x real time performance for my task (medium quality video encode for phone).