2 ms·
We are feeding raw bytes into a command line ffmpeg process via standard input. Ffmpeg only reads as much from stdin as it can process. Node.js gives us a 'dra
by felixge 16y ago
We are feeding raw bytes into a command line ffmpeg process via standard input.
Ffmpeg only reads as much from stdin as it can process. Node.js gives us a 'drain' event when this happend, which means we can pump more data into it. So we are no throttling the speed, just the flow of data.