Moved video utils to own file