Added support for a --file parameter to feed video files into the script
Included a workaround to avoid exceptions on the first measurement