I'm looking for the best way to blend one frame at a time. Below is what I was thinking:
source=avisource("fullclip.avi")
# 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?
Blending Frame
Re: Blending Frame
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
source=trim(source, 0, frame) + frame1 + trim(source, frame+2, 0) #insert blended frame