Fixed the encoding of the video. Changed from timespan timestamps to a simple frame number