谢谢,学习了,对这个一直都是模模糊糊,刚刚重新移动了插件,还是同样的错误提示
这么做是很省事,不过为了避免冲突,我还坚持不把插件放在plugins里面,而是放在别处手动载入。
管理员给的两个插件,dedot我已经下载,但是derainbow不管是1.58还是后面的MT2以上版本,都下载不了,提示“无法与服务器连接”
冒昧请管理员有空的话能否传一下,应该不大吧?
哦,下面是我的derainbow.avs代码,是我从网上找的,应该没有错误- function DeRainbow(clip org, int "thresh")
- {
- assert(org.isYV12(),"DeRainbow() requires YV12 input!")
- thresh = default(thresh, 10)
- org_u = utoy(org)
- org_v = vtoy(org)
- msharpen(org, threshold = thresh, mask=true)
- reduceby2()
- greyscale()
- uv = blur(1.5).levels(0,2.0,255,0,255, coring=false).blur(1.5).blur(1.5).levels(50,2.0,255,0,255, coring=false)
- filtered_u = org_u.mipsmooth(spatial=255, temporal=255, scenechange=3, show=false, method="strong", scalefactor=0.5)
- filtered_v = org_v.mipsmooth(spatial=255, temporal=255, scenechange=3, show=false, method="strong", scalefactor=0.5)
- u_final = MaskedMerge(org_u, filtered_u, uv)
- v_final = MaskedMerge(org_v, filtered_v, uv)
- return ytouv(u_final, v_final, org)
- }
- function DeRainbowYUY2(clip org, int "thresh")
- {
- assert(org.isyuy2(),"DeRainbowYUY2() requires YUY2 input!")
- thresh = default(thresh, 10)
- org_yv12 = org.converttoyv12()
- org_u = utoy(org).converttoyv12()
- org_v = vtoy(org).converttoyv12()
- msharpen(org_yv12, threshold = thresh, mask=true)
- bilinearresize(last.width/2, last.height)
- greyscale()
- uv = blur(1.5).levels(0,2.0,255,0,255, coring=false).blur(1.5).blur(1.5).levels(50,2.0,255,0,255, coring=false)
- filtered_u = org_u.mipsmooth(spatial=255, temporal=255, scenechange=3, show=false, method="superstrong", scalefactor=0.5)
- filtered_v = org_v.mipsmooth(spatial=255, temporal=255, scenechange=3, show=false, method="superstrong", scalefactor=0.5)
- u_final = MaskedMerge(org_u, filtered_u, uv).converttoyuy2()
- v_final = MaskedMerge(org_v, filtered_v, uv).converttoyuy2()
- return ytouv(u_final, v_final, org)
- }
复制代码 |