CutFinder
From Avisynth wiki
(Difference between revisions)
m (Shared functions/CutFinder moved to CutFinder: Remove obsolete shared functions category. See Talk:External filters.) |
m (1 revision) |
Latest revision as of 22:34, 9 May 2013
Example for finding the best frame to concatenate 2 video streams. If the LOWER LEFT image shows the least differences, the cut-point is okay!
# this is the framenumber of the first clip which correspondents # to one of the first frames of the second clip criticalFrame = 80020 # Both video sources with framenumbers a = AviSource("Schtonk_1.avi").ShowFrameNumber(true) b = AviSource("Schtonk_2.avi").ShowFrameNumber(true) c = a.Trim(criticalFrame,0) d = Subtract(b,c).Levels(64,1,192,0,255) e = Subtract(b,c.Trim(1,0)).Levels(64,1,192,0,255) return StackVertical( \ StackHorizontal(c.Subtitle("clip a"), b.Subtitle("clip b")), \ StackHorizontal(d.Subtitle("clip a ^ clip b"), e.Subtitle("clip a+1 ^ clip b")))
Back to Shared functions.