Fix - Didn't mux the video with many languages
This commit is contained in:
parent
7b021940c3
commit
d405c9e7d9
|
@ -67,17 +67,29 @@ public class Helpers{
|
||||||
process.StartInfo.UseShellExecute = false;
|
process.StartInfo.UseShellExecute = false;
|
||||||
process.StartInfo.CreateNoWindow = true;
|
process.StartInfo.CreateNoWindow = true;
|
||||||
|
|
||||||
|
process.OutputDataReceived += (sender, e) =>
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(e.Data))
|
||||||
|
{
|
||||||
|
Console.WriteLine(e.Data);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
process.ErrorDataReceived += (sender, e) =>
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(e.Data))
|
||||||
|
{
|
||||||
|
Console.WriteLine($"ERROR: {e.Data}");
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
process.Start();
|
process.Start();
|
||||||
|
|
||||||
// To log the output or errors, you might use process.StandardOutput.ReadToEndAsync()
|
process.BeginOutputReadLine();
|
||||||
// string output = await process.StandardOutput.ReadToEndAsync();
|
process.BeginErrorReadLine();
|
||||||
string errors = await process.StandardError.ReadToEndAsync();
|
|
||||||
|
|
||||||
await process.WaitForExitAsync();
|
await process.WaitForExitAsync();
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(errors))
|
|
||||||
Console.WriteLine($"Error: {errors}");
|
|
||||||
|
|
||||||
// Define success condition more appropriately based on the application
|
// Define success condition more appropriately based on the application
|
||||||
bool isSuccess = process.ExitCode == 0;
|
bool isSuccess = process.ExitCode == 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue