ApplyInterlacedFilter

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
m (Shared functions/InterlacedSmoothing moved to ApplyInterlacedFilter: Remove obsolete shared functions category. See Talk:External filters.)
 
m (1 revision)

Revision as of 22:34, 9 May 2013

This applies any filter to an interlaced source. The filter can be used for both spatial filters, like Blur and temporal filters like TemporalSoften.

function ApplyInterlacedFilter(clip v1, string filter)
{
   v2 = separatefields(v1)
   selecteven(v2)
   even = Eval(filter)
   selectodd(v2)
   odd = Eval(filter)
   interleave(even,odd)
   return weave()
}

Example of usage

AviSource("file.avi")
ApplyInterlacedFilter(last, "blur(1.5)")
Personal tools