Added AVI date detection.
Placed shared functions to videoutils.py