I did something similar about a year ago in python using pyffmpeg and PIL.. https://github.com/ksho/film-fingerprints
Code is pretty crumby, but it does the job.
My favorite, Hero:
http://moviebarcode.tumblr.com/post/3515529474/hero-ying-xio...
Examples:
2001: A SPACE ODYSSEY (1968) http://moviebarcode.tumblr.com/post/3432026155/2001-a-space-...
BLADE RUNNER (1982) http://moviebarcode.tumblr.com/post/4438993828/blade-runner-...
STAR WARS: COMPLETE SAGA (1977-2005) http://moviebarcode.tumblr.com/post/13347201975/star-wars-co...
THE WIZARD OF OZ (1939) http://moviebarcode.tumblr.com/post/3512965847/the-wizard-of...
HARRY POTTER: COMPLETE SERIES (2001-2011) http://moviebarcode.tumblr.com/post/12390371286/harry-potter...