C#C
C#16mo ago
MrScopes

Process not spawning as a child

My ffmpeg process spawns, but it's not as a child of the main console application
c#
        var process = new Process();
        process.StartInfo.FileName = "ffmpeg";
        process.StartInfo.Arguments = "";
        process.StartInfo.RedirectStandardOutput = true;
        process.StartInfo.RedirectStandardError = true;
        process.StartInfo.UseShellExecute = false;
        process.StartInfo.CreateNoWindow = false;

        ...

        process.Start();
        process.BeginOutputReadLine();
        process.BeginErrorReadLine();

the process works perfectly and the main app can read the ffmpeg process fine, but I want it to be a child of the main application instead of it having a separate process on it's own
Was this page helpful?