force video duration to be an integer