Fixed the video creation to respect the end time correctly.