Shared function for computing video points, used here and by the khanload api.