private void CreateStream() { CreateStreamWithoutFormat(); if (writeCompressed) { CreateCompressedStream(); } else { SetFormat(aviStream); } }