Most of the way towards working video encoding.