title: How to get the output of a System.Diagnostics.Process?
body: <p>I run ffmpeg like this:</p>
  
  <pre><code>System.Diagnostics.Process p = new System.Diagnostics.Process();
  p.StartInfo = new System.Diagnostics.ProcessStartInfo(ffmpegPath, myParams);
  p.Start();
  p.WaitForExit();
  </code></pre>
  
  <p>... but the problem is that the console with ffmpeg pops up and disappears right away, so I can't get any feedback. I don't even know if the process ran correctly.</p>
  
  <p>So how can I either:</p>
  
  <ul>
  <li><p>Tell the console to stay opened</p></li>
  <li><p>Retrieve in the C# what the console
  displayed</p></li>
  </ul>