how to read video Frames directly into memory with Nodejs?
问题 What i am trying to do is taking a video and diving it to frames and passing this frames to a Model to detect objects in each frame but the problem is the extraction process cost so much time and i don't need the frames on my disk. 回答1: fmpeg-stream offers stream capabilities. So there is no need to write to a file. It is also possible to use directly ffmpeg and spawn a new child process. Its .stdout property is a readable stream. On the event data, the chunk can be read. const fs = require(