SmoothDeinterlaceFunctions

From Avisynth wiki
Jump to: navigation, search

SmoothDeinterlace is Xesdeeni2001's port of Gunnar Thalin's 'Smooth' deinterlacer for VirtualDub.

It is hosted on Gunnar Thalin's webpage.


One of the many cool things you can do with this filter is convert between broadcast formats with much less quality loss than would be possible using standard AviSynth filters alone. Here are some functions suggested in the documentation; feel free to use them.

   function PAL2NTSC_DV(clip c)
   {
       c.SmoothDeinterlace(tff=false, doublerate=true)
       BilinearResize(720, 480)
       ChangeFPS(59.94)
       SeparateFields()
       SelectEvery(4, 0, 3)
   }
   function NTSC2PAL_DV(clip c)
   {
       c.SmoothDeinterlace(tff=false, doublerate=true)
       BilinearResize(720, 576)
       ConvertFPS(50)
       SeparateFields()
       SelectEvery(4, 0, 3)
   }
   function PAL2NTSC_DVD(clip c)
   {
       c.SmoothDeinterlace(tff=true, doublerate=true)
       BilinearResize(720, 480)
       ChangeFPS(59.94)
       SeparateFields()
       SelectEvery(4, 1, 2)
   }
   function NTSC2PAL_DVD(clip c)
   {
       c.SmoothDeinterlace(tff=true, doublerate=true)
       BilinearResize(720, 576)
       ConvertFPS(50)
       SeparateFields()
       SelectEvery(4, 1, 2)
   }

Like what you see? Just copy the above into a script, put it in your plugins directory and start using them immediately!

Personal tools