If you want to vfr then I suggest you to read
this. There's a simple explanation from the 2pass IVTC to the timecodes muxing. Do keep in mind, however, that doing VFR AMVs can be annoyingly and pointlessly complicated, so you might want to drop the vfr idea.
You also want to resize after IVTCing. I don't quite get the point of the whole chroma resizing at all... especially not with pointresize ad blurring. I mean, sure, technically halvening the chroma like that doesn't kill chroma detail since the chroma samples are half the width and height to begin with, but resizing it like that just doesn't make sense anyway, and you're still doing an extra blur... you don't really need to use tricks to boost compression, if that's what it is.
As for deblock_QED, make sure the code
here is saved in an
avsi in your plugins folder, if you want it to autoload, otherwise just Import() the avs.
PS: You don't really care for the info of mpegsource, so drop that too. <.<