ApplyInterlacedFilter: Difference between revisions

From Avisynth wiki
Jump to navigationJump to search
m 1 revision
 
m 1 revision
 
(One intermediate revision by one other user not shown)
Line 17: Line 17:
  ApplyInterlacedFilter(last, "blur(1.5)")
  ApplyInterlacedFilter(last, "blur(1.5)")


[[Category:Shared functions]]
 
{{FilterCat|External_filters|Other_filters|Support_filters}}

Latest revision as of 00:03, 20 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)")