–threads 2 参数
使用–threads 2 可以将CPU的使用率控制在50%左右。
FFmpeg -i IN –threads 2 OUT
源文链接:https://stackoverflow.com/questions/11357713/how-to-limit-ffmpeg-cpu-usage
The solution as outlined here
How can I limit FFMpeg CPU usage?
is to limit the number of threads that FFMpeg uses to less than the number of available cores on the computer.
Following up on your comment, you can supply an Argument via StartInfo
Process ffmpeg = new Process(); ffmpeg.StartInfo.UseShellExecute = false; ffmpeg.StartInfo.FileName = "..\ffmpeg.exe"; ffmpeg.StartInfo.Arguments = "-threads 2";