Fixed the wrong colors in the end video due to the incorrect pixel format.