Thanks to stax for providing a version which uses AVIFIle.
Ok, here is what I hope could be a final version before it is integrated into MeGUI (and staxrip, if stax wants to take the time to wade through my code again). It does better field order detection, it recommends a script, and it adds 'portion management', which is ideally for progressive content with interlaced sections in it, like the credits or something, in which case it would only deinterlace the credits. I've put a fair bit of work into that, and I'm interested in the results of that, because it often kicked in when it shouldn't.
I'm too lazy at this point in time to write a summary of the algorithm or any of the other sections I did before, so here are the links:
Bins on rapidshare (required .NET 2.0):
http://rapidshare.de/files/10771821/...n_bin.zip.html
Sources on rapidshare:
http://rapidshare.de/files/10771626/...n_src.zip.html
I've once again attached the files here as well.