Specify how often it takes a screenshot – calculate video duration (suggested by @ksaitor)