View Full Version : Replace every 24th frame with a blend of the previous and subsequent frames?
cobo
24th October 2006, 20:54
How can I replace every 24th frame with a blend of the previous and subsequent frames over a range of around 8,000 frames within a longer clip.
stickboy
25th October 2006, 00:25
Use TemporalSoften is a radius of 1 to create a clip where every frame is blended with the previous and subsequent frames, and then use the DeleteEvery and InterleaveEvery functions from my ApplyEvery plug-in (http://www.avisynth.org/stickboy) to replace every 24th frame in the original clip with the corresponding frame from the filtered clip.
My JDL_SimpleApplyEvery function simplifies some of that work. See the ApplyEvery documentation for examples.
cobo
25th October 2006, 18:34
What I wanted to do was get rid of every 24th frame which is shifted down a bit from the previous and subsequent frames.
I took your suggestion and instead of TemporalSoften I used MergeLuma/MergeChroma on the 23rd and 25th frames and used your DeleteEvery and InterleaveEvery to replace the deleted frames with the merged frames.
This worked as far as replacing every 24th frame goes. Unfortunately it didn't have the effect I hoped it would, which was to diminish a bobbing effect when playing the clip that I thought was caused mostly by a shift of the image downwards that appeared most obvious on the 24th frame when I stepped through the clip in VirtualDub.
IanB
26th October 2006, 04:04
In 2.5.7 there is now a fast Merge() function to blend 2 clips (both chroma and luma).
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.