[原创]在影片中加入图片logo的方法(2005.2.25更新)
maomao333@2005-02-25 17:24
软件下载:引用
v1=AviSource("G:\Sample\AVI\s01.avi").converttorgb32
v2=ImageReader("G:\Sample\pics\p01.jpg").converttorgb24.flipvertical()
v3=v2.converttorgb32.colorkeymask($FFFFFF,20)
Layer(v1,v3,"add",255,0,0)
引用
v1=AviSource("G:\Sample\AVI\s01.avi").converttorgb32
v2=ImageReader("G:\Sample\pics\p03.jpg").converttorgb24.flipvertical()
v3=v2.converttorgb32.colorkeymask($9873D3,40)
Layer(v1,v3,"add",255,0,0)
maomao333@2005-02-25 17:25
2.mask滤镜引用
v1=AviSource("G:\Sample\AVI\s01.avi").converttorgb32
v2=ImageReader("G:\Sample\pics\p15.jpg").converttorgb32.flipvertical()
v3=ImageReader("G:\Sample\pics\p16.jpg").converttorgb32.flipvertical()
v2=v2.mask(v3).FadeIO(24)
v4=trim(v1,0,119)
v5=trim(v1,120,359).Layer(v2,"add",255,460,0)
v6=trim(v1,360,0)
return v4+v5+v6
引用
v1=AviSource("G:\Sample\AVI\s01.avi").converttorgb32
v2=ImageReader("G:\Sample\pics\p18.png").converttorgb32.flipvertical()
v3=ImageReader("G:\Sample\pics\p19.png").converttorgb32.flipvertical()
v2=v2.mask(v3).FadeIO(24)
v4=trim(v1,0,119)
v5=trim(v1,120,359).Layer(v2,"add",255,460,0)
v6=trim(v1,360,0)
return v4+v5+v6
引用
v1=AviSource("G:\Sample\AVI\s01.avi").converttorgb32
v2=ImageReader("G:\Sample\pics\p21.bmp").converttorgb32
v3=ImageReader("G:\Sample\pics\p22.bmp").converttorgb32
v2=v2.mask(v3).FadeIO(24)
v4=trim(v1,0,119)
v5=trim(v1,120,359).Layer(v2,"add",255,460,0)
v6=trim(v1,360,0)
return v4+v5+v6
maomao333@2005-02-25 17:26
二.动态logo引用
v1=AviSource("G:\Sample\AVI\s01.avi").converttorgb32.trim(125,374)
v2=AviSource("G:\Sample\AVI\s04.avi").converttorgb32
v3=AviSource("G:\Sample\AVI\s05.avi").converttorgb32
v2=v2.mask(v3).FadeIO(25)
v4=Layer(v1,v2,"add",255,0,0)
v5=AviSource("G:\Sample\AVI\s01.avi").converttorgb32
v6=v5.trim(0,124)+v4+v5.trim(375,0)
return v6
引用
v1=AviSource("G:\Sample\AVI\s01.avi").ConvertToYUY2.trim(125,374)
v2=AviSource("G:\Sample\AVI\s04.avi").ConvertToYUY2
v3=Layer(v1,v2,"add",255,0,0)
v4=AviSource("G:\Sample\AVI\s01.avi").ConvertToYUY2
v5=v4.trim(0,124)+v3+v4.trim(375,0)
return v5
maomao333@2005-02-25 17:26
采用笨办法,10个循环,图片采用最初从Gif Movie Gear保存下来的原始尺寸的png图片,由于gif图片帧率为12.5frm/s,差不多是影片23.975frm/s的一半,故每2帧对应1幅动画引用
v1=AviSource("G:\gif\jpg\s01.avi").converttorgb32
p1=ImageReader("G:\Sample\pics\png\01.png").converttorgb32.flipvertical()
p2=ImageReader("G:\Sample\pics\png\02.png").converttorgb32.flipvertical()
p3=ImageReader("G:\Sample\pics\png\03.png").converttorgb32.flipvertical()
p4=ImageReader("G:\Sample\pics\png\04.png").converttorgb32.flipvertical()
p5=ImageReader("G:\Sample\pics\png\05.png").converttorgb32.flipvertical()
p6=ImageReader("G:\Sample\pics\png\06.png").converttorgb32.flipvertical()
v2=trim(v1,0,124).converttorgb32
v11=trim(v1,125,126).Layer(p1,"add",255,0,0)
v12=trim(v1,127,128).Layer(p2,"add",255,0,0)
v13=trim(v1,129,130).Layer(p3,"add",255,0,0)
v14=trim(v1,131,132).Layer(p4,"add",255,0,0)
v15=trim(v1,133,134).Layer(p5,"add",255,0,0)
v16=trim(v1,135,136).Layer(p6,"add",255,0,0)
v21=trim(v1,137,138).Layer(p1,"add",255,0,0)
v22=trim(v1,139,140).Layer(p2,"add",255,0,0)
v23=trim(v1,141,142).Layer(p3,"add",255,0,0)
v24=trim(v1,143,144).Layer(p4,"add",255,0,0)
v25=trim(v1,145,146).Layer(p5,"add",255,0,0)
v26=trim(v1,147,148).Layer(p6,"add",255,0,0)
v31=trim(v1,149,150).Layer(p1,"add",255,0,0)
v32=trim(v1,151,152).Layer(p2,"add",255,0,0)
v33=trim(v1,153,154).Layer(p3,"add",255,0,0)
v34=trim(v1,155,156).Layer(p4,"add",255,0,0)
v35=trim(v1,157,158).Layer(p5,"add",255,0,0)
v36=trim(v1,159,160).Layer(p6,"add",255,0,0)
v41=trim(v1,161,162).Layer(p1,"add",255,0,0)
v42=trim(v1,163,164).Layer(p2,"add",255,0,0)
v43=trim(v1,165,166).Layer(p3,"add",255,0,0)
v44=trim(v1,167,168).Layer(p4,"add",255,0,0)
v45=trim(v1,169,170).Layer(p5,"add",255,0,0)
v46=trim(v1,171,172).Layer(p6,"add",255,0,0)
v51=trim(v1,173,174).Layer(p1,"add",255,0,0)
v52=trim(v1,175,176).Layer(p2,"add",255,0,0)
v53=trim(v1,177,178).Layer(p3,"add",255,0,0)
v54=trim(v1,179,180).Layer(p4,"add",255,0,0)
v55=trim(v1,181,182).Layer(p5,"add",255,0,0)
v56=trim(v1,183,184).Layer(p6,"add",255,0,0)
v61=trim(v1,185,186).Layer(p1,"add",255,0,0)
v62=trim(v1,187,188).Layer(p2,"add",255,0,0)
v63=trim(v1,189,190).Layer(p3,"add",255,0,0)
v64=trim(v1,191,192).Layer(p4,"add",255,0,0)
v65=trim(v1,193,194).Layer(p5,"add",255,0,0)
v66=trim(v1,195,196).Layer(p6,"add",255,0,0)
v71=trim(v1,197,198).Layer(p1,"add",255,0,0)
v72=trim(v1,199,200).Layer(p2,"add",255,0,0)
v73=trim(v1,201,202).Layer(p3,"add",255,0,0)
v74=trim(v1,203,204).Layer(p4,"add",255,0,0)
v75=trim(v1,205,206).Layer(p5,"add",255,0,0)
v76=trim(v1,207,208).Layer(p6,"add",255,0,0)
v81=trim(v1,209,210).Layer(p1,"add",255,0,0)
v82=trim(v1,211,212).Layer(p2,"add",255,0,0)
v83=trim(v1,213,214).Layer(p3,"add",255,0,0)
v84=trim(v1,215,216).Layer(p4,"add",255,0,0)
v85=trim(v1,217,218).Layer(p5,"add",255,0,0)
v86=trim(v1,219,220).Layer(p6,"add",255,0,0)
v91=trim(v1,221,222).Layer(p1,"add",255,0,0)
v92=trim(v1,223,224).Layer(p2,"add",255,0,0)
v93=trim(v1,225,226).Layer(p3,"add",255,0,0)
v94=trim(v1,227,228).Layer(p4,"add",255,0,0)
v95=trim(v1,229,230).Layer(p5,"add",255,0,0)
v96=trim(v1,231,232).Layer(p6,"add",255,0,0)
v01=trim(v1,233,234).Layer(p1,"add",255,0,0)
v02=trim(v1,235,236).Layer(p2,"add",255,0,0)
v03=trim(v1,237,238).Layer(p3,"add",255,0,0)
v04=trim(v1,239,240).Layer(p4,"add",255,0,0)
v05=trim(v1,241,242).Layer(p5,"add",255,0,0)
v06=trim(v1,243,244).Layer(p6,"add",255,0,0)
v3=trim(v1,245,0).converttorgb32
return v2+v11+v12+v13+v14+v15+v16+v21+v22+v23+v24+v25+v26+v31+v32+v33+v34+v35+v36+v41+v42+v43+v44+v45+v46+v51+v52+v53+v54+v55+v56+v61+v62+v63+v64+v65+v66+v71+v72+v73+v74+v75+v76+v81+v82+v83+v84+v85+v86+v91+v92+v93+v94+v95+v96+v01+v02+v03+v04+v05+v06+v3
maomao333@2005-02-25 17:27
2.加入avi影片引用
v1=AviSource("G:\Sample\AVI\s01.avi").ConvertToYUY2.trim(125,374)
v2=AviSource("G:\Sample\AVI\s08.avi").ConvertToYUY2.LanczosResize(296,160)
v3=Layer(v1,v2,"add",255,344,0).ConvertToYV12
v4=AviSource("G:\Sample\AVI\s01.avi").ConvertToYV12
v5=v4.trim(0,124)+v3+v4.trim(375,0)
return v5
引用
loadplugin("G:\Sample\AVI\AviSynth Filter\ac3source.dll")
v1=AviSource("G:\Sample\AVI\s09.avi",false).converttorgb32.trim(125,374)
v2=AviSource("G:\Sample\AVI\s04.avi").converttorgb32
v3=AviSource("G:\Sample\AVI\s05.avi").converttorgb32
v2=v2.mask(v3).FadeIO(25)
v4=Layer(v1,v2,"add",255,0,0)
v5=AviSource("G:\Sample\AVI\s09.avi",false).converttorgb32
v6=v5.trim(0,124)+v4+v5.trim(375,0)
v7=ac3source("G:\Sample\AVI\s11.ac3")
audiodub(v6,v7)
引用
loadplugin("G:\Sample\AVI\AviSynth Filter\mpasource.dll")
v1=AviSource("G:\Sample\AVI\s09.avi",false).converttorgb32.trim(125,374)
v2=AviSource("G:\Sample\AVI\s04.avi").converttorgb32
v3=AviSource("G:\Sample\AVI\s05.avi").converttorgb32
v2=v2.mask(v3).FadeIO(25)
v4=Layer(v1,v2,"add",255,0,0)
v5=AviSource("G:\Sample\AVI\s09.avi",false).converttorgb32
v6=v5.trim(0,124)+v4+v5.trim(375,0)
v7=mpasource("G:\Sample\AVI\s11.wav")
audiodub(v6,v7)
引用
v1=AviSource("G:\Sample\AVI\s10.avi",false).converttorgb32.trim(125,374)
v2=AviSource("G:\Sample\AVI\s04.avi").converttorgb32
v3=AviSource("G:\Sample\AVI\s05.avi").converttorgb32
v2=v2.mask(v3).FadeIO(25)
v4=Layer(v1,v2,"add",255,0,0)
v5=AviSource("G:\Sample\AVI\s10.avi",false).converttorgb32
v6=v5.trim(0,124)+v4+v5.trim(375,0)
v7=DirectShowSource("G:\Sample\AVI\s12.wav")
audiodub(v6,v7)
maomao333@2005-02-25 17:28
用VirtualDub的外置滤镜加载静/动态logo的方法引用
AVISource("G:\Sample\AVI\s01.avi")
function StaticLogo(clip,int "x", int "y", int "Alpha", bool "transparent",
\ int "R", int "G", int "B", int "tolerance", string "LogoName",
\ bool "Animate", int "Start", int "Duration", int "Loops",
\ int "FadeIn", int "End", int "FadeOut")
{
LoadVirtualdubPlugin("G:\Sample\AVI\VirtualDub filters\Logo.vdf", "Logovdf", 1)
return clip.Logovdf(default(x,0), default(y,0),
\ default(Alpha,255),
\ default(transparent,false)?1:0, default(R,0), default(G,0), default(B,0), default(tolerance,0),
\ default(LogoName,"G:\Sample\pics\bmp VDM\VDM01.bmp"),
\ default(Animate,false)?1:0,
\ default(Start,0),
\ default(Duration,0), default(Loops,0),
\ default(FadeIn,0), default(End,0), default(FadeOut,0))
}
converttorgb32()
StaticLogo(460,0,255,true,152,115,211,40,"G:\Sample\pics\bmp VDM\VDM04.bmp",false,120,0,0,24,360,24)
引用
int "x",int "y":图片的水平,垂直坐标;
int "Alpha":透明度,相当于AviSynth中Layer滤镜的"level"参数,取值0-255
bool "transparent":设置图片的透明通道,true开启,false关闭,开启后,int "R",int "G",int "B"以及int "tolerance"才可用;其作用与AviSynth中colorkeymask滤镜的作用完全相同
int "R",int "G",int "B":RGB的十进制数
int "tolerance":作用与AviSynth中colorkeymask滤镜的"tolerance"一样,取值0-255
string "LogoName":图片logo的名称,带上路径
bool "Animate":设置动态效果;true开启,false关闭
int "Start":图片出现时影片所在的帧数
int "Duration":动画序列中每张BMP图显示所用的帧数;最小设为1(对静态图片设为0)
int "Loops":动画序列循环的次数;若设为0,则表示不受限制,循环次数由显示时间决定
int "FadeIn":淡入所用帧数
int "End":图片消失时影片所在的帧数
int "FadeOut":淡出所用帧数
引用
AVISource("G:\Sample\AVI\s01.avi")
function AnimatedLogo(clip,int "x", int "y", int "Alpha", bool "transparent",
\ int "R", int "G", int "B", int "tolerance", string "LogoName",
\ bool "Animate", int "Start", int "Duration", int "Loops",
\ int "FadeIn", int "End", int "FadeOut")
{
LoadVirtualdubPlugin("G:\Sample\AVI\VirtualDub filters\Logo.vdf", "Logovdf", 1)
return clip.Logovdf(default(x,0), default(y,0),
\ default(Alpha,255),
\ default(transparent,false)?1:0, default(R,0), default(G,0), default(B,0), default(tolerance,0),
\ default(LogoName,"G:\Sample\pics\bmp VDM\VDM01.bmp"),
\ default(Animate,false)?1:0,
\ default(Start,0),
\ default(Duration,0), default(Loops,0),
\ default(FadeIn,0), default(End,0), default(FadeOut,0))
}
converttorgb32()
AnimatedLogo(548,0,255,true,0,0,0,50,"G:\Sample\pics\bmp Earth\0000.BMP",true,120,1,0,24,490,24)
maomao333@2005-02-25 17:29
从射手网下载下来的VDM1.4.13.1里没有plugins文件夹,自己建立一个,将logo.vdf放在里面maomao333@2005-02-25 17:30
使用vdub_filters.avs:引用
Import("G:\Sample\AVI\vdub_filters.avs")
ConvertToRGB32()
VD_logo(460, 0, 255, true, 152, 115, 211, 40,"G:\Sample\pics\bmp VDM\VDM04.bmp", true, 120, 0, 0, 24, 360, 24)
ConvertToYUY2()
引用
Import("G:\Sample\AVI\vdub_filters.avs")
ConvertToRGB32()
VD_logo(548, 0, 255, true, 0, 0, 0, 50,"G:\Sample\pics\bmp Earth\0000.BMP", true, 120, 1, 0, 24, 490, 24)
ConvertToYUY2()
引用LoadVirtualdubPlugin("G:\Sample\AVI\VirtualDub filters\Logo.vdf", "VD_Logo", 1)
Import("G:\Sample\AVI\simplified_versions.avs")
ConvertToRGB()
RE(30,30,0,20)
animate(240,312,"MV",30,30,240,1,155,30,312,1)
RE(155,30,313,20)
animate(552,624,"MV",155,30,552,1,280,30,624,1)
RE(280,30,625,20)
animate(864,936,"MV",280,30,864,1,405,30,936,1)
RE(405,30,937,20)
animate(1176,1248,"MV",405,30,1176,1,530,30,1248,1)
RE(530,30,1249,20)
animate(1488,1560,"MV",530,30,1488,1,30,250,1560,1)
RE(30,250,1561,20)
animate(1800,1872,"MV",30,250,1800,1,155,250,1872,1)
RE(155,250,1873,20)
animate(2112,2184,"MV",155,250,2112,1,280,250,2184,1)
RE(280,250,2185,20)
animate(2424,2496,"MV",280,250,2424,1,405,250,2496,1)
RE(405,250,2497,20)
animate(2736,2808,"MV",405,250,2736,1,530,250,2808,1)
RE(530,250,2809,20)
maomao333@2005-02-25 17:32
Overlay滤镜引用
v1=avisource("G:\Sample\AVI\s09.avi")
v2=ImageReader("G:\Sample\pics\p15.jpg").FlipVertical()
v3=ImageReader("G:\Sample\pics\p16.jpg").FlipVertical().ConvertToYUY2.ColorYUV(levels="TV->PC")
v4=Overlay(v1,v2,x=460,mode="Blend",mask=v3)
ColorYUV(v4,levels="PC->TV")
引用
v1=avisource("G:\Sample\AVI\s09.avi")
v2=ImageReader("G:\Sample\pics\p15.jpg").FlipVertical()
v3=ImageReader("G:\Sample\pics\p16.jpg").FlipVertical()
Overlay(v1,v2,x=460,mode="Blend",mask=v3,pc_range=true)
ConvertToYV12()
maomao333@2005-02-25 17:33
用Histogram观察亮度luma( Y ),色度chroma的分布:引用
colordistributions=ImageReader("G:\Sample\pics\p11.jpg").FlipVertical().Crop(0,3,180,116).ConvertToYV12()
Histogram (colordistributions, "levels")
引用
colordistributions=ImageReader("G:\Sample\pics\p16.jpg").FlipVertical().Crop(0,3,180,116).ConvertToYV12()
Histogram (colordistributions, "levels")
maomao333@2005-02-25 17:34
动态:引用
v1=avisource("G:\Sample\AVI\s09.avi").trim(125,374)
v2=AviSource("G:\Sample\AVI\s04.avi")
v3=AviSource("G:\Sample\AVI\s05.avi")
v4=Overlay(v1,v2,mode="Blend",mask=v3,pc_range=true)
v5=v4.ConvertToYV12
v6=avisource("G:\Sample\AVI\s09.avi").ConvertToYV12
v7=v6.trim(0,124)+v5+v6.trim(375,0)
return v7
引用
colordistributions=AviSource("G:\Sample\AVI\s05.avi").Crop(0,6,300,240).ConvertToYV12()
Histogram (colordistributions, "levels")
引用
v1=avisource("G:\Sample\AVI\s09.avi").trim(125,374).ConvertToYUY2
v2=AviSource("G:\Sample\AVI\s04.avi")
v3=AviSource("G:\Sample\AVI\s05.avi").ConvertToYUY2.ColorYUV(levels="TV->PC")
v4=Overlay(v1,v2,mode="Blend",mask=v3)
v5=v4.ColorYUV(levels="PC->TV")
v6=avisource("G:\Sample\AVI\s09.avi").ConvertToYUY2
v7=v6.trim(0,124)+v5+v6.trim(375,0)
return v7
maomao333@2005-02-25 17:35
imagesequence滤镜引用
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\imagesequence.dll")
v1=AviSource("G:\Sample\AVI\s09.avi").converttorgb32
v2=CoronaSequence("G:\Sample\pics\p15.jpg", start=0, stop=240, fps=24, textmode=0, posx=0, posy=0).converttorgb32
v3=CoronaSequence("G:\Sample\pics\p16.jpg", start=0, stop=240, fps=24, textmode=0, posx=0, posy=0).converttorgb32
v2=v2.mask(v3).FadeIO(24)
v4=trim(v1,0,119)
v5=trim(v1,120,0).Layer(v2,"add",255,460,0)
return v4+v5
引用
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\imagesequence.dll")
v1=avisource("G:\Sample\AVI\s09.avi").trim(120,359).ConvertToYUY2
v2=CoronaSequence("G:\Sample\pics\p15.jpg", start=0, stop=240, fps=24, textmode=0, posx=0, posy=0)
v3=CoronaSequence("G:\Sample\pics\p16.jpg", start=0, stop=240, fps=24, textmode=0, posx=0, posy=0).ConvertToYUY2.ColorYUV(levels="TV->PC")
v4=Overlay(v1,v2,mode="Blend",mask=v3)
v5=v4.ColorYUV(levels="PC->TV")
v6=avisource("G:\Sample\AVI\s09.avi").ConvertToYUY2
v7=v6.trim(0,119)+v5+v6.trim(360,0)
return v7
引用
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\imagesequence.dll")
v1=avisource("G:\Sample\AVI\s09.avi").trim(120,0).ConvertToYUY2
v2=CoronaSequence("G:\Sample\pics\p15.jpg", start=0, stop=240, fps=24, textmode=0, posx=0, posy=0)
v3=CoronaSequence("G:\Sample\pics\p16.jpg", start=0, stop=240, fps=24, textmode=0, posx=0, posy=0).ConvertToYUY2.ColorYUV(levels="TV->PC")
v4=Overlay(v1,v2,mode="Blend",mask=v3)
v5=v4.ColorYUV(levels="PC->TV")
v6=avisource("G:\Sample\AVI\s09.avi").ConvertToYUY2
v7=v6.trim(0,119)+v5
return v7
maomao333@2005-02-25 17:36
动态:引用
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\imagesequence.dll")
v1=AviSource("G:\Sample\AVI\s09.avi").converttorgb32
v2=CoronaSequence("G:\Sample\pics\png\f1\f1%.2d.png", start=1, stop=12, fps=24, textmode=0, posx=0, posy=0).converttorgb32.Loop (20)
v3=CoronaSequence("G:\Sample\pics\png\f2\f2%.2d.png", start=1, stop=12, fps=24, textmode=0, posx=0, posy=0).converttorgb32.Loop (20)
v2=v2.mask(v3).FadeIO(24)
v4=trim(v1,0,119)
v5=trim(v1,120,0).Layer(v2,"add",255,0,0)
return v4+v5
引用
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\imagesequence.dll")
v1=avisource("G:\Sample\AVI\s09.avi").trim(120,359).ConvertToYUY2
v2=CoronaSequence("G:\Sample\pics\png\f1\f1%.2d.png", start=1, stop=12, fps=24, textmode=0, posx=0, posy=0).Loop (20)
v3=CoronaSequence("G:\Sample\pics\png\f2\f2%.2d.png", start=1, stop=12, fps=24, textmode=0, posx=0, posy=0).Loop (20).ConvertToYUY2.ColorYUV(levels="TV->PC")
v4=Overlay(v1,v2,mode="Blend",mask=v3)
v5=v4.ColorYUV(levels="PC->TV")
v6=avisource("G:\Sample\AVI\s09.avi").ConvertToYUY2
v7=v6.trim(0,119)+v5+v6.trim(360,0)
return v7
引用
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\imagesequence.dll")
v1=AviSource("G:\Sample\AVI\s09.avi").converttorgb32
v2=CoronaSequence("G:\Sample\pics\bmp Earth\00%.2d.bmp", start=0, stop=74, fps=24, textmode=0, posx=0, posy=0).Loop(5)
v3=v2.converttorgb32.colorkeymask($000000,50)
v4=trim(v1,120,359).Layer(v3,"add",255,0,0)
v5=v1.trim(0,119)+v4+v1.trim(360,0)
return v5
maomao333@2005-02-25 17:38
textmode=1引用
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\imagesequence.dll")
ImageSequence("G:\Sample\pics\imagesequence\r01.jpg", start=0, stop=640, fps=24, textmode=1, posx=60, posy=120)
引用
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\imagesequence.dll")
ImageSequence("G:\Sample\pics\imagesequence\r01.jpg", start=0, stop=640, fps=24, textmode=2, posx=10, posy=220)
maomao333@2005-02-25 17:38
讨论:引用
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\imagesequence.dll")
v1=AviSource("G:\Sample\AVI\s09.avi").converttorgb32
v2=CoronaSequence("G:\Sample\pics\bmp Earth\00%.2d.bmp", start=0, stop=74, fps=24, textmode=0, posx=0, posy=0).Loop(3)
v3=v2.converttorgb32.colorkeymask($000000,50)
v4=trim(v1,0,119)
v5=trim(v1,120,0).Layer(v3,"add",255,0,0)
return v4+v5