Writing video sequences