title: ffmpeg output in log file using C#
body: <p>This is a simple code to create ffmpeg log output in a file instead of console.</p>
  
  <pre><code>string fullPath = "d:";
  string fileName= "wildlife.wmv";
  string pathfile = "D:";
  process.StartInfo.Arguments = "-i \"" + fullPath + "\" + fileName + +\" 2&gt; \"" + pathfile + "\ffmpeglog.log\"";
  
  process.StartInfo.UseShellExecute = false;
  process.StartInfo.RedirectStandardError = true;
  process.StartInfo.CreateNoWindow = false;
  process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
  process.Start();
  string output2 = process.StandardError.ReadToEnd();
  process.WaitForExit();
  process.Close();
  </code></pre>
  
  <p>But this code doesn't create an output log file wherein the same arrangements when used in command prompt it works. Can anybody help in this? what more needs to be done to get the output in the log file?</p>
  
  <p>Regards
  Arunava</p>