最终解决方案........
只需要一个背景全黑的logo就行了......
top = directshowsource("55.grf",fps=23.976,audio=false) # 读入logo
#读入avi或其它主视频文件
avisource("xxx.avi")
#调用logo的脚本
Logosimple(top,fadeout=no, 10,200,100,100,0)
#logo 的主脚本 第一个是logo的名称 , 然后是起始帧, 结束帧, X轴, Y轴, 最后是边缘控制的强度. fadeout 是false的时候就是fade in, 反之则是fade out.
#边缘控制的强度是控制logo的边缘往外延伸的程度, 正常是0, 一般只有在logo内部有黑线的时候需要提高.
function Logosimple(clip clip, clip top,int startFrame, int endFrame, int hor, int verticle, float blurthresh, bool "fadeout")
{
Default (hor, 0)
Default (verticle, 0)
Default (fadeout, true)
Default (blurthresh, 0)
top2=top.blur(blurthresh).blur(blurthresh).blur(blurthresh).RGBAdjust(255,255,255,1)
beg = clip.trim(0, startFrame-1)
filter = clip.trim(startFrame,endFrame)
end = clip.trim(endFrame+1,0)
overlayClip = top.trim(0,endFrame-startFrame)
maskClip = top2.trim(0,endFrame-startFrame)
maskClip = (fadeout == true) ? maskClip.FadeOut(maskClip.Framecount()) : maskClip.FadeIn(maskClip.Framecount())
filter = overlay(filter, overlayClip, x=hor, y=verticle,mask = maskClip, mode="blend", opacity=1,pc_range=true,output="yv12")
final = beg + filter + end
return final
}