|
我直接用#420看那个一定报错的,要稍微改改。
- import vapoursynth as vs
- core = vs.core
- super_params = "{pel:2,gpu:1,scale:{up:2,down:4}}"
- analyse_params = "{block:{w:32,h:16,overlap:2},main:{levels:4,search:{type:4,distance:-8,coarse:{type:2,distance:-5,bad:{range:0}}},penalty:{lambda:10.0,plevel:1.5,pzero:110,pnbour:65}},refine:[{thsad:200,search:{type:4,distance:2}}]}"
- smoothfps_params = "{rate:{num:2,den:1,abs:false},algo:21,mask:{area:100},scene:{mode:0,limits:{m1:1800,m2:3600,scene:5200,zero:100,blocks:45}}}"
- src_fps = container_fps if container_fps>0.1 else 23.976
- clip = video_in
- clip_10 = clip.resize.Point(format=vs.YUV420P10, dither_type="random")
- clip_8 = clip.resize.Point(format=vs.YUV420P8, dither_type="random")
- svps = core.svp1.Super(clip_8, super_params)
- svpv = core.svp1.Analyse(svps["clip"], svps["data"], clip_10, analyse_params)
- clip = core.svp2.SmoothFps(clip_10, svps["clip"], svps["data"], svpv["clip"], svpv["data"],
- smoothfps_params, fps=src_fps, src=clip)
- ###
- # clip = core.std.AssumeFPS(clip, fpsnum=clip.fps_num, fpsden=clip.fps_den)
- clip.set_output()
复制代码
|
|