Blending Frame

Support for my Avisynth filters
Post Reply
Posts: 1
Joined: Wed Nov 14, 2012 9:09 am

Blending Frame

Post by shakana » Thu Nov 22, 2012 3:24 pm

I'm looking for the best way to blend one frame at a time. Below is what I was thinking:


# select frames to blend
frame1 = trim(source, frame, length=1)
frame2 = trim(source, frame+1, length=1)

frame1 = Overlay(frame1, frame2, mode="blend", opacity=0.5) #blend frames
source=trim(source, 0, frame) + frame1 + trim(source, frame+1) #insert blended frame

What is the impact to the audio using this approach?

Posts: 38
Joined: Wed Sep 29, 2010 12:20 pm

Re: Blending Frame

Post by Nick007 » Thu Nov 22, 2012 6:54 pm

For the audio to stay in synch, you would have to discard 1 frame (either frame1 or frame2):

source=trim(source, 0, frame) + frame1 + trim(source, frame+2, 0) #insert blended frame

Post Reply