I think the problem lies in the portion of code doing interlace / deinterlace but i've checked it so thoroughly already.... maybe fresh eyes will help