PDA

View Full Version : Blurring two frames together?


`Orum
22nd February 2008, 13:53
Is there a easy way to take two different frames and essentially overlay them, at a ratio I can define? For example, you'd take the first frame and then lay the second frame on top of it at a particular level of transparency?

As I only need to do this for a few frames, I suppose I could just ImageReader()/ImageWriter and edit them in an external application, but I would like to know if there's a slick way to do it in AviSynth.

Thanks in advance!

J_Darnley
22nd February 2008, 14:08
Overlay(a, b, mode="blend", opacity=0.5) ? Getting the frames out of the video and then putting them back in would be the hardest bit.

`Orum
22nd February 2008, 14:14
Ah, I wonder why I didn't see that at first glance of AviSynth's internal filters list. I can easily pull the frames out with a Trim().

Thanks again

IanB
23rd February 2008, 06:34
Also there is the Merge() family, they are much faster than Overlay, but then all they do is blend the frames of 2 clips.