Use video duration better