title: start recording stream on button click with VLC dot net library
body: <p>i have got a win form application that stream video from a ip camera...
  i use a lib that is already avaliable..
  lib site
  VideoLan DotNet for WinForm, WPF &amp; Silverlight 5</p>
  
  <p>in order to stram the video i do this:</p>
  
  <pre><code>string path = "rtsp://****:****@192.168.5.223/profile2/media.smp";
  LocationMedia media = new LocationMedia(path);
  vlcControl1.Media = media;
  vlcControl1.Play();
  </code></pre>
  
  <p>what i want now is to save the stream to a file on a button click, i mean , the video is playing, and then i press the button to record the video...</p>
  
  <p>How can i do it?</p>
  
  <p>when starting the video i can do this to save..</p>
  
  <pre><code> string path = ....
   LocationMedia media = new LocationMedia(path);        media.AddOption(":sout=#transcode{vcodec=theo,vb=800,scale=1,acodec=flac,ab=128,channels=2,samplerate=44100}:std{access=file,mux=ogg,dst=C:\\Users\\hsilva\\Desktop\\123.mp4}");
   vlcControl1.Media = media;
   vlcControl1.Play();
  </code></pre>
  
  <p>so how can i add option if the video is already playing...</p>