I frequently encounter situation, when avisynth drops frames, that leads to desynchronization of overlays.

Please, consider small sample:

100frames-src.avi
Source AVI file, 100 frames
bug-frames-skipped.avs
Dummy AVISYNTH script

Compressing src-avisynth-vdub.avi