hubereevez: with Avisynth as the input to Producer, the memory usage will be very large. Most of it is in Avisynth. Compare with encoding a short uncompressed AVI file
And especially during the 2nd pass, because due to a bug in Avisynth/DirectShow, memory from the 1st pass is never freed, and memory usage pretty much doubles