I want to use ffmpeg in a C# application which is going to convert uploaded file to a low resolution wmv file.
my question is if i use a code like below, how can i found out what was the result of conversion?
- Code: Select all
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo.UseShellExecute = false;
p.StartInfo.FileName = "cmd.exe";
p.StartInfo.Arguments = @"/c ffmpeg -i input.mp4 output.mp4 2> c:\out.txt";
Is there a better waay to do this?