GuessParity
From Avisynth wiki
(Difference between revisions)
m (Shared functions/GuessParity moved to GuessParity: Remove obsolete shared functions category. See Talk:External filters.) |
m (1 revision) |
Latest revision as of 22:34, 9 May 2013
A script to guess the parity of your clip (thanks to mf).
function GuessParity(clip input) { input = AssumeFrameBased(input) global guessparitytff = AssumeTFF(input).SeparateFields().Bob() global guessparitybff = AssumeBFF(input).SeparateFields().Bob() istff = input.AssumeTFF().Subtitle("Guessed TopFirst", x=20, y=20) isbff = input.AssumeBFF().Subtitle("Guessed BottomFirst", x=20, y=20) ConditionalFilter(guessparitytff, istff, isbff, "YDifferenceFromPrevious(guessparitytff) + YDifferenceToNext(guessparitytff)", \ "<", "YDifferenceFromPrevious(guessparitybff) + YDifferenceToNext(guessparitybff)", false) }