public void Dispose() { if (_videoWriter != null) _videoWriter.Close(); if(_audioWriter!=null)_audioWriter.Close(); } }