Framerate halving filter for Avisynth