Most of this work is most likely already done using a video encoder. You just need to extract the keyframes and check how well the frames between them are compressed.
It should also be fairly easy to distinguish between still images. You can save a lot of time by exploring only keyframes. The slides probably have high contrast, solid shapes, solid background. The lecture hall has blurry shapes and low contrast.
source share