© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
8 replies
MrScopes

Process not spawning as a child

My ffmpeg process spawns, but it's not as a child of the main console application
        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();
        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
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Creating Process as User from a Windows Service
C#CC# / help
3y ago
how to show wpf applications as a single process
C#CC# / help
16mo ago
❔ send socket to UNRELATED process (NO FORKING, NO CHILD PROCESSES)
C#CC# / help
4y ago
JSON convert child class defined as parent class
C#CC# / help
4y ago