VideoSourceOpenCV: use libmagic to avoid opening bad files. Fixes #1.