I suppose that
avs2yuv could be something like what you're looking for .. it takes an AVS file as an input, feeds it to AviSynth and you get an YUV stream as the output; maybe in the source you'll find something useful.
BTW, I know that there's a more up to date version of the program, look around in the forum for it, I don't have the link just here and now...