Add non-mono increasing timestamps error checking and fix video frame duplication problem.