A tool like ffmpeg is suitable for extracting images from a video. From the manual:
ffmpeg -i foo.avi -r 1 -s WxH -f image2 foo-%03d.jpeg
This will allow you to extract one video clip per second from the video and output them to files with a name foo-001.jpeg, foo-002.jpegetc. Images will be rescaled to match the new WxH values.
Comparing them for differences can then be performed by PIL and / or OpenCV .
EDIT: , , , ( ), . google :
ffmpeg -i foo.avi -vsync 0 -vf select="eq(pict_type\,PICT_TYPE_I)" -s WxH -f image2 foo-%03d.jpeg