Faster way to write image to Process.StandardInput.BaseStream
问题 Im trying to send a lot of desktop captured images to an encoders (FFmpeg) stdin. The following code example works. the CaptureScreen() function provides an image in 5-10 ms. If I save the image in a MemoryStream it takes almost no time. But I can only save 1 image every 45 ms to proc.StandardInput.BaseStream. public void Start(string bitrate, string buffer, string fps, string rtmp, string resolution, string preset) { proc.StartInfo.FileName = myPath + "\\ffmpeg.exe"; proc.StartInfo.Arguments