TA的每日心情 | 开心 8 小时前 |
---|
签到天数: 762 天 [LV.10]以坛为家III
荣誉会员
- 积分
- 81643
|
本帖最后由 Starlight 于 2021-1-6 19:13 编辑
试试看用这个脚本
- 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:5994,den:100,abs:true},algo:21,mask:{area:100},scene:{mode:0,limits:{m1:1800,m2:3600,scene:5200,zero:100,blocks:45}}}"
- 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=container_fps, src=clip)
- # clip = core.std.AssumeFPS(clip, fpsnum=clip.fps_num, fpsden=clip.fps_den)
- clip.set_output()
复制代码
|
|