first commit, mainly video analysis code