ffprobe video frame analysis 

Use ffprobe to analyse each frame of a video and determine: Progressive vs. Interlaced, 4x3 vs. 16x9 vs. HD. Can be used to automatically determine which encoding profiles should be applied to a specific video