And Just in time to complement the new AviSynth 2.52 that was released today.
Script here:
http://www.kvcd.net/forum/viewtopic.php?t=3483
Thread here:
http://www.kvcd.net/forum/viewtopic.php?t=3999

Enjoy,
-kwag