Log in

View Full Version : Overlaying AFX clip on video


subcool
22nd July 2005, 09:19
I have rendered a clip in AFX i'd like to overlay on a video... i have read about the overlay() option in avs, tried a million different things but none work.
only thing that remotely works is
Overlay(base, overlay,mode="Blend",opacity=0.5)
But that is not what im looking for, does anyone have some tips on howto get this to work properly? without making the Base or Overlay transparent like the above code does...

mg262
22nd July 2005, 09:27
It's not clear what you want. If the overlay is completely opaque, then you won't be able to see the base at all. If you post screenshots we can be more helpful.

If you're in a hurry, you could also try mode = "lighten" to see if that's anything like what you're aiming for.

Zarxrax
22nd July 2005, 18:29
What I do is export out of after effects with a straight (not matted) alpha channel, then use this:

video = AVISource("source.avi")
overlays = AVISource("overlays.avi")
composite = Overlay(video, overlays, mask = overlays.ShowAlpha("yv12"))

assuming video is a yv12 clip, and overlays is an rgb32 clip.