I am calling FFMpeg inside a C# Windows Forms application. Since it uses so much CPU(almost 100%), none of my threads can continue working. Is there a way to limit this CPU usage?
Below is my working code,
Process ffmpeg = new Process();
ffmpeg.StartInfo.UseShellExecute = false;
ffmpeg.StartInfo.FileName = '..\ffmpeg.exe'
ffmpeg.StartInfo.CreateNoWindow = true;
ffmpeg.Start();
I've tried to set Process.PriorityClass to PriorityClass.BelowNormal but this totally blocked the ffmpeg process.
Is there any other way out?