Log in

View Full Version : Dissolve edges. Possible?


matrix
2nd March 2003, 00:13
Hi everybody.

Is there an easier way of dissolving the edges of a clip into another clip?
I tried the following script, I know, it's rudimentar, but just wanted to see how it would look.
It looks good, exept as you can imagine, the layers are visible. Unless reducing the size of the clip.

clip0=AviSource("F:\Cap.avi").AssumeFPS(29.970,True)
clip=clip0.trim(43796,44295)
l01=clip.Crop(0,0,12,480)
l02=clip.Crop(12,8,12,464)
l03=clip.Crop(24,16,12,448)
l04=clip.Crop(36,24,12,432)
l05=clip.Crop(48,32,12,416)
l06=clip.Crop(60,40,12,400)
l07=clip.Crop(72,48,12,384)
l08=clip.Crop(84,56,12,368)
l09=clip.Crop(96,64,12,352)
l10=clip.Crop(108,72,12,336)
l11=clip.Crop(120,80,12,320)
l12=clip.Crop(132,88,12,304)

r01=clip.Crop(628,0,12,480)
r02=clip.Crop(616,8,12,464)
r03=clip.Crop(604,16,12,448)
r04=clip.Crop(592,24,12,432)
r05=clip.Crop(580,32,12,416)
r06=clip.Crop(568,40,12,400)
r07=clip.Crop(556,48,12,384)
r08=clip.Crop(544,56,12,368)
r09=clip.Crop(532,64,12,352)
r10=clip.Crop(520,72,12,336)
r11=clip.Crop(508,80,12,320)
r12=clip.Crop(496,88,12,304)

t01=clip.Crop(12,0,616,8)
t02=clip.Crop(24,8,592,8)
t03=clip.Crop(36,16,568,8)
t04=clip.Crop(48,24,544,8)
t05=clip.Crop(60,32,520,8)
t06=clip.Crop(72,40,496,8)
t07=clip.Crop(84,48,472,8)
t08=clip.Crop(96,56,448,8)
t09=clip.Crop(108,64,424,8)
t10=clip.Crop(120,72,400,8)
t11=clip.Crop(132,80,376,8)
t12=clip.Crop(144,88,352,8)

b01=clip.Crop(12,472,616,8)
b02=clip.Crop(24,464,592,8)
b03=clip.Crop(36,456,568,8)
b04=clip.Crop(48,448,544,8)
b05=clip.Crop(60,440,520,8)
b06=clip.Crop(72,432,496,8)
b07=clip.Crop(84,424,472,8)
b08=clip.Crop(96,416,448,8)
b09=clip.Crop(108,408,424,8)
b10=clip.Crop(120,400,400,8)
b11=clip.Crop(132,392,376,8)
b12=clip.Crop(144,384,352,8)

clip1=clip.Crop(144,96,352,288)
BlankClip(length=500, width=760, height=600, fps=29.970, color=$000000).ConvertToYUY2()

Layer(l01,"add",15,60,60)
Layer(l02,"add",35,72,68)
Layer(l03,"add",55,84,76)
Layer(l04,"add",75,96,84)
Layer(l05,"add",95,108,92)
Layer(l06,"add",115,120,100)
Layer(l07,"add",135,132,108)
Layer(l08,"add",155,144,116)
Layer(l09,"add",175,156,124)
Layer(l10,"add",195,168,132)
Layer(l11,"add",215,180,140)
Layer(l12,"add",235,192,148)

Layer(r01,"add",15,688,60)
Layer(r02,"add",35,676,68)
Layer(r03,"add",55,664,76)
Layer(r04,"add",75,652,84)
Layer(r05,"add",95,640,92)
Layer(r06,"add",115,628,100)
Layer(r07,"add",135,616,108)
Layer(r08,"add",155,604,116)
Layer(r09,"add",175,592,124)
Layer(r10,"add",195,580,132)
Layer(r11,"add",215,568,140)
Layer(r12,"add",235,556,148)

Layer(t01,"add",15,72,60)
Layer(t02,"add",35,84,68)
Layer(t03,"add",55,96,76)
Layer(t04,"add",75,108,84)
Layer(t05,"add",95,120,92)
Layer(t06,"add",115,132,100)
Layer(t07,"add",135,144,108)
Layer(t08,"add",155,156,116)
Layer(t09,"add",175,168,124)
Layer(t10,"add",195,180,132)
Layer(t11,"add",215,192,140)
Layer(t12,"add",235,204,148)

Layer(b01,"add",15,72,532)
Layer(b02,"add",35,84,524)
Layer(b03,"add",55,96,516)
Layer(b04,"add",75,108,508)
Layer(b05,"add",95,120,500)
Layer(b06,"add",115,132,492)
Layer(b07,"add",135,144,484)
Layer(b08,"add",155,156,476)
Layer(b09,"add",175,168,468)
Layer(b10,"add",195,180,460)
Layer(b11,"add",215,192,452)
Layer(b12,"add",235,204,444)

Layer(clip1,"add",255,204,156)
bicubicresize(320,240)

So what do you think? Is there an better way?

Thanks for any answer.

stickboy
2nd March 2003, 11:50
I think it'd be easier to create a mask in Photoshop, use the ImageSequence plug-in or VirtualDub to make a clip out of it, and then then use the Mask command.

matrix
2nd March 2003, 18:05
I think it'd be easier to create a mask in Photoshop, use the ImageSequence plug-in or VirtualDub to make a clip out of it, and then then use the Mask command.
I think that would be usefull for a blankclip as baseclip.
What I want is to have another clip as baseclip.
Well, this is much easier, basically the same thing but easier to do.(never thought of it before):stupid:

clip1=AviSource("F:\Cap.avi").AssumeFPS(29.970,True)
clip=clip1.trim(43796,44295)
ley01=clip.Crop(0,0,580,440)
ley02=clip.Crop(12,8,556,424)
ley03=clip.Crop(24,16,532,408)
ley04=clip.Crop(36,24,508,392)
ley05=clip.Crop(48,32,484,376)
ley06=clip.Crop(60,40,460,360)
ley07=clip.Crop(72,48,436,344)
ley08=clip.Crop(84,56,412,328)
ley09=clip.Crop(96,64,388,312)
ley10=clip.Crop(108,72,364,296)
ley11=clip.Crop(120,80,340,272)
ley12=clip.Crop(132,88,316,264)

clip2=clip1.trim(2600,3099)
#BlankClip(length=500, width=640, height=480, fps=29.970, color=$ffffff).ConvertToYUY2()
clip2

Layer(ley01,"add",15,30,20)
Layer(ley02,"add",35,42,28)
Layer(ley03,"add",55,54,36)
Layer(ley04,"add",75,66,44)
Layer(ley05,"add",95,78,52)
Layer(ley06,"add",115,90,60)
Layer(ley07,"add",135,102,68)
Layer(ley08,"add",155,114,76)
Layer(ley09,"add",175,126,84)
Layer(ley10,"add",195,138,92)
Layer(ley11,"add",215,150,100)
Layer(ley12,"add",235,162,108)

bicubicresize(320,240)

And so, the baseclip is visible thru the edges of the overlay clip.
Actually at this resolution which is more than I want anyway, it looks really good.
Also by resizing each of them when laying it out, and changing the x and y values, it can be put anywhere on the screen.

Thanks for your suggestion.
I'm open for more, if there are any other ideas.

Edit:
Also by resizing each of them when laying it out, and changing the x and y values, it can be put anywhere on the screen.
Never mind that. It doesn't seem to be so easy.