PDA

View Full Version : Analyzing an AVI-file?


-=MadDog=-
8th May 2004, 13:26
Is there a program that can analyze an avi-file and tell whether it is progressive or interlaced?

Mug Funky
8th May 2004, 17:30
not as such...

it's easiest to just open the video in VirtulDub and watch it. if a program were made to detect interlacing, it would probably have to do the same thing, and deliver a probability of the clip being interlaced (ie, if a vertical convolution of 1,-2,1 delivers an average higher than a cutoff threshold, it's likely the clip is interlaced)

most video codecs out there make no distinction between interlaced and progressive (exceptions being MJPEG, MPEG-2 and 4, and perhaps a couple of others. mini-DV actually encodes everything as interlaced IIRC). certainly a program could easily read interlace flags, but this is not a foolproof way to tell if something's actually interlaced or not. i've seen too many interlaced (or PAL phase shifted) DVDs encoded as progressive to be able to rely on flags.