Back in 2005, I released a C# program which could analyse an AviSynth file to determine whether it was interlaced/film/progressive/hybrid, etc. After a bit of work on that, I integrated it into MeGUI, where it also got a few additions.
I have now rewritten it in D (
language homepage and
Wikipedia link) with a small but significant change. Being in D, it is a stand-alone CLI app, so it is useful for integration into other apps. Here it is:
www.megui.org/BAutoDeint.zip
You can find an out-of-date, but still useful description of the algorithm at
http://www.avisynth.org/mediawiki/wi...lace_detection
I'm somewhat busy IRL at the moment, so I've published my work here for now. I plan to finish this program up by adding support for portions, but other than that, it's pretty much finished.
It requires TIVTC.dll in the AviSynth plugins folder, and the input avs scripts must be in YV12 format.