Log in

View Full Version : How to blend two sources ???


Soulhunter
16th January 2004, 22:09
How can I blend two (or more) filter chains together ???

Like this two chains...

mpeg2source("F:\test.d2v").BicubicResize(1024,576,0,0.5)


mpeg2source("F:\test.d2v").BicubicResize(1024,576,0,0.5).deen()


Tia, Soulhunter

stickboy
16th January 2004, 22:21
clip1 = mpeg2source("F:\test.d2v").BicubicResize(1024,576,0,0.5)
clip2 = clip1.deen()

Overlay(clip1, clip2, opacity=0.5) # requires the latest AviSynth CVS binary
or

Layer(clip1.ConvertToYUY2(), clip2.ConvertToYUY2(), "fast")

Soulhunter
16th January 2004, 22:38
Wow... It really works !!!

Big thanks for the quick answer... :)

But now I have a additional question... :(

Why do I get a syntax error with this script ???

Clip1 = mpeg2source("F:\DVD Backups\Batman 1966\Batman1966.d2v").BicubicResize(1024,576,0,0.5)
#
Clip2 = Original= mpeg2source("F:\DVD Backups\Batman 1966\Batman1966.d2v").BicubicResize(1024,576,0,0.5).Smoothed=mpeg2source("F:\DVD Backups\Batman 1966\Batman1966.d2v").BicubicResize(1024,576,0,0.5).mipsmooth(downsizer="bicubic",upsizer="bicubic", scalefactor=0.6, scenechange = 10.0, method = "strong").Invertedmask=mpeg2source("F:\DVD Backups\Batman 1966\Batman1966.d2v").BicubicResize(1024,576,0,0.5).Unfilter(50,50).EdgeMask(3, 255, 255, 255, "sobel", Y=3, U=3, V=3).Invert().MaskedMerge(original, smoothed, invertedmask)
#
Layer(clip1.ConvertToYUY2(), clip2.ConvertToYUY2(), "fast")

Tia, Soulhunter

Wilbert
16th January 2004, 23:45
Because your syntax is wrong :)

Clip2 = Original= mpeg2source

should be

Clip2 = mpeg2source

Soulhunter
17th January 2004, 21:45
Originally posted by Wilbert
Because your syntax is wrong :)
Yeah, Ive already fiddled this out last night... ;)

It should be...

Clip1 = mpeg2source("F:\DVD Backups\Batman 1966\Batman1966.d2v").BicubicResize(1024,576,0,0.5)
#
Original= Clip1
#
Smoothed= Clip1.mipsmooth(downsizer="bicubic",upsizer="bicubic", scalefactor=0.6, scenechange = 10.0, method = "strong")
#
Invertedmask=mpeg2source("F:\DVD Backups\Batman 1966\Batman1966.d2v").BicubicResize(1024,576,0,0.5).Unfilter(50,50).EdgeMask(3, 255, 255, 255, "sobel", Y=3, U=3, V=3).Invert()
#
Clip2 = MaskedMerge(original, smoothed, invertedmask)
#
Layer(clip1.ConvertToYUY2(), clip2.ConvertToYUY2(), "fast")

Anyhow, thanks... :)

Bye