I'm trying to deinterlace a hybrid avi stream (by hybrid I mean has interlaced parts as well as telecined parts.) I found that the field deinterlace filter in avisynth works great for the interlaced parts and a telecide/decimate combo works great for the telecine'd parts. Now what I would like to do is set up an avs file so that avisynth only deinterlaces a certain number of frames and then telecides/decimates and another set of frames. I want this deinterlace, telecide/decimate to alternate for a couple of cycles. In other words, I would like avisynth to do certain things to certain parts of a stream. Is this even possible?

I can do what I want to do if I chop up the main stream into 9 parts, make an avs file for each part and then have avisynth batch process all these files. I would rather just frameserve one big file.

Thanks for any help, pointers, ideas or criticism!