Im trying to send a lot of desktop captured images to an encoders (FFmpeg) stdin.
The following code example works.
the CaptureScreen()
function pro
The bottleneck here is that ffmpeg reads data at the same speed it compresses it to .avi, which is slow. So your img.Save
method blocks until there is some space in the stream's buffer to write its data.
There is not much you can do. Compressing 60 fps HD video in real time require a huge processing power.