『漫游』酷论坛>『影音数码技术学习交流』>[请教]avs挂图片能让图 ..

[请教]avs挂图片能让图片动吗?

拉克西丝~@2008-01-05 14:09

我用layer这个合并命令合并了一个视频和一个图片,但是发现只能是静态的,有什么办法让这个图片像ass代码里那样,慢慢放大和慢慢缩小呢?请教各位大大。:D
引用

superkidx@2008-01-05 14:24

这个要用ASS/SSA吧
引用

idear@2008-01-05 17:27

传说中的水印?好像AE更快?
引用

系统杀手@2008-01-05 20:39

well 可以参考我写的某非线AVS

首先导出图片为图片序列和相应的黑白MASK图片序列

命名成101.jpg 102.jpg ........ 等等

载入:

#图片路径设置
maskbasefile="files\43maskbase.jpg"
maskfile="files\43mask.jpg"
maskblurfile="files\43maskblur.jpg"
maskinfile="files\43maskin\%d.jpg"
maskoutfile="files\43maskout\%d.jpg"
maskblurinfile="files\43maskblurin\%d.jpg"
maskbluroutfile="files\43maskblurout\%d.jpg"
还有堆其他的...... 片源和声音啥的..... 懒得找.....

语句:
maskbase=ImageSource(workdir+maskbasefile,0,239,23.976,false,false).ConvertToRGB32
mask=ImageSource(workdir+maskfile,0,191,23.976,false,false).ConvertToRGB32
maskblur=ImageSource(workdir+maskblurfile,0,191,23.976,false,false).ConvertToRGB32
maskin=ImageSource(workdir+maskinfile,101,124,23.976,false,false).ConvertToRGB32
maskout=ImageSource(workdir+maskoutfile,101,124,23.976,false,false).ConvertToRGB32
maskblurin=ImageSource(workdir+maskblurinfile,101,124,23.976,false,false).ConvertToRGB32
maskblurout=ImageSource(workdir+maskbluroutfile,101,124,23.976,false,false).ConvertToRGB32
maskall=maskin+mask+maskout
maskblurall=maskblurin+maskblur+maskblurout
word=BlankClip(240,416,312,"RGB32",23.976,1,44100,true,true,$000000).Subtitle(text1,text1x,text1y,0,240,text1font,text1size,text1color,text1halo,1,text1spc,text1lsp).Subtitle(text2,text2x,text2y,0,240,text2font,text2size,text2color,text2halo,1,text2spc,text2lsp)
wordmask=BlankClip(240,416,312,"RGB32",23.976,1,44100,true,true,$000000).Subtitle(text1,text1x,text1y,0,240,text1font,text1size,$FFFFFF,$FFFFFF,1,text1spc,text1lsp).Subtitle(text2,text2x,text2y,0,240,text2font,text2size,$FFFFFF,$FFFFFF,1,text2spc,text2lsp)
wordT=Mask(word,wordmask)
maskbaseword=Layer(maskbase,wordT,"add",255,0,0)
maskbaseT=Mask(maskbaseword,maskall)
maskblurT=Mask(prerawblur,maskblurall)
mux1=Layer(preraw,maskblurT,"add",255,0,0)
mux2=Layer(mux1,maskbaseT,"add",255,0,0)


载入 去黑底 合成 就这个流程


还有个办法是载入代Mask的RGB32 AVI 不过做不来......

劝LZ还是用ASS或用AE
引用

系统杀手@2008-01-05 20:45

\%d.jpg 可以载图片序列 这点最重要

直接引用Help里的sample了,怎么自定义也不清楚


至于放大缩小... frameevaluate? 没试过...
引用

idear@2008-01-06 10:59

引用
最初由 系统杀手 发布
well 可以参考我写的某非线AVS

首先导出图片为图片序列和相应的黑白MASK图片序列

命名成101.jpg 102.jpg ........ 等等

载入:

#图片路径设置
maskbasefile="files\43maskbase.jpg"
maskfile="files\43mask.jpg"
maskblurfile="files\43maskblur.jpg"
maskinfile="files\43maskin\%d.jpg"
maskoutfile="files\43maskout\%d.jpg"
maskblurinfile="files\43maskblurin\%d.jpg"
maskbluroutfile="files\43maskblurout\%d.jpg"
还有堆其他的...... 片源和声音啥的..... 懒得找.....

语句:
maskbase=ImageSource(workdir+maskbasefile,0,239,23.976,false,false).ConvertToRGB32
mask=ImageSource(workdir+maskfile,0,191,23.976,false,false).ConvertToRGB32
maskblur=ImageSource(workdir+maskblurfile,0,191,23.976,false,false).ConvertToRGB32
maskin=ImageSource(workdir+maskinfile,101,124,23.976,false,false).ConvertToRGB32
maskout=ImageSource(workdir+maskoutfile,101,124,23.976,false,false).ConvertToRGB32
maskblurin=ImageSource(workdir+maskblurinfile,101,124,23.976,false,false).ConvertToRGB32
maskblurout=ImageSource(workdir+maskbluroutfile,101,124,23.976,false,false).ConvertToRGB32
maskall=maskin+mask+maskout
maskblurall=maskblurin+maskblur+maskblurout
word=BlankClip(240,416,312,"RGB32",23.976,1,44100,true,true,$000000).Subtitle(text1,text1x,text1y,0,240,text1font,text1size,text1color,text1halo,1,text1spc,text1lsp).Subtitle(text2,text2x,text2y,0,240,text2font,text2size,text2color,text2halo,1,text2spc,text2lsp)
wordmask=BlankClip(240,416,312,"RGB32",23.976,1,44100,true,true,$000000).Subtitle(text1,text1x,text1y,0,240,text1font,text1size,$FFFFFF,$FFFFFF,1,text1spc,text1lsp).Subtitle(text2,text2x,text2y,0,240,text2font,text2size,$FFFFFF,$FFFFFF,1,text2spc,text2lsp)
wordT=Mask(word,wordmask)
maskbaseword=Layer(maskbase,wordT,"add",255,0,0)
maskbaseT=Mask(maskbaseword,maskall)
maskblurT=Mask(prerawblur,maskblurall)
mux1=Layer(preraw,maskblurT,"add",255,0,0)
mux2=Layer(mux1,maskbaseT,"add",255,0,0)


载入 去黑底 合成 就这个流程


还有个办法是载入代Mask的RGB32 AVI 不过做不来......

劝LZ还是用ASS或用AE
求问那个mask是干吗用的,要是生成图像序列的话,直接导入压制不就可以了么
引用

系统杀手@2008-01-06 14:04

PS RP了,输出带Alpha通道的BMP时报错 于是用两个jpg来代替

mask么就是通过第二个jpg的Alpha信息去掉第一个jpg的背景嘛

否则不就成一方块了么....
引用

拉克西丝~@2008-01-07 14:56

引用
最初由 系统杀手 发布
well 可以参考我写的某非线AVS

首先导出图片为图片序列和相应的黑白MASK图片序列

命名成101.jpg 102.jpg ........ 等等

载入:

#图片路径设置
maskbasefile="files\43maskbase.jpg"
maskfile="files\43mask.jpg"
maskblurfile="files\43maskblur.jpg"
maskinfile="files\43maskin\%d.jpg"
maskoutfile="files\43maskout\%d.jpg"
maskblurinfile="files\43maskblurin\%d.jpg"
maskbluroutfile="files\43maskblurout\%d.jpg"
还有堆其他的...... 片源和声音啥的..... 懒得找.....

语句:
maskbase=ImageSource(workdir+maskbasefile,0,239,23.976,false,false).ConvertToRGB32
mask=ImageSource(workdir+maskfile,0,191,23.976,false,false).ConvertToRGB32
maskblur=ImageSource(workdir+maskblurfile,0,191,23.976,false,false).ConvertToRGB32
maskin=ImageSource(workdir+maskinfile,101,124,23.976,false,false).ConvertToRGB32
maskout=ImageSource(workdir+maskoutfile,101,124,23.976,false,false).ConvertToRGB32
maskblurin=ImageSource(workdir+maskblurinfile,101,124,23.976,false,false).ConvertToRGB32
maskblurout=ImageSource(workdir+maskbluroutfile,101,124,23.976,false,false).ConvertToRGB32
maskall=maskin+mask+maskout
maskblurall=maskblurin+maskblur+maskblurout
word=BlankClip(240,416,312,"RGB32",23.976,1,44100,true,true,$000000).Subtitle(text1,text1x,text1y,0,240,text1font,text1size,text1color,text1halo,1,text1spc,text1lsp).Subtitle(text2,text2x,text2y,0,240,text2font,text2size,text2color,text2halo,1,text2spc,text2lsp)
wordmask=BlankClip(240,416,312,"RGB32",23.976,1,44100,true,true,$000000).Subtitle(text1,text1x,text1y,0,240,text1font,text1size,$FFFFFF,$FFFFFF,1,text1spc,text1lsp).Subtitle(text2,text2x,text2y,0,240,text2font,text2size,$FFFFFF,$FFFFFF,1,text2spc,text2lsp)
wordT=Mask(word,wordmask)
maskbaseword=Layer(maskbase,wordT,"add",255,0,0)
maskbaseT=Mask(maskbaseword,maskall)
maskblurT=Mask(prerawblur,maskblurall)
mux1=Layer(preraw,maskblurT,"add",255,0,0)
mux2=Layer(mux1,maskbaseT,"add",255,0,0)


载入 去黑底 合成 就这个流程


还有个办法是载入代Mask的RGB32 AVI 不过做不来......

劝LZ还是用ASS或用AE


谢谢。我研究下。
引用

| TOP