Reading from pipes with Avisynth is a somewhat risky proposition. First of all, Avisynth must know the number of frames immediately upon construction of the script environment. Secondly, Avisynth does not provide any way of enforcing linear access, so temporal filters may access frames out-of-order, which may (depending on frame caching) lead to insanity.